diff options
author | Nogah Frankel <nogahf@mellanox.com> | 2016-11-25 12:33:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-26 05:22:14 +0300 |
commit | 616d8040e56fa5cd276c988e351cc928002c3502 (patch) | |
tree | 17a41b2cc6e6b3c41aa679f74a5a4da64f3ba443 /drivers/net/ethernet/mellanox/mlxsw/spectrum.c | |
parent | 579c82e4c5a8d6653533b2ffd8a2b519928050cb (diff) | |
download | linux-616d8040e56fa5cd276c988e351cc928002c3502.tar.xz |
mlxsw: spectrum: Add BGP trap
Add a trap for BGP protocol that was previously trapped by the generic trap
for IP2ME. This trap will allow us to have better control (over priority
and rate) of the traffic.
Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index 75ba22ab7c16..42ac968e49a2 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -2761,6 +2761,7 @@ static const struct mlxsw_listener mlxsw_sp_listener[] = { MLXSW_SP_RXL_NO_MARK(IP2ME, TRAP_TO_CPU, false), MLXSW_SP_RXL_NO_MARK(RTR_INGRESS0, TRAP_TO_CPU, false), MLXSW_SP_RXL_NO_MARK(HOST_MISS_IPV4, TRAP_TO_CPU, false), + MLXSW_SP_RXL_MARK(BGP_IPV4, TRAP_TO_CPU, false), }; static int mlxsw_sp_trap_groups_set(struct mlxsw_core *mlxsw_core) |