History

bpf: allow BPF programs access skb_shared_info->gso_segs field

This adds the ability to read gso_segs from a BPF program. v3: Use BPF_REG_AX instead of BPF_REG_TMP for the temporary register, as suggested by Martin. v2: refined Eddie Hao patch to address Alexei feedback.

Eric Dumazet committed 7 years ago

Commit d9ff2861 parent 866e6ac4 files · +59 −0Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/bpf.h+1−0
@@ -2540,6 +2540,7 @@ struct __sk_buff { · 2539 unmodified lines
25402540 __bpf_md_ptr(struct bpf_flow_keys *, flow_keys);
25412541 __u64 tstamp;
25422542 __u32 wire_len;
2543+ __u32 gso_segs;
25432544 };
25442545
25452546 struct bpf_tunnel_key {