|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 1/1] xen/netback: correctly calculate required slots of skb.
On 2013-7-11 16:11, Ian Campbell wrote: On Wed, 2013-07-10 at 17:15 +0800, Annie Li wrote: No, it does not correspond to this in gop_frag_copy. The code here only increase count for the first time. I thought to initialize the count in xen_netbk_count_skb_slots with 1 to avoid this. But thinking of the extreme case when the header size is zero(not sure whether this case could be true), I increase the count here to keep safe in case header size is zero. There is code correspond to that in gop_frag_copy in xen_netbk_count_skb_slots, see following, + if (skb_shinfo(skb)->gso_size && !vif->gso_prefix) + count++; (The original code does not have gso_prefix, I added it in this patch too based on Wei's suggestion) Actually it is similar with that in xen_netbk_count_skb_slots, see above comments. Thanks Annie _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |