mlxsw: Add trap group for layer 2 discards
authorIdo Schimmel <idosch@mellanox.com>
Wed, 21 Aug 2019 07:19:34 +0000 (10:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2019 19:58:39 +0000 (12:58 -0700)
commit9e6290c75a5078d0a8fac89d908dc59db9c27a15
treea8c22ce6162104086ceb9c470cc823420725375c
parenta812cedb8e3594833986fe690b0224d5577644ce
mlxsw: Add trap group for layer 2 discards

Discard trap groups are defined in a different enum so that they could
all share the same policer ID: MLXSW_REG_HTGT_TRAP_GROUP_MAX + 1.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h