summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/bpf.h
diff options
context:
space:
mode:
authorWillem de Bruijn2019-03-22 19:32:53 +0100
committerAlexei Starovoitov2019-03-22 21:52:44 +0100
commit8142958954d17a31e0ac9e3a9c91103a1c171179 (patch)
treebf5124afef654cef89cdbfa723703dfff72ff1db /include/uapi/linux/bpf.h
parentselftests/bpf: extend bpf tunnel test with gre (diff)
downloadkernel-qcow2-linux-8142958954d17a31e0ac9e3a9c91103a1c171179.tar.gz
kernel-qcow2-linux-8142958954d17a31e0ac9e3a9c91103a1c171179.tar.xz
kernel-qcow2-linux-8142958954d17a31e0ac9e3a9c91103a1c171179.zip
selftests/bpf: extend bpf tunnel test with tso
Segmentation offload takes a longer path. Verify that the feature works with large packets. The test succeeds if not setting dodgy in bpf_skb_adjust_room, as veth TSO is permissive. If not setting SKB_GSO_DODGY, this enables tunneled TSO offload on supporting NICs. The feature sets SKB_GSO_DODGY because the caller is untrusted. As a result the packets traverse through the gso stack at least up to TCP. And fail the gso_type validation, such as the skb->encapsulation check in gre_gso_segment and the gso_type checks introduced in commit 418e897e0716 ("gso: validate gso_type on ipip style tunnel"). This will be addressed in a follow-on feature patch. In the meantime, disable the new gso tests. Changes v1->v2: - not all netcat versions support flag '-q', use timeout instead Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/uapi/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions