]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Introduce struct net_dev_operations
authorAsias He <asias.hejun@gmail.com>
Wed, 29 Jun 2011 08:47:36 +0000 (16:47 +0800)
committerPekka Enberg <penberg@kernel.org>
Thu, 30 Jun 2011 07:42:47 +0000 (10:42 +0300)
commit4a6d057f79d3d3f4c214b0c70f0fdff03a47d730
tree573224a8f4e402858029f34a3d75cff22b3d556e
parent6ba4b23023bfc6f7659e5f575845d62c5cc5a1ae
kvm tools: Introduce struct net_dev_operations

virtio_net_{tx, rx}_thread can use ops->{tx, rx} to send and recevie
network package in both tap mode and user mode.

Suggested-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/virtio/net.c