mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
Use ODP ports in dpif layer and below.
The current code has a simple mapping between datapath and OpenFlow port numbers (the port numbers were the same other than OFPP_LOCAL which maps to datapath port 0). Since the translation was know at compile time, this allowed different layers to easily translate between the two, so the translation often occurred late. A future commit will break this simple mapping, so this commit draws a line between where datapath and OpenFlow port numbers are used. The ofproto-dpif layer will be responsible for the translations. Callers above will use OpenFlow port numbers. Providers below will use datapath port numbers. Signed-off-by: Justin Pettit <jpettit@nicira.com>
This commit is contained in:
@@ -509,7 +509,6 @@ void
|
||||
flow_wildcards_init_exact(struct flow_wildcards *wc)
|
||||
{
|
||||
memset(&wc->masks, 0xff, sizeof wc->masks);
|
||||
memset(wc->masks.zeros, 0, sizeof wc->masks.zeros);
|
||||
}
|
||||
|
||||
/* Returns true if 'wc' matches every packet, false if 'wc' fixes any bits or
|
||||
|
||||
Reference in New Issue
Block a user