OSDN Git Service

net: dsa: introduce bridge notifier
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 3 Feb 2017 18:20:21 +0000 (13:20 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2017 21:53:29 +0000 (16:53 -0500)
commit04d3a4c6af52a58370795bc9f70dc15f51f8bb84
tree07ed46ceedeb980d62da34ae26e3aac5f8af7dfb
parentf515f192ab4f45bb695146b82432d63d98775787
net: dsa: introduce bridge notifier

A slave device will now notify the switch fabric once its port is
bridged or unbridged, instead of calling directly its switch operations.

This code allows propagating cross-chip bridging events in the fabric.

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