From: Jason Wang <jasow...@redhat.com>
Date: Thu, 27 Aug 2015 14:53:06 +0800

> 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 <m...@redhat.com>
> Signed-off-by: Jason Wang <jasow...@redhat.com>

This looks fine, thanks Jason.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to