summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@nvidia.com>2023-01-24 14:54:57 +0300
committerJakub Kicinski <kuba@kernel.org>2023-01-27 03:28:48 +0300
commit3089386db0901ac6ac3d99fbd601212c98217e60 (patch)
treeabd148a8bb944b34d41692b2e89450b61769457b /Documentation
parent9179f5fe41733ff56f7dfcb83c0c1456f6d2e4ae (diff)
downloadlinux-3089386db0901ac6ac3d99fbd601212c98217e60.tar.xz
xfrm: extend add policy 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 'Documentation')
-rw-r--r--Documentation/networking/xfrm_device.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/networking/xfrm_device.rst b/Documentation/networking/xfrm_device.rst
index c43ace79e320..b9c53e626982 100644
--- a/Documentation/networking/xfrm_device.rst
+++ b/Documentation/networking/xfrm_device.rst
@@ -73,7 +73,7 @@ Callbacks to implement
/* Solely packet offload callbacks */
void (*xdo_dev_state_update_curlft) (struct xfrm_state *x);
- int (*xdo_dev_policy_add) (struct xfrm_policy *x);
+ int (*xdo_dev_policy_add) (struct xfrm_policy *x, struct netlink_ext_ack *extack);
void (*xdo_dev_policy_delete) (struct xfrm_policy *x);
void (*xdo_dev_policy_free) (struct xfrm_policy *x);
};