]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
devlink: add trap metadata type for flow action cookie
authorJiri Pirko <jiri@mellanox.com>
Tue, 3 Mar 2020 13:27:42 +0000 (14:27 +0100)
committerDavid Ahern <dsahern@gmail.com>
Wed, 4 Mar 2020 19:46:29 +0000 (19:46 +0000)
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>
devlink/devlink.c

index 6e2115b6c544ef12e6989fd086346230ae5963c9..eef27c27592196d6d8500e91bc1fd6a3f45655f2 100644 (file)
@@ -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>";
        }