diff options
| author | Ong Boon Leong <[email protected]> | 2021-04-01 02:11:17 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-04-03 21:13:39 +0000 |
| commit | 8b278a5b69a2298055b99895ddc5b5f4ab430df5 (patch) | |
| tree | e65bd88031e6a498a4bffad78330a12f069e74bb /drivers/net/wan/lapbether.c | |
| parent | net: stmmac: Add support for XDP_TX action (diff) | |
| download | kernel-8b278a5b69a2298055b99895ddc5b5f4ab430df5.tar.gz kernel-8b278a5b69a2298055b99895ddc5b5f4ab430df5.zip | |
net: stmmac: Add support for XDP_REDIRECT action
This patch adds the support of XDP_REDIRECT to another remote cpu for
further action. It also implements ndo_xdp_xmit ops, enabling the driver
to transmit packets forwarded to it by XDP program running on another
interface.
This patch has been tested using "xdp_redirect_cpu" for XDP_REDIRECT
+ drop testing. It also been tested with "xdp_redirect" sample app
which can be used to exercise ndo_xdp_xmit ops. The burst traffics are
generated using pktgen_sample03_burst_single_flow.sh in samples/pktgen
directory.
v4: Move xdp_do_flush() processing into stmmac_finalize_xdp_rx() and
combined the XDP verdict of XDP TX and REDIRECT together.
v3: Added 'nq->trans_start = jiffies' to avoid TX time-out as we are
sharing TX queue between slow path and XDP. Thanks to Jakub Kicinski
for point out.
Signed-off-by: Ong Boon Leong <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wan/lapbether.c')
0 files changed, 0 insertions, 0 deletions
