]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Add mlxsw_sp.mac_mask
authorPetr Machata <petrm@mellanox.com>
Thu, 13 Dec 2018 11:54:50 +0000 (11:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2018 02:41:39 +0000 (18:41 -0800)
commit13b8592299df3a3c57ea2898358c56e7bc83de77
tree2b7e7e1c9a4900a60ef755afec2863bff6bf43ad
parent4f85654b805745188afc528e86ca3f948f58de00
mlxsw: spectrum: Add mlxsw_sp.mac_mask

The Spectrum hardware demands that all router interfaces in the system
have the same first 38 resp. 36 bits of MAC address: the former limit
holds on Spectrum, the latter on Spectrum-2. Add a field that refers to
the required prefix mask and initialize in mlxsw_sp1_init() and
mlxsw_sp2_init().

Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h