virtio_net: use virtqueue_add_sgs[] for command buffers.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:14:28 +0000 (15:44 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:15:01 +0000 (15:45 +1030)
commitf7bc9594513d8f5a6e88e1486d48687ce5831834
tree9a0f267c28eac13ff049ad98de342a05d2a1f733
parentbf9582910b26525d4eeaa9840b07e7bf820f04fb
virtio_net: use virtqueue_add_sgs[] for command buffers.

It's a bit cleaner to hand multiple sgs, rather than one big one.

Cc: "Michael S. Tsirkin" <mst@redhat.com>
Tested-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/net/virtio_net.c