diff options
| author | Ong Boon Leong <[email protected]> | 2021-04-01 02:11:16 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-04-03 21:13:39 +0000 |
| commit | be8b38a722e68ffa069b7dfa887369c33d6ea886 (patch) | |
| tree | 88a3138096cd19d3655f39c1a0c42887036a2836 /drivers/net/wan/lapbether.c | |
| parent | net: stmmac: Add initial XDP support (diff) | |
| download | kernel-be8b38a722e68ffa069b7dfa887369c33d6ea886.tar.gz kernel-be8b38a722e68ffa069b7dfa887369c33d6ea886.zip | |
net: stmmac: Add support for XDP_TX action
This patch adds support for XDP_TX action which enables XDP program to
transmit back received frames.
This patch has been tested with the "xdp2" app located in samples/bpf
dir. The DUT receives burst traffic packet generated using pktgen script
'pktgen_sample03_burst_single_flow.sh'.
v4: Moved stmmac_tx_timer_arm() to be done once at the end of NAPI RX.
Fixed stmmac_xdp_xmit_back() to return STMMAC_XDP_CONSUMED if
XDP buffer to frame conversion fails. Thanks to Jakub's input.
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 pointing 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
