OSDN Git Service

mlxsw: spectrum_router: Adjust loopback RIF configuration
authorNir Dotan <nird@mellanox.com>
Sun, 20 Jan 2019 06:50:42 +0000 (06:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Jan 2019 19:12:57 +0000 (11:12 -0800)
commit3c747500daedb037a9c9ccec61270c3aaf5d678e
treee96c1ae4511e7c72f70b41a7b605015d0e22eb9a
parent1f5b23033937f5a4f232b0373ff4a4c5302a6f0c
mlxsw: spectrum_router: Adjust loopback RIF configuration

In Spectrum-2, the underlay routing table is pointed by an underlay router
interface in contrary to Spectrum where only an underlay virtual router
should be set. That makes the underlay virtual router field in RITR
reserved for Spectrum-2.

Change loopback RIF creation function to support the new underlay RIF
field, however leave this field reserved for Spectrum-1 updates.

Signed-off-by: Nir Dotan <nird@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c