Files
linux/drivers/net
Jason Wang 547c890cfd virtio-net: avoid unnecessary sg initialzation
Usually an skb does not have up to MAX_SKB_FRAGS frags. So no need to
initialize the unuse part of sg. This patch initialize the sg based on
the real number it will used:

- during xmit, it could be inferred from nr_frags and can_push.
- for small receive buffer, it will also be 2.

Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-08-27 15:51:45 -07:00
..
2015-08-13 21:12:17 -07:00
2015-08-24 14:06:37 -07:00
2015-08-25 14:11:20 -07:00
2015-08-26 12:40:23 +03:00
2015-07-08 16:00:09 -07:00
2015-08-20 15:42:36 -07:00
2015-08-27 15:42:47 -07:00