]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit1b8f09a05f33dbced2e48cd1c6d3ee524739ff63
tree82cfb5023ce63fdfd75bdcb5435ead9e64cc9b27
parentab01ae916911d11af9f4375b8276378b9474400c
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