rocker: don't print err msg when stripping vlan

When flooding a pkt to multiple ports, we'll call vlan strip to remove vlan
when sending to first port, and continue to call vlan strip on pkt for
subsequent ports.  Don't print an err msg when attempting to strip a missing
vlan, which would previously happen for all sends after the first port.

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: more helper macros for set/get groups

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: goto table is optional when adding to vlan tbl

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: out_lport isn't an attr for adding to bridge table

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: add group cmd for l2 flood groups

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: get world from flow sys

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: add flow tbl op for when there is a lookup hit but no goto tbl

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: remove eg flow tbl op; replaced by hit_no_goto op

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: handle hit_no_goto cases to drop pkt or egress pkt

Add hit_no_goto ops for various tbls.  For all but ACl tbl, hit_no_goto will
drop the pkt, per spec.  For ACL tbl, since it's the last table in the
pipeline, a hit_no_goto will egress the pkt based on the accumulated group
write actions.  Add egress support for L2 interface and flood group actions.

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: qemu monitor group cmd: change group filter to filter on group type, not group tbl_id

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
rocker: extend qemu monitor group dump support

Dump more of OF-DPA groups using qemu-monitor:

(qemu) rocker-groups sw1 of-dpa
id (decode) --> buckets
0x01000004 (type L2 interface vlan 1 port 4) --> pop vlan out port 4
0x01000003 (type L2 interface vlan 1 port 3) --> pop vlan out port 3
0x01000002 (type L2 interface vlan 1 port 2) --> pop vlan out port 2
0x01000001 (type L2 interface vlan 1 port 1) --> pop vlan out port 1
0x01000000 (type L2 interface vlan 1 port 0) --> pop vlan out port 0
0x41000000 (type L2 flood vlan 1 index 0) --> groups [0x01000000,0x01000004,0x01000003,0x01000002,0x01000001]

(qemu) rocker-flows sw1 of-dpa
prio tbl hits key(mask) --> actions
0    0        lport 3 --> goto tbl 10
0    50       vlan 1 --> write group 0x41000000 goto tbl 60
0    10       lport 3 vlan 0(0xfff) --> apply new vlan 1 goto tbl 20
0    10       lport 4 vlan 0(0xfff) --> apply new vlan 1 goto tbl 20
0    0        lport 4 --> goto tbl 10
0    0        lport 2 --> goto tbl 10
0    10       lport 2 vlan 0(0xfff) --> apply new vlan 1 goto tbl 20
0    10       lport 1 vlan 0(0xfff) --> apply new vlan 1 goto tbl 20
0    0        lport 1 --> goto tbl 10

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>