OSDN Git Service

mlxsw: spectrum: Change default rate and priority of DHCP packets
authorIdo Schimmel <idosch@mellanox.com>
Sun, 24 May 2020 21:51:00 +0000 (00:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2020 02:32:23 +0000 (19:32 -0700)
commit938e6d0b7672317e54836610d9b9535dda19e90b
tree94b2521fcc220538de5e7601bb5ff5bcca3582ca
parent0ecb947412d7e95128a007f791b020a37ce5e9be
mlxsw: spectrum: Change default rate and priority of DHCP packets

Reduce the default acceptable rate of DHCP packets to 128 packets per
second and reduce their priority. This is reasonable given the Spectrum
ASICs are limited to 128 ports at the moment.

These are only the default values. Users will be able to modify them via
devlink-trap.

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