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)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 6 May 2022 06:31:04 +0000 (08:31 +0200)
commit482db2f1dd211f73ad9d71e33ae15c1df6379982
tree7ab97dc9156b3306958d15bf34a5cd90b17b440f
parent87e0a94e60ea2e29be9dec6bc146fbc9861a4055
xfrm: store and rely on direction to construct offload flags

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>
include/net/xfrm.h
net/xfrm/xfrm_device.c
net/xfrm/xfrm_user.c