RE: [PATCH net-next v3 5/6] net: stmmac: Add support for XDP_TX action

2021-03-31 Thread Ong, Boon Leong
>> +static int stmmac_xdp_xmit_back(struct stmmac_priv *priv, >> +struct xdp_buff *xdp) >> +{ >> +struct xdp_frame *xdpf = xdp_convert_buff_to_frame(xdp); >> +int cpu = smp_processor_id(); >> +struct netdev_queue *nq; >> +int queue; >> +int res; >> +

Re: [PATCH net-next v3 5/6] net: stmmac: Add support for XDP_TX action

2021-03-31 Thread Jakub Kicinski
On Wed, 31 Mar 2021 23:41:34 +0800 Ong Boon Leong wrote: > 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

[PATCH net-next v3 5/6] net: stmmac: Add support for XDP_TX action

2021-03-31 Thread Ong Boon Leong
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'. v3: Added