mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 17:57:38 -04:00
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>
This commit is contained in:
committed by
Steffen Klassert
parent
87e0a94e60
commit
482db2f1dd
@@ -126,12 +126,18 @@ struct xfrm_state_walk {
|
||||
struct xfrm_address_filter *filter;
|
||||
};
|
||||
|
||||
enum {
|
||||
XFRM_DEV_OFFLOAD_IN = 1,
|
||||
XFRM_DEV_OFFLOAD_OUT,
|
||||
};
|
||||
|
||||
struct xfrm_dev_offload {
|
||||
struct net_device *dev;
|
||||
netdevice_tracker dev_tracker;
|
||||
struct net_device *real_dev;
|
||||
unsigned long offload_handle;
|
||||
u8 flags;
|
||||
u8 dir : 2;
|
||||
};
|
||||
|
||||
struct xfrm_mode {
|
||||
|
||||
Reference in New Issue
Block a user