rocker: introduce rocker switch driver

This patch introduces the first driver to benefit from the switchdev
infrastructure and to implement newly introduced switch ndos. This is a
driver for emulated switch chip implemented in qemu:
https://github.com/sfeldma/qemu-rocker/

This patch is a result of joint work with Scott Feldman.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Reviewed-by: Thomas Graf <tgraf@suug.ch>
Reviewed-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jiri Pirko
2014-11-28 14:34:26 +01:00
committed by David S. Miller
parent 2c3c031c8f
commit 4b8ac9660a
7 changed files with 2528 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#
# Rocker device configuration
#
config NET_VENDOR_ROCKER
bool "Rocker devices"
default y
---help---
If you have a network device belonging to this class, say Y.
Note that the answer to this question doesn't directly affect the
kernel: saying N will just cause the configurator to skip all
the questions about Rocker devices. If you say Y, you will be asked for
your specific card in the following questions.
if NET_VENDOR_ROCKER
config ROCKER
tristate "Rocker switch driver (EXPERIMENTAL)"
depends on PCI && NET_SWITCHDEV
---help---
This driver supports Rocker switch device.
To compile this driver as a module, choose M here: the
module will be called rocker.
endif # NET_VENDOR_ROCKER