mbox series

[bpf-next,0/3] bpf: Support setting variable-length tunnel options

Message ID 20220821161740.166682-1-shmulik.ladkani@gmail.com (mailing list archive)
Headers show
Series bpf: Support setting variable-length tunnel options | expand

Message

Shmulik Ladkani Aug. 21, 2022, 4:17 p.m. UTC
Introduce 'skb_set_var_tunnel_opt' to allow setting tunnel options of
dynamic length.

Shmulik Ladkani (3):
  bpf: Support setting variable-length tunnel options
  selftests/bpf: Simplify test_tunnel setup for allowing non-local
    tunnel traffic
  selftests/bpf: Add geneve with bpf_skb_set_var_tunnel_opt test-case to
    test_progs

 include/uapi/linux/bpf.h                      |  12 ++
 net/core/filter.c                             |  34 +++-
 tools/include/uapi/linux/bpf.h                |  12 ++
 .../selftests/bpf/prog_tests/test_tunnel.c    | 125 ++++++++++--
 .../selftests/bpf/progs/test_tunnel_kern.c    | 182 ++++++++++++------
 5 files changed, 284 insertions(+), 81 deletions(-)