]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Use only one function to create vFIDs
authorIdo Schimmel <idosch@mellanox.com>
Mon, 20 Jun 2016 21:04:09 +0000 (23:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 09:02:49 +0000 (05:02 -0400)
commit3e88b741a7fdb17e9e2a26fa8ff20b5da5ee841d
treec2ebd536d9df6537d0d9692cdd0e36d56148cd06
parent2579346f68cf7b6cd2bd4b71a747cdaec98dbfe0
mlxsw: spectrum: Use only one function to create vFIDs

Simplify the code and use only one function for vFID creation /
destruction.

Unlike before, the function receives a FID index as its argument and not
a vFID index. Instead of passing 0, now one would need to pass 4K, which
is the first vFID.

This is the first step in creating a generic FID struct that will be
used for all three types of FIDs.

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