Thread (14 messages) 14 messages, 8 authors, 2020-03-04

Re: [PATCH v4] netdev attribute to control xdpgeneric skb linearization

From: Daniel Borkmann <daniel@iogearbox.net>
Date: 2020-03-03 21:05:09
Also in: bpf, lkml

On 3/3/20 9:50 PM, Jakub Kicinski wrote:
On Tue, 3 Mar 2020 20:46:55 +0100 Daniel Borkmann wrote:
quoted
Thus, when the data/data_end test fails in generic XDP, the user can
call e.g. bpf_xdp_pull_data(xdp, 64) to make sure we pull in as much as
is needed w/o full linearization and once done the data/data_end can be
repeated to proceed. Native XDP will leave xdp->rxq->skb as NULL, but
later we could perhaps reuse the same bpf_xdp_pull_data() helper for
native with skb-less backing. Thoughts?
I'm curious why we consider a xdpgeneric-only addition. Is attaching
a cls_bpf program noticeably slower than xdpgeneric?
Yeah, agree, I'm curious about that part as well.

Thanks,
Daniel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help