net: dsa: add switch notifier
Add a notifier block per DSA switch, registered against a notifier head in the switch fabric they belong to. This infrastructure will allow to propagate fabric-wide events such as port bridging, VLAN configuration, etc. If a DSA switch driver cares about cross-chip configuration, such events can be caught. Signed-off-by:Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/dsa.h 7 additions, 0 deletionsinclude/net/dsa.h
- net/dsa/Makefile 1 addition, 0 deletionsnet/dsa/Makefile
- net/dsa/dsa.c 6 additions, 0 deletionsnet/dsa/dsa.c
- net/dsa/dsa2.c 6 additions, 0 deletionsnet/dsa/dsa2.c
- net/dsa/dsa_priv.h 4 additions, 0 deletionsnet/dsa/dsa_priv.h
- net/dsa/switch.c 53 additions, 0 deletionsnet/dsa/switch.c
net/dsa/switch.c
0 → 100644
Please register or sign in to comment