diff options
author | Ilan Tayari <ilant@mellanox.com> | 2017-08-01 12:49:08 +0300 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-08-02 11:00:15 +0200 |
commit | ffdb5211da1c20354f1b40c204b6cf6c29c68161 (patch) | |
tree | 04cc29d6355ca8a0fbadb04a51ab3186fe294cf4 /net/xfrm/xfrm_device.c | |
parent | a9b28c2bf05d9d9998d5d3c6453fd75bc4cf8a6d (diff) | |
download | blackbird-obmc-linux-ffdb5211da1c20354f1b40c204b6cf6c29c68161.tar.gz blackbird-obmc-linux-ffdb5211da1c20354f1b40c204b6cf6c29c68161.zip |
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>
Diffstat (limited to 'net/xfrm/xfrm_device.c')
-rw-r--r-- | net/xfrm/xfrm_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c index 5cd7a244e88d..1904127f5fb8 100644 --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c @@ -63,7 +63,7 @@ int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, xfrm_address_t *daddr; if (!x->type_offload) - return 0; + return -EINVAL; /* We don't yet support UDP encapsulation, TFC padding and ESN. */ if (x->encap || x->tfcpad || (x->props.flags & XFRM_STATE_ESN)) |