]> git.baikalelectronics.ru Git - kernel.git/commit
spectrum: Add a delayed work to update SPAN buffsize according to speed
authorJiri Pirko <jiri@mellanox.com>
Mon, 20 Jan 2020 07:52:53 +0000 (09:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jan 2020 12:25:46 +0000 (13:25 +0100)
commit80180d63bdeb1066c8004ee09b49e0ab4848a12f
tree92d80c5f35aa48d0ac944040df7cccf816dcd0e5
parent3da1384411d9a8e5d17b4103e8e7b5551cc31280
spectrum: Add a delayed work to update SPAN buffsize according to speed

When PUDE event is handled and the link is up, update the port SPAN
buffer size according to the current speed.

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