]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Extend the RIF struct
authorIdo Schimmel <idosch@mellanox.com>
Fri, 26 May 2017 06:37:34 +0000 (08:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:18:48 +0000 (15:18 -0400)
commit4140fda59e74596ffad91163dec2e3dd69ddb782
treefb063b159180e126b34530d7828e814c1e3c9263
parent912a44bec179e3a9a80e2655b8bf402d14216c6b
mlxsw: spectrum_router: Extend the RIF struct

Currently, when a Subport RIF is configured, the LAG status and VLAN of
the underlying port are read from the port itself. This is problematic,
as we would like to have common code to configure all types of RIFs,
which aren't necessarily bound to a port.

Instead, embed the RIF in a struct specific to the Subport type, which
contains all the necessary information.

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