From 6adf1730c8e21a653faf1d614fdddb2cd7825670 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 4 Aug 2011 13:32:19 -0700 Subject: [PATCH] odp-util: Format VLAN headers more like other headers in ODP flow output. The rest of the headers all follow the form "header(value)" or "header(key1=value1,key2=value2,...)" but VLAN headers left out the "=" characters. This adds them in for consistency. --- lib/odp-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/odp-util.c b/lib/odp-util.c index 93f8f8a07..62cb50469 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -272,7 +272,7 @@ format_odp_key_attr(const struct nlattr *a, struct ds *ds) if (q_key->q_tpid != htons(ETH_TYPE_VLAN)) { ds_put_format(ds, "tpid=0x%04"PRIx16",", ntohs(q_key->q_tpid)); } - ds_put_format(ds, "vid%"PRIu16",pcp%d)", + ds_put_format(ds, "vid=%"PRIu16",pcp=%d)", vlan_tci_to_vid(q_key->q_tci), vlan_tci_to_pcp(q_key->q_tci)); break; -- 2.43.0