]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-xfrm-states'
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 24 Apr 2018 20:26:59 +0000 (22:26 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 24 Apr 2018 20:27:00 +0000 (22:27 +0200)
commit4dd732405a96a18b6fd2490b6cc67f903ac27fde
tree9790a515413c05b19aa0eb988ef002a2cdb1dc05
parent9f9847f87dcb7d78c80f228749a90f55b6c396ee
parentad64461bc7af76789ec6a3af7b48bda2d34595f0
Merge branch 'bpf-xfrm-states'

Eyal Birger says:

====================
This patchset adds support for fetching XFRM state information from
an eBPF program called from TC.

The first patch introduces a helper for fetching an XFRM state from the
skb's secpath. The XFRM state is modeled using a new virtual struct which
contains the SPI, peer address, and reqid values of the state; This struct
can be extended in the future to provide additional state information.

The second patch adds a test example in test_tunnel_bpf.sh. The sample
validates the correct extraction of state information by the eBPF program.

v3:
  - Kept SPI and peer IPv4 address in state in network byte order
    following suggestion from Alexei Starovoitov
v2:
  - Fixed two comments by Daniel Borkmann:
    - disallow reserved flags in helper call
    - avoid compiling in helper code when CONFIG_XFRM is off
====================

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>