@@ -576,6 +576,14 @@ enum devlink_attr {
DEVLINK_ATTR_LINECARD_TYPE, /* string */
DEVLINK_ATTR_LINECARD_SUPPORTED_TYPES, /* nested */
+ /* Before adding this attribute to a command, user space should check
+ * the policy dump and verify the kernel recognizes the attribute.
+ * Otherwise older kernels which do not recognize the attribute may
+ * silently accept the unknown attribute while not actually performing
+ * a dry run.
+ */
+ DEVLINK_ATTR_DRY_RUN, /* flag */
+
/* add new attributes above here, update the policy in devlink.c */
__DEVLINK_ATTR_MAX,
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> --- include/uapi/linux/devlink.h | 8 ++++++++ 1 file changed, 8 insertions(+)