Re: [RFC bpf-next] bpf: devmap: move drop error path to devmpap for XDP_REDIRECT

2021-02-10 Thread Jesper Dangaard Brouer
Typo in subject line for devmap. On Wed, 10 Feb 2021 15:18:14 +0100 Lorenzo Bianconi wrote: > Move XDP_REDIRECT error path handling from each XDP ethernet driver to > devmap code. According to the new APIs, the driver running the > ndo_xdp_xmit pointer, will break tx loop whenever the hw repor

[RFC bpf-next] bpf: devmap: move drop error path to devmpap for XDP_REDIRECT

2021-02-10 Thread Lorenzo Bianconi
Move XDP_REDIRECT error path handling from each XDP ethernet driver to devmap code. According to the new APIs, the driver running the ndo_xdp_xmit pointer, will break tx loop whenever the hw reports a tx error and it will just return to devmap caller the number of successfully transmitted frames. I