diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2023-01-24 14:54:59 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-27 03:28:48 +0300 |
commit | 7681a4f58fb9c338d6dfe1181607f84c793d77de (patch) | |
tree | e584129095537e2a2736cd6979ad267621574cd5 /drivers/net/ethernet/intel/ixgbevf/ipsec.c | |
parent | 1bb70c5ab6ec55c2cbb16b8d8dd1c7b552c5afba (diff) | |
download | linux-7681a4f58fb9c338d6dfe1181607f84c793d77de.tar.xz |
xfrm: extend add state callback to set failure reason
Almost all validation logic is in the drivers, but they are
missing reliable way to convey failure reason to userspace
applications.
Let's use extack to return this information to users.
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/ipsec.c')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbevf/ipsec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/ipsec.c b/drivers/net/ethernet/intel/ixgbevf/ipsec.c index c1cf540d162a..752b9df4fb51 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ipsec.c +++ b/drivers/net/ethernet/intel/ixgbevf/ipsec.c @@ -257,8 +257,10 @@ static int ixgbevf_ipsec_parse_proto_keys(struct xfrm_state *xs, /** * ixgbevf_ipsec_add_sa - program device with a security association * @xs: pointer to transformer state struct + * @extack: extack point to fill failure reason **/ -static int ixgbevf_ipsec_add_sa(struct xfrm_state *xs) +static int ixgbevf_ipsec_add_sa(struct xfrm_state *xs, + struct netlink_ext_ack *extack) { struct net_device *dev = xs->xso.real_dev; struct ixgbevf_adapter *adapter; |