rocker: allow ACL entry with wildcard ethertype

Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: detect tagged vlan case by non-zero vlan_id

Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: add some debug for err conditions in vlan tbl add

Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: remove unsed tci field because we already have vlan field

Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: make some constants module global because they're used multiple places

Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: improve flow key dumper to consider mask value

Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: for qemu monitor output, refine flow eth type/src/dst output

Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: define ring indices

Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: add flow tbl op for hit

We had an op for "miss", but not for "hit" on a flow table match.  (Of, there
was a "hit_no_goto" op used in case the goto tbl action was missing from a flow
match, but that a special case).  We need a "hit" op for src-mac learning
in subsequent patches.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: add new event for src-mac learning

Send an event to driver when a new mac/vlan is seen on a port.  This happens
each time a pkt hits the port and the mac/vlan hasn't been learned.  The driver
should respond to event by installing an FDB entry for this mac/vlan on this
port.  Once FBD entry is installed, no more events are generated (for this
mac/vlan on port).

Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: do src-mac/vlan lookup in bridging tbl to learn fdbs

Do a second pass on the bridging tlb to discover unknown mac/vlans on a port.
The first pass does the normal lookup for forwarding using dst_mac/vlan.  The
second lookup uses src_mac/vlan.  If there is a hit, the src_mac was previously
learned.  Only thing left to do it to compare in/out ports to make sure mac/vlan
hasn't moved.  If there was a miss on the second pass, then generated an event
to notify driver to install an FBD entry in bridge tbl.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>

Acked-by: Jiri Pirko <jiri@resnulli.us>