From: Jiri Pirko <j...@mellanox.com> Ido says:
This set makes sure the device is using the same parameters as the kernel when it computes the multipath hash during IP forwarding. First patch adds a new netevent to let interested listeners know that the multipath hash policy has changed. Next two patches do small and non-functional changes in the mlxsw driver. Last patches configure the multipath hash policy upon driver initialization and as a response to netevents. Ido Schimmel (6): ipv4: Send a netevent whenever multipath hash policy is changed mlxsw: spectrum_router: Embed netevent notifier block in router struct mlxsw: spectrum_router: Properly name netevent work struct mlxsw: reg: Add Router ECMP Configuration Register Version 2 mlxsw: spectrum_router: Align multipath hash parameters with kernel's mlxsw: spectrum_router: Update multipath hash parameters upon netevents drivers/net/ethernet/mellanox/mlxsw/reg.h | 132 ++++++++++++++++++++ drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 7 -- drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 2 - .../net/ethernet/mellanox/mlxsw/spectrum_router.c | 133 ++++++++++++++++++--- include/net/netevent.h | 1 + net/ipv4/sysctl_net_ipv4.c | 20 +++- 6 files changed, 270 insertions(+), 25 deletions(-) -- 2.9.5