diff options
author | Nir Dotan <nird@mellanox.com> | 2019-01-20 06:50:46 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-20 11:12:57 -0800 |
commit | a04563e4892c585d63870f33e4650a98e09b243f (patch) | |
tree | 906124a210ea8e5140b59cbe5bfd51e5e8b9bbb3 /net/switchdev/switchdev.c | |
parent | 3c747500daedb037a9c9ccec61270c3aaf5d678e (diff) |
mlxsw: spectrum_router: Mark RIF index as taken before creation
The presence of an allocated RIF in mlxsw_sp->router->rifs[rif_index] marks
that rif_index as taken.
Set the marking of a taken RIF to happen before calling ops->create in
order to allow creation of a GRE underlay RIF, which may be allocated and
created as part of an overlay RIF creation.
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>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions