diff options
author | Ilan Tayari <ilant@mellanox.com> | 2017-04-30 16:51:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-01 21:59:39 +0300 |
commit | 152afb9b45a8af4a93699a15925c392a28182a26 (patch) | |
tree | 310ad3247951c8e65add607f5f938f27171e2e21 /net/sctp | |
parent | 67d349ed603d5ce4a6f1722b1736e2bcef0e8690 (diff) | |
download | linux-152afb9b45a8af4a93699a15925c392a28182a26.tar.xz |
xfrm: Indicate xfrm_state offload errors
Current code silently ignores driver errors when configuring
IPSec offload xfrm_state, and falls back to host-based crypto.
Fail the xfrm_state creation if the driver has an error, because
the NIC offloading was explicitly requested by the user program.
This will communicate back to the user that there was an error.
Fixes: d77e38e612a0 ("xfrm: Add an IPsec hardware offloading API")
Signed-off-by: Ilan Tayari <ilant@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions