]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfrm: store and rely on direction to construct offload flags
authorLeon Romanovsky <leonro@nvidia.com>
Thu, 5 May 2022 10:06:41 +0000 (13:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:50:54 +0000 (19:50 +0100)
commit7f6afb1b33fd12961108f8d893960e6dad9fcb96
tree97abaa1edab883b151ebeb3c989761eefe229dc7
parente4426baa9aa3a485c4fea4909b34c1d562dccba7
xfrm: store and rely on direction to construct offload flags

[ Upstream commit 482db2f1dd211f73ad9d71e33ae15c1df6379982 ]

XFRM state doesn't need anything from flags except to understand
direction, so store it separately. For future patches, such change
will allow us to reuse xfrm_dev_offload for policy offload too, which
has three possible directions instead of two.

Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Stable-dep-of: 2cf567f421db ("netdevsim: copy addresses for both in and out paths")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/xfrm.h
net/xfrm/xfrm_device.c
net/xfrm/xfrm_user.c