xfrm: Add an IPsec hardware offloading API
This patch adds all the bits that are needed to do IPsec hardware offload for IPsec states and ESP packets. We add xfrmdev_ops to the net_device. xfrmdev_ops has function pointers that are needed to manage the xfrm states in the hardware and to do a per packet offloading decision. Joint work with: Ilan Tayari <ilant@mellanox.com> Guy Shapiro <guysh@mellanox.com> Yossi Kuperman <yossiku@mellanox.com> Signed-off-by:Guy Shapiro <guysh@mellanox.com> Signed-off-by:
Ilan Tayari <ilant@mellanox.com> Signed-off-by:
Yossi Kuperman <yossiku@mellanox.com> Signed-off-by:
Steffen Klassert <steffen.klassert@secunet.com>
Showing
- include/linux/netdevice.h 14 additions, 0 deletionsinclude/linux/netdevice.h
- include/net/xfrm.h 64 additions, 1 deletioninclude/net/xfrm.h
- include/uapi/linux/xfrm.h 8 additions, 0 deletionsinclude/uapi/linux/xfrm.h
- net/ipv4/esp4.c 3 additions, 4 deletionsnet/ipv4/esp4.c
- net/ipv4/xfrm4_output.c 2 additions, 1 deletionnet/ipv4/xfrm4_output.c
- net/ipv6/esp6.c 3 additions, 1 deletionnet/ipv6/esp6.c
- net/ipv6/xfrm6_output.c 7 additions, 2 deletionsnet/ipv6/xfrm6_output.c
- net/xfrm/Makefile 2 additions, 1 deletionnet/xfrm/Makefile
- net/xfrm/xfrm_device.c 137 additions, 1 deletionnet/xfrm/xfrm_device.c
- net/xfrm/xfrm_input.c 39 additions, 2 deletionsnet/xfrm/xfrm_input.c
- net/xfrm/xfrm_output.c 38 additions, 6 deletionsnet/xfrm/xfrm_output.c
- net/xfrm/xfrm_policy.c 5 additions, 5 deletionsnet/xfrm/xfrm_policy.c
- net/xfrm/xfrm_state.c 74 additions, 0 deletionsnet/xfrm/xfrm_state.c
- net/xfrm/xfrm_user.c 28 additions, 0 deletionsnet/xfrm/xfrm_user.c
Please register or sign in to comment