]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Destroy RIF only based on its struct
authorIdo Schimmel <idosch@mellanox.com>
Fri, 26 May 2017 06:37:36 +0000 (08:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:18:48 +0000 (15:18 -0400)
commit454e681c7b2c3be2b53b7304791f63d5b74bcebc
tree82cfb5023ce63fdfd75bdcb5435ead9e64cc9b27
parent5607da0dc3de270e62459d346d7d68a31f0e3e26
mlxsw: spectrum_router: Destroy RIF only based on its struct

Now that all the information to create a RIF is contained within the RIF
struct itself, we can also simplify the destruction logic.

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_router.c