summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorWillem de Bruijn2019-03-22 19:32:56 +0100
committerAlexei Starovoitov2019-03-22 21:52:45 +0100
commit868d523535c2d00b696753ece606e641a816e91e (patch)
tree15da75a49cc199d51682617dc9974239c7933c76 /fs
parentbpf: add bpf_skb_adjust_room flag BPF_F_ADJ_ROOM_FIXED_GSO (diff)
downloadkernel-qcow2-linux-868d523535c2d00b696753ece606e641a816e91e.tar.gz
kernel-qcow2-linux-868d523535c2d00b696753ece606e641a816e91e.tar.xz
kernel-qcow2-linux-868d523535c2d00b696753ece606e641a816e91e.zip
bpf: add bpf_skb_adjust_room encap flags
When pushing tunnel headers, annotate skbs in the same way as tunnel devices. For GSO packets, the network stack requires certain fields set to segment packets with tunnel headers. gro_gse_segment depends on transport and inner mac header, for instance. Add an option to pass this information. Remove the restriction on len_diff to network header length, which is too short, e.g., for GRE protocols. Changes v1->v2: - document new flags - BPF_F_ADJ_ROOM_MASK moved v2->v3: - BPF_F_ADJ_ROOM_ENCAP_L3_MASK moved Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions