xfrm: Add a new lookup key to match xfrm interfaces.
This patch adds the xfrm interface id as a lookup key for xfrm states and policies. With this we can assign states and policies to virtual xfrm interfaces. Signed-off-by:Steffen Klassert <steffen.klassert@secunet.com> Acked-by:
Shannon Nelson <shannon.nelson@oracle.com> Acked-by:
Benedict Wong <benedictwong@google.com> Tested-by:
Benedict Wong <benedictwong@google.com> Tested-by:
Antony Antony <antony@phenome.org> Reviewed-by:
Eyal Birger <eyal.birger@gmail.com>
Showing
- include/net/xfrm.h 16 additions, 5 deletionsinclude/net/xfrm.h
- include/uapi/linux/xfrm.h 1 addition, 0 deletionsinclude/uapi/linux/xfrm.h
- net/core/pktgen.c 1 addition, 1 deletionnet/core/pktgen.c
- net/key/af_key.c 3 additions, 3 deletionsnet/key/af_key.c
- net/xfrm/xfrm_policy.c 13 additions, 5 deletionsnet/xfrm/xfrm_policy.c
- net/xfrm/xfrm_state.c 14 additions, 5 deletionsnet/xfrm/xfrm_state.c
- net/xfrm/xfrm_user.c 48 additions, 6 deletionsnet/xfrm/xfrm_user.c
Please register or sign in to comment