OSDN Git Service

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)
commitd77e38e612a017480157fe6d2c1422f42cb5b7e3
treeae95d5230477ab95e8f301e9123c9f698a530551
parentc35fe4106b928d0a5909cfdac53c1db559b24299
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