OSDN Git Service

dpaa2-eth: add XDP_REDIRECT support
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Fri, 1 Mar 2019 17:47:24 +0000 (17:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 04:41:18 +0000 (20:41 -0800)
commitd678be1dc1ec59eee1f733ff603f601469ff368d
tree12923e831755129843737322963c37ff0bf5e4fe
parente3fdf6ba09a082175d3b0f85a4253702918e7582
dpaa2-eth: add XDP_REDIRECT support

Implement support for the XDP_REDIRECT action.

The redirected frame is transmitted and confirmed on the regular Tx/Tx
conf queues. Frame is marked with the "XDP" type in the software
annotation, since it requires special treatment.

We don't have good hardware support for TX batching, so the
XDP_XMIT_FLUSH flag doesn't make a difference for now; ndo_xdp_xmit
performs the actual Tx operation on the spot.

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