]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita0837b9d34e333d2797893e7a29f9917c3654a4a
treee202e6321602b6e83a618e666a2cbb71a8162dd1
parentc9b54f80f2f3db63dfaa3e9a53819f8db7b24aa7
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