packets: Generalize reserved RSPAN protocols.
authorEthan Jackson <ethan@nicira.com>
Fri, 1 Jun 2012 21:33:41 +0000 (14:33 -0700)
committerEthan Jackson <ethan@nicira.com>
Thu, 7 Jun 2012 00:43:33 +0000 (17:43 -0700)
commit05be4e2c6af8ce22bd262820bc951c9408a6de3d
treead8f06e08b7034bff99b419df391cad4a8841e76
parent3b842fc2f0f8367d7d1350a80f7c29edca0925b5
packets: Generalize reserved RSPAN protocols.

Open vSwitch refuses to mirror certain destination addresses in
addition to those classified by eth_addr_is_reserved().  Looking
through the uses of eth_addr_is_reserved(), one finds that no
callers should be using the additional addresses which mirroring
drops.  This patch folds the additional addresses dropped in the
mirroring code, into the more general eth_addr_is_reserverd()
function.

This patch also changes the implementation in a way that is
slightly less efficient, but much easier to read and extend int he
future.

Bug #11755.
Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/packets.c
lib/packets.h
ofproto/ofproto-dpif.c
vswitchd/vswitch.xml