]> git.ipfire.org Git - thirdparty/iproute2.git/commit
xfrm: prepare state offload logic to set mode
authorLeon Romanovsky <leonro@nvidia.com>
Mon, 12 Dec 2022 07:54:04 +0000 (09:54 +0200)
committerDavid Ahern <dsahern@kernel.org>
Wed, 14 Dec 2022 16:02:05 +0000 (09:02 -0700)
commitbdd19b1edec44c00c968950301074734cee54cab
treea1edeaf3b990de529e29ae8850359dfcb259720a
parentdc768a4585242d46627aa620239c8b6f8ee949a2
xfrm: prepare state offload logic to set mode

The offload in xfrm state requires to provide device and direction
in order to activate it. However, in the help section, device and
direction were displayed as an optional.

As a preparation to addition of packet offload, let's fix the help
section and refactor the code to be more clear.

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