net: introduce generic switch devices support
The goal of this is to provide a possibility to support various switch chips. Drivers should implement relevant ndos to do so. Now there is only one ndo defined: - for getting physical switch id is in place. Note that user can use random port netdevice to access the switch. Signed-off-by:Jiri Pirko <jiri@resnulli.us> Reviewed-by:
Thomas Graf <tgraf@suug.ch> Acked-by:
Andy Gospodarek <gospo@cumulusnetworks.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- Documentation/networking/switchdev.txt 59 additions, 0 deletionsDocumentation/networking/switchdev.txt
- MAINTAINERS 7 additions, 0 deletionsMAINTAINERS
- include/linux/netdevice.h 10 additions, 0 deletionsinclude/linux/netdevice.h
- include/net/switchdev.h 30 additions, 0 deletionsinclude/net/switchdev.h
- net/Kconfig 1 addition, 0 deletionsnet/Kconfig
- net/Makefile 3 additions, 0 deletionsnet/Makefile
- net/switchdev/Kconfig 13 additions, 0 deletionsnet/switchdev/Kconfig
- net/switchdev/Makefile 5 additions, 0 deletionsnet/switchdev/Makefile
- net/switchdev/switchdev.c 33 additions, 0 deletionsnet/switchdev/switchdev.c
Loading
Please register or sign in to comment