]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Destroy RIFs based on last removed address
authorIdo Schimmel <idosch@mellanox.com>
Fri, 10 Mar 2017 07:53:37 +0000 (08:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 17:36:06 +0000 (09:36 -0800)
commitb31dc22d04aa0827cb889849f823c08596e15763
tree9a4e7a6e9deb41a822d86cafb3f00c339cf3f197
parent692b2c65884ff8c70d513291dac78995504ac2e8
mlxsw: spectrum: Destroy RIFs based on last removed address

We only use the RIF reference count to determine when the last IP
address was removed, but instead we can just test 'in_dev->ifa_list'.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@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