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)
commitd70446ee1f406ef4c6dd299a8482dc98ef07ed0e
tree2d55a9a97258cf365fad5cc85d7c2efc59bdcf09
parent17af2c4757c65c2b30c1df0f6fb758c4c2b2d8b8
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