devlink: add trap metadata type for flow action cookie
Subsystems (3)
Jiri Pirko
maintainerPATCH 1/1 devlink: add trap metadata type for flow action cookie
From: Jiri Pirko <[email protected]>
Flow action cookie has been recently added to kernel, print it out.
Signed-off-by Jiri Pirko <[email protected]>
--- devlink/devlink.c | 2 ++ include/uapi/linux/devlink.h | 2 ++ 2 files changed, 4 insertions(+)
devlink/devlink.c +2 -0
@@ -6932,6 +6932,8 @@ static const char *trap_metadata_name(const struct nlattr *attr)switch (attr->nla_type) {case DEVLINK_ATTR_TRAP_METADATA_TYPE_IN_PORT :return "input_port" ; +case DEVLINK_ATTR_TRAP_METADATA_TYPE_FA_COOKIE : +return "flow_action_cookie" ;default :return "<unknown metadata type>" ; }
include/uapi/linux/devlink.h +2 -0
@@ -252,6 +252,8 @@ enum devlink_trap_type {enum {/* Trap can report input port as metadata */ DEVLINK_ATTR_TRAP_METADATA_TYPE_IN_PORT , +/* Trap can report flow action cookie as metadata */ +DEVLINK_ATTR_TRAP_METADATA_TYPE_FA_COOKIE , };enum devlink_attr {
Signature · 1 line
2.21.1
David Ahern
AppliedQuoted 10 lines · Jiri Pirko
From: Jiri Pirko <[email protected]>
Flow action cookie has been recently added to kernel, print it out.
Signed-off-by Jiri Pirko <[email protected]>--- devlink/devlink.c | 2 ++ include/uapi/linux/devlink.h | 2 ++ 2 files changed, 4 insertions(+)
applied to iproute2-next. Thanks