From: Jiri Pirko Date: Tue, 3 Mar 2020 13:27:42 +0000 (+0100) Subject: devlink: add trap metadata type for flow action cookie X-Git-Tag: v5.7.0~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fe07b81461bb58cd48720019cd416da39aeadea;p=thirdparty%2Fiproute2.git 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 Signed-off-by: David Ahern --- diff --git a/devlink/devlink.c b/devlink/devlink.c index 6e2115b6c..eef27c275 100644 --- a/devlink/devlink.c +++ b/devlink/devlink.c @@ -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 ""; }