[ovs-git] Open vSwitch: datapath: Accept any 802.2 eth_type mask but override to be exact match (branch-1.11)

dev at openvswitch.org dev at openvswitch.org
Thu Aug 1 20:01:26 UTC 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, branch-1.11 has been updated
       via  e2734807110ea184a7ed3423b706e9b6bf1f8319 (commit)
       via  214a1331e23ca2153dc7149f7f53e6513d5a7354 (commit)
      from  8b2e4432d04439ad863824ed050541ba894ccc49 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e2734807110ea184a7ed3423b706e9b6bf1f8319
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=e2734807110ea184a7ed3423b706e9b6bf1f8319
Author: Andy Zhou <azhou at nicira.com>
		
datapath: Accept any 802.2 eth_type mask but override to be exact match
		
When key.eth_type is absent it is interpreted to be 802.2, which is
represented by a special value. In order to prevent inadvertant matches
on this opaque value, the mask is forced to be either fully wildcarded
or fully exact.

Signed-off-by: Andy Zhou <azhou at nicira.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>


commit 214a1331e23ca2153dc7149f7f53e6513d5a7354
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=214a1331e23ca2153dc7149f7f53e6513d5a7354
Author: Andy Zhou <azhou at nicira.com>
		
datapath: Accept any in_port mask but override to be exact match
		
Pre mega flow, netlink allows the in_port key attribute
to be missing. Missing in_port is interpreted as DP_MAX_PORTS.

For backward compatibility, mega flow implementation will always allow
the mask of in_port to be specified, as if the in_port key attribute
is always specified.

To prevent accidental match of the DP_MAX_PORTS, which value is opaque to
the user space, we will always force the mask to be exact match,
regardless of the value supplied by the netline message. Missing
in_port mask continue to mean wildcarded match, same as other masks.

Signed-off-by: Andy Zhou <azhou at nicira.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 datapath/flow.c |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list