]> git.ipfire.org Git - thirdparty/iproute2.git/commit
xfrm: add packet offload mode to xfrm state
authorLeon Romanovsky <leonro@nvidia.com>
Mon, 12 Dec 2022 07:54:05 +0000 (09:54 +0200)
committerDavid Ahern <dsahern@kernel.org>
Wed, 14 Dec 2022 16:02:29 +0000 (09:02 -0700)
commita6e740ff406cf09ba7574293a2716edb714a8696
tree3d08af4930cef202a752a17d4a0721b0ad36a1a7
parentbdd19b1edec44c00c968950301074734cee54cab
xfrm: add packet offload mode to xfrm state

Allow users to configure xfrm states with packet offload type.

Packet offload mode:
  ip xfrm state offload packet dev <if-name> dir <in|out>
Crypto offload mode:
  ip xfrm state offload crypto dev <if-name> dir <in|out>
  ip xfrm state offload dev <if-name> dir <in|out>

The latter variant configures crypto offload mode and is needed
to provide backward compatibility.

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