-
- Downloads
Merge branch 'mlxsw-Make-driver-more-robust'
Ido Schimmel says: ==================== mlxsw: Make driver more robust In recent months we fixed several bugs in the driver that could have been avoided by re-evaluating some of the involved code paths and by introducing relevant and comprehensive test cases. This patchset tries to do that by introducing a set of small and mostly non-functional changes in addition to a new test. I have further improvements in mind, but they can be done in a different set. Patch #1 makes sure we correctly sanitize upper devices of a VLAN interface. Patch #2 removes an unexpected behavior from the driver, in which routes configured on a VLAN interface will cease being offloaded after certain operations. Patch #3 is a small cleanup. Patch #4 simplifies the driver by removing reference counting from VLAN entries configured on a port. Patches #5-#6 simplify linking/unlinking from a bridge, especially when LAG and VLAN devices are involved. They make both operations symmetric even when ports are unlinked from a bridged LAG device. Patch #7-#9 make router interface (RIF) deletion more robust by removing reliance on device chain to indicate whether a NETDEV_DOWN event in the inet{,6}addr notification chains should be processed. This is due to the fact that IP addresses can be flushed from a netdev after it was unlinked from its lower device. Patch #10 adds a new test to for valid and invalid configurations over mlxsw ports. Some of the test cases are derived from recent fixes. I expect that more test cases will be added over time. ==================== Signed-off-by:David S. Miller <davem@davemloft.net>
No related branches found
No related tags found
Showing
- drivers/net/ethernet/mellanox/mlxsw/spectrum.c 96 additions, 54 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum.h 3 additions, 9 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum.h
- drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c 15 additions, 19 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 106 additions, 60 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
- drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 27 additions, 41 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
- tools/testing/selftests/drivers/net/mlxsw/rtnetlink.sh 392 additions, 0 deletionstools/testing/selftests/drivers/net/mlxsw/rtnetlink.sh
Loading
Please register or sign in to comment