virtio-net: move sg off stack
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 8 Apr 2010 04:01:41 +0000 (21:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Apr 2010 04:01:41 +0000 (21:01 -0700)
commit5e01d2f91df62be4d6f282149bc2a8858992ceca
tree8124dc2ba305c27bc59c9bba3cb0810b77c14761
parentb681ee77f8ad248b0fdcec2e5e8c4df6e757eba3
virtio-net: move sg off stack

Move sg structure off stack and into virtnet_info structure.
This helps remove extra sg_init_table calls as well as reduce
stack usage.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c