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: NJiri Pirko <jiri@resnulli.us> Reviewed-by: NThomas Graf <tgraf@suug.ch> Acked-by: NAndy Gospodarek <gospo@cumulusnetworks.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
include/net/switchdev.h
0 → 100644
net/switchdev/Kconfig
0 → 100644
net/switchdev/Makefile
0 → 100644
net/switchdev/switchdev.c
0 → 100644
想要评论请 注册 或 登录