mlxsw: spectrum: Mark unused ports using NULL
authorIdo Schimmel <idosch@mellanox.com>
Fri, 26 Feb 2016 16:32:30 +0000 (17:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 21:07:30 +0000 (16:07 -0500)
commita133318cde2000a3264032ea3b561c9054613486
treee202e6321602b6e83a618e666a2cbb71a8162dd1
parent558c2d5e52142fc503f79bec89413724cfc37bdd
mlxsw: spectrum: Mark unused ports using NULL

When splitting and unsplitting we'll destroy usable ports on the fly, so
mark them using a NULL pointer to indicate that their local port number
is free and can be re-used.

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