From: Ben Pfaff Date: Thu, 4 Aug 2011 20:32:19 +0000 (-0700) Subject: odp-util: Format VLAN headers more like other headers in ODP flow output. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6adf1730c8e21a653faf1d614fdddb2cd7825670;p=openvswitch 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. --- diff --git a/lib/odp-util.c b/lib/odp-util.c index 93f8f8a0..62cb5046 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;