]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Add an IPsec hardware offloading API
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 14 Apr 2017 08:06:10 +0000 (10:06 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 14 Apr 2017 08:06:10 +0000 (10:06 +0200)
commit2ed61e84269f710c22f10a0df46a1468690f1cc0
treeae95d5230477ab95e8f301e9123c9f698a530551
parent95dbc6fbd031c8fba73be170a064fd8f4c0c46f6
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>
14 files changed:
include/linux/netdevice.h
include/net/xfrm.h
include/uapi/linux/xfrm.h
net/ipv4/esp4.c
net/ipv4/xfrm4_output.c
net/ipv6/esp6.c
net/ipv6/xfrm6_output.c
net/xfrm/Makefile
net/xfrm/xfrm_device.c
net/xfrm/xfrm_input.c
net/xfrm/xfrm_output.c
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_state.c
net/xfrm/xfrm_user.c