devlink: add trap metadata type for flow action cookie
Flow action cookie has been recently added to kernel, print it out. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
parent
b6b8e40bf7
commit
4fe07b8146
|
|
@ -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>";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue