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)
commitf4a761d2030289229e5e7837a8afd35e48af464c
tree9a4e7a6e9deb41a822d86cafb3f00c339cf3f197
parent186962ebb7ecd74d305cf167e99bf1885b89ea8c
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