Thread (21 messages) flat view 21 messages, 5 authors, 2024-07-25

Re: [PATCH] net: linearizing skb when downgrade gso_size

From: Fred Li <hidden>
Date: 2024-07-12 08:17:35
Also in: bpf, lkml

No need for ternary statement.

Instead of the complex test in skb_is_nonsg, can we just assume that
alignment will be off if having frag_list and changing gso_size.

The same will apply to bpf_skb_net_shrink too.
increase gso_size may be no problem and we can use BPF_F_ADJ_ROOM_FIXED_GSO
to avoid update gso_size when shrink.
Not sure that it is okay to linearize inside a BPF helper function.
Hopefully bpf experts can chime in on that.
Thanks

Fred Li

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