]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: send a scatter-gather FD instead of realloc-ing
authorIoana Ciornei <ioana.ciornei@nxp.com>
Mon, 29 Jun 2020 18:47:11 +0000 (21:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 00:42:48 +0000 (17:42 -0700)
commitf410ae7f168a5e1c55b0f707366372f41b1d93c2
tree2d55a9a97258cf365fad5cc85d7c2efc59bdcf09
parent3ff05e1dfeb7235b9995f6c2e426ce0716e7250d
dpaa2-eth: send a scatter-gather FD instead of realloc-ing

Instead of realloc-ing the skb on the Tx path when the provided headroom
is smaller than the HW requirements, create a Scatter/Gather frame
descriptor with only one entry.

Remove the '[drv] tx realloc frames' counter exposed previously through
ethtool since it is no longer used.

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