]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: add software counter for Tx frames converted to S/G
authorIoana Ciornei <ioana.ciornei@nxp.com>
Mon, 29 Jun 2020 18:47:12 +0000 (21:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 00:42:48 +0000 (17:42 -0700)
commit1bc63eb017767ba4a577803cfaf7f26f4c717697
tree898ba40d7f06c81a10eafb9cfda48085a3ee25e2
parenta13392fbcb4e15499da319e08e7c9df820b38de1
dpaa2-eth: add software counter for Tx frames converted to S/G

With the previous commit, in case of insufficient SKB headroom on the Tx
path instead of reallocing the SKB we now send a S/G frame descriptor.
Export the number of occurences of this case as a per CPU counter (in
debugfs) and a total number in the ethtool statistics - "tx converted sg
frames'.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h
drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c