xfrm: Auto-load xfrm offload modules
authorIlan Tayari <ilant@mellanox.com>
Tue, 1 Aug 2017 09:49:08 +0000 (12:49 +0300)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 2 Aug 2017 09:00:15 +0000 (11:00 +0200)
commitffdb5211da1c20354f1b40c204b6cf6c29c68161
tree04cc29d6355ca8a0fbadb04a51ab3186fe294cf4
parenta9b28c2bf05d9d9998d5d3c6453fd75bc4cf8a6d
xfrm: Auto-load xfrm offload modules

IPSec crypto offload depends on the protocol-specific
offload module (such as esp_offload.ko).

When the user installs an SA with crypto-offload, load
the offload module automatically, in the same way
that the protocol module is loaded (such as esp.ko)

Signed-off-by: Ilan Tayari <ilant@mellanox.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/xfrm.h
net/ipv4/esp4_offload.c
net/ipv6/esp6_offload.c
net/xfrm/xfrm_device.c
net/xfrm/xfrm_state.c
net/xfrm/xfrm_user.c