[ovs-dev] [PATCH 2/2] ofproto-dpif: Initialize odp_port to OVSP_NONE in port_construct().

Ethan Jackson ethan at nicira.com
Sun Nov 25 02:32:15 UTC 2012


I don't think this fixes an actual problem, but it seems more
future proof.

Signed-off-by: Ethan Jackson <ethan at nicira.com>
---
 ofproto/ofproto-dpif.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 1793565..a3b54d5 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -1510,6 +1510,7 @@ port_construct(struct ofport *port_)
     hmap_init(&port->priorities);
     port->realdev_ofp_port = 0;
     port->vlandev_vid = 0;
+    port->odp_port = OVSP_NONE;
     port->carrier_seq = netdev_get_carrier_resets(port->up.netdev);
 
     error = dpif_port_query_by_name(ofproto->backer->dpif,
-- 
1.7.9.5




More information about the dev mailing list