odp-util: Print tunnel id as part of ODP flow key in format_odp_flow_key().
authorBen Pfaff <blp@nicira.com>
Fri, 29 Oct 2010 16:49:46 +0000 (09:49 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 29 Oct 2010 16:49:46 +0000 (09:49 -0700)
lib/odp-util.c

index 511ec3a99f8b403273d0b7a25cebb4817f862c1b..998dab2292f5a60bbf4ae1753a95d2aca6754005 100644 (file)
@@ -42,7 +42,7 @@ odp_actions_add(struct odp_actions *actions, uint16_t type)
 void
 format_odp_flow_key(struct ds *ds, const struct odp_flow_key *key)
 {
-    ds_put_format(ds, "in_port%04x tci(", key->in_port);
+    ds_put_format(ds, "tun_id0x%08x in_port%04x tci(", key->tun_id, key->in_port);
     if (key->dl_tci) {
         ds_put_format(ds, "vlan%"PRIu16",pcp%d",
                       vlan_tci_to_vid(key->dl_tci),