diff options
author | Stanislav Fomichev <sdf@google.com> | 2019-12-13 14:30:27 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-12-13 15:26:53 -0800 |
commit | 850a88cc4096fe1df407452ba2e4d28cf5b3eee9 (patch) | |
tree | 45fde0333440ad15a1f6e682009cda3fe8892ebe /fs | |
parent | 02620d9e629d217330a1e2a55f9c1e15a1af1519 (diff) |
bpf: Expose __sk_buff wire_len/gso_segs to BPF_PROG_TEST_RUN
wire_len should not be less than real len and is capped by GSO_MAX_SIZE.
gso_segs is capped by GSO_MAX_SEGS.
v2:
* set wire_len to skb->len when passed wire_len is 0 (Alexei Starovoitov)
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Cc: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20191213223028.161282-1-sdf@google.com
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions