]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xfrm: extend add state callback to set failure reason
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 24 Jan 2023 11:54:59 +0000 (13:54 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 27 Jan 2023 00:28:48 +0000 (16:28 -0800)
commit7681a4f58fb9c338d6dfe1181607f84c793d77de
treee584129095537e2a2736cd6979ad267621574cd5
parent1bb70c5ab6ec55c2cbb16b8d8dd1c7b552c5afba
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>
12 files changed:
Documentation/networking/xfrm_device.rst
drivers/net/bonding/bond_main.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/chcr_ipsec.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
drivers/net/ethernet/intel/ixgbevf/ipsec.c
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c
drivers/net/ethernet/netronome/nfp/crypto/ipsec.c
drivers/net/netdevsim/ipsec.c
include/linux/netdevice.h
net/xfrm/xfrm_device.c
net/xfrm/xfrm_state.c