]> 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)
commitc1c9f4a43512f64d6d472fc994dcdc3e830c6acd
tree9a4e7a6e9deb41a822d86cafb3f00c339cf3f197
parent667a369c14705468a34a08fb3c4bd94892c7a7b6
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