aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/netdevsim/ipsec.c
diff options
context:
space:
mode:
authorLeon Romanovsky <[email protected]>2023-01-24 13:54:59 +0200
committerJakub Kicinski <[email protected]>2023-01-26 16:28:48 -0800
commit7681a4f58fb9c338d6dfe1181607f84c793d77de (patch)
treee584129095537e2a2736cd6979ad267621574cd5 /drivers/net/netdevsim/ipsec.c
parent1bb70c5ab6ec55c2cbb16b8d8dd1c7b552c5afba (diff)
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 <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/netdevsim/ipsec.c')
-rw-r--r--drivers/net/netdevsim/ipsec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/netdevsim/ipsec.c b/drivers/net/netdevsim/ipsec.c
index b93baf5c8bee..84a02d69abad 100644
--- a/drivers/net/netdevsim/ipsec.c
+++ b/drivers/net/netdevsim/ipsec.c
@@ -125,7 +125,8 @@ static int nsim_ipsec_parse_proto_keys(struct xfrm_state *xs,
return 0;
}
-static int nsim_ipsec_add_sa(struct xfrm_state *xs)
+static int nsim_ipsec_add_sa(struct xfrm_state *xs,
+ struct netlink_ext_ack *extack)
{
struct nsim_ipsec *ipsec;
struct net_device *dev;