diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2023-01-24 14:55:06 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-27 03:28:48 +0300 |
commit | 8c284ea429d2dc6da76c30af281c292d3d428614 (patch) | |
tree | 0350c030656f998cac9684d579b3f4f580eff2a6 /drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |
parent | 3fe57986271aeebca11343e966c6d2774535f7e0 (diff) | |
download | linux-8c284ea429d2dc6da76c30af281c292d3d428614.tar.xz |
cxgb4: fill IPsec state validation failure reason
Rely on extack to return failure reason.
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index 6c0a41f3ae44..7db2403c4c9c 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c @@ -6497,8 +6497,7 @@ static int cxgb4_xfrm_add_state(struct xfrm_state *x, int ret; if (!mutex_trylock(&uld_mutex)) { - dev_dbg(adap->pdev_dev, - "crypto uld critical resource is under use\n"); + NL_SET_ERR_MSG_MOD(extack, "crypto uld critical resource is under use"); return -EBUSY; } ret = chcr_offload_state(adap, CXGB4_XFRMDEV_OPS); |