]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: introduce dsa_towards_port helper
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 30 Nov 2017 17:56:42 +0000 (12:56 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Dec 2017 02:20:59 +0000 (21:20 -0500)
commit8805f1d93a192f0baebe04fa3d2ac29aa313c558
treee7869942809937bd39cf27ab91c15e4cc9208b23
parent7fc88755198ae7c71bf7e5786bb8650fd52f57a6
net: dsa: introduce dsa_towards_port helper

Add a new helper returning the local port used to reach an arbitrary
switch port in the fabric.

Its only user at the moment is the dsa_upstream_port helper, which
returns the local port reaching the dedicated CPU port, but it will be
used in cross-chip FDB operations.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h