X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Flearning-switch.h;h=e5036906fdb32c7d83aeef36bf4a7606af7392da;hb=8961de6adfd44216f47007ff75fd1cea213d7e31;hp=2ce49e6123aef0f155bf173240d0cf7e43d6a2d2;hpb=ad67e568887f56d3b70a8225c3a476d94f70c20b;p=openvswitch diff --git a/lib/learning-switch.h b/lib/learning-switch.h index 2ce49e61..e5036906 100644 --- a/lib/learning-switch.h +++ b/lib/learning-switch.h @@ -41,14 +41,17 @@ struct lswitch_config { * OFP_FLOW_PERMANENT: Set up permanent flows. */ int max_idle; - /* Optionally, a chain of one or more OpenFlow messages to send to the - * switch at time of connection. Presumably these will be OFPT_FLOW_MOD - * requests to set up the flow table. */ - const struct ofpbuf *default_flows; - - /* The OpenFlow queue used by packets and flows set up by 'sw'. Use - * UINT32_MAX to avoid specifying a particular queue. */ - uint32_t queue_id; + /* Optionally, a list of one or more "struct ofpbuf"s containing OpenFlow + * messages to send to the switch at time of connection. Presumably these + * will be OFPT_FLOW_MOD requests to set up the flow table. */ + const struct list *default_flows; + + /* The OpenFlow queue to use by default. Use UINT32_MAX to avoid + * specifying a particular queue. */ + uint32_t default_queue; + + /* Maps from a port name to a queue_id (cast to void *). */ + const struct shash *port_queues; }; struct lswitch *lswitch_create(struct rconn *, const struct lswitch_config *);