Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]
- Loading branch information