diff options
author | Yotam Gigi <[email protected]> | 2017-10-09 11:15:33 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-10-09 10:18:11 -0700 |
commit | b35750f19102271485af9092b800863164dd4be0 (patch) | |
tree | 217777e6f1a6ca17dbb4e946e007c2bf0be70fa7 /net/switchdev/switchdev.c | |
parent | 0912bda436388a02c72164b4b490b578e64c012e (diff) |
mlxsw: spectrum: router: Export the mlxsw_sp_router_port function
In Spectrum hardware, the router port is a virtual port that is the gateway
to the routing mechanism. Hence, in order for a packet to be L3 forwarded,
it must first be L2 forwarded to the router port inside the hardware.
Further patches in this patchset are going to introduce support in bridge
device used as an mrouter port. In this case, the router port index will be
needed in order to update the MDB entries to include the router port. Thus,
export the mlxsw_sp_router_port function, which returns the index of the
Spectrum router port.
Signed-off-by: Yotam Gigi <[email protected]>
Reviewed-by: Nogah Frankel <[email protected]>
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions