diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2023-01-24 13:55:05 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-26 16:28:48 -0800 |
commit | 3fe57986271aeebca11343e966c6d2774535f7e0 (patch) | |
tree | 2f03478071ce27299b44ab7776c7f026b001681f /drivers/net/bonding | |
parent | 505c500cfcb4bac4de9a49db22e5be1d1e5c2b13 (diff) | |
download | lwn-3fe57986271aeebca11343e966c6d2774535f7e0.tar.gz lwn-3fe57986271aeebca11343e966c6d2774535f7e0.zip |
bonding: 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/bonding')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 686b2a6fd674..00646aa315c3 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -444,7 +444,7 @@ static int bond_ipsec_add_sa(struct xfrm_state *xs, if (!slave->dev->xfrmdev_ops || !slave->dev->xfrmdev_ops->xdo_dev_state_add || netif_is_bond_master(slave->dev)) { - slave_warn(bond_dev, slave->dev, "Slave does not support ipsec offload\n"); + NL_SET_ERR_MSG_MOD(extack, "Slave does not support ipsec offload"); rcu_read_unlock(); return -EINVAL; } |