diff options
author | 2017-01-23 12:17:33 +0100 | |
---|---|---|
committer | 2017-01-24 14:07:22 -0500 | |
commit | e1636836e0a080b71da1954f8604b1238e53d3b9 (patch) | |
tree | e6fe65c088f9fc5e03bb43de4e808762bb678872 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | net: broadcom: bnx2x: use new api ethtool_{get|set}_link_ksettings (diff) | |
download | wireguard-linux-e1636836e0a080b71da1954f8604b1238e53d3b9.tar.xz wireguard-linux-e1636836e0a080b71da1954f8604b1238e53d3b9.zip |
net: dummy: Introduce dummy virtual functions
The idea for this was born when testing VF support in iproute2 which was
impeded by hardware requirements. In fact, not every VF-capable hardware
driver implements all netdev ops, so testing the interface is still hard
to do even with a well-sorted hardware shelf.
To overcome this and allow for testing the user-kernel interface, this
patch allows to turn dummy into a PF with a configurable amount of VFs.
Since my patch series 'bus-agnostic-num-vf' has been accepted,
implementing the required interfaces is pretty straightforward: Iff
'num_vfs' module parameter was given a value >0, a dummy bus type is
being registered which implements the 'num_vf()' callback. Additionally,
a dummy parent device common to all dummy devices is registered which
sits on the above dummy bus.
Joint work with Sabrina Dubroca.
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions