diff options
author | Maciej Żenczykowski <[email protected]> | 2021-06-16 17:09:52 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2021-06-24 15:57:44 +0200 |
commit | 0bc919d3e0b8149a60d2444c6a8e2b5974556522 (patch) | |
tree | 3c4312751f45bb8cdfd151737cc84526edef195c /scripts/gdb/linux/tasks.py | |
parent | 364745fbe981a4370f50274475da4675661104df (diff) |
bpf: Support all gso types in bpf_skb_change_proto()
Since we no longer modify gso_size, it is now theoretically
safe to not set SKB_GSO_DODGY and reset gso_segs to zero.
This also means the skb_is_gso_tcp() check should no longer
be necessary.
Unfortunately we cannot remove the skb_{decrease,increase}_gso_size()
helpers, as they are still used elsewhere:
bpf_skb_net_grow() without BPF_F_ADJ_ROOM_FIXED_GSO
bpf_skb_net_shrink() without BPF_F_ADJ_ROOM_FIXED_GSO
net/core/lwt_bpf.c's handle_gso_type()
Signed-off-by: Maciej Żenczykowski <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Cc: Dongseok Yi <[email protected]>
Cc: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions