]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa4a187e153c935265ba811a752ba3c7d688aa1d
tree8124dc2ba305c27bc59c9bba3cb0810b77c14761
parent55b9376d74ecd39670b0b1dba9c9453c4352ebe5
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