]> git.ipfire.org Git - thirdparty/iproute2.git/commit
xfrm: add an interface to offload policy
authorLeon Romanovsky <leonro@nvidia.com>
Mon, 12 Dec 2022 07:54:06 +0000 (09:54 +0200)
committerDavid Ahern <dsahern@kernel.org>
Wed, 14 Dec 2022 16:02:34 +0000 (09:02 -0700)
commit3422c62d581d18b8707baab7244cb5ebcae76e36
tree084848c2838f63768d20c6b20e94404baf380331
parenta6e740ff406cf09ba7574293a2716edb714a8696
xfrm: add an interface to offload policy

Extend at "ip xfrm policy" to allow policy offload to specific device.
The syntax and the code follow already established pattern from the
state offload.

The only difference between them is that direction was already mandatory
argument in policy configuration commands, so don't need to add direction
handling logic like it was done for the state offload.

The syntax is as follows:
 $ ip xfrm policy .... offload packet dev <if-name>

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipxfrm.c
ip/xfrm.h
ip/xfrm_monitor.c
ip/xfrm_policy.c
man/man8/ip-xfrm.8