]> git.baikalelectronics.ru Git - kernel.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)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 6 May 2022 06:31:04 +0000 (08:31 +0200)
commit2fe276e184d961e7b713731f7ede64282ac10a6b
tree7ab97dc9156b3306958d15bf34a5cd90b17b440f
parent5ac5e5c1d3ed27e44e5ea0b4faa3ddcd1360a526
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