diff options
author | Alex Williamson <alex.williamson@hp.com> | 2009-02-04 09:02:34 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-04 16:35:11 -0800 |
commit | 2a41f71d3bd97dde3305b4e1c43ab0eca46e7c71 (patch) | |
tree | d739c170b843ff322ff0897465adbca5cd7041c7 /drivers/Makefile | |
parent | 073a24364fe6de7eef0a3dec0ec7d48e56624092 (diff) | |
download | op-kernel-dev-2a41f71d3bd97dde3305b4e1c43ab0eca46e7c71.zip op-kernel-dev-2a41f71d3bd97dde3305b4e1c43ab0eca46e7c71.tar.gz |
virtio_net: Add a virtqueue for outbound control commands
This will be used for RX mode, MAC filter table, VLAN filtering, etc...
The control transaction consists of one or more "out" sg entries and
one or more "in" sg entries. The first out entry contains a header
defining the class and command. Additional out entries may provide
data for the command. The last in entry provides a status response
back from the command.
Virtqueues typically run asynchronous, running a callback function
when there's data in the channel. We can't readily make use of this
in the command paths where we need to use this. Instead, we kick
the virtqueue and spin. The kick causes an I/O write, triggering an
immediate trap into the hypervisor.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/Makefile')
0 files changed, 0 insertions, 0 deletions