]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: support cross-chip FDB operations
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 30 Nov 2017 17:56:43 +0000 (12:56 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Dec 2017 02:21:17 +0000 (21:21 -0500)
commit406c9602120fd68e96545b4ab7383f34c0c5a73b
tree6865c94b27eaef509b93bbcd81fce2c87baa9c67
parent8805f1d93a192f0baebe04fa3d2ac29aa313c558
net: dsa: support cross-chip FDB operations

When a MAC address is added to or removed from a switch port in the
fabric, the target switch must program its port and adjacent switches
must program their local DSA port used to reach the target switch.

For this purpose, use the dsa_towards_port() helper to identify the
local switch port which must be programmed.

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