login
Header Space

 
 

Re: [6/6] [VIRTIO] net: Allow receiving SG packets

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <virtualization@...>
Cc: Herbert Xu <herbert@...>, <virtualization@...>, <netdev@...>
Date: Monday, April 21, 2008 - 3:06 pm

On Friday 18 April 2008 13:24:27 Herbert Xu wrote:
...

I'm not sure what the right number is here.  Say worst case is header which 
goes over a page boundary then MAX_SKB_FRAGS in the skb, but for some reason 
that already has a +2:

/* To allow 64K frame to be packed as single skb without frag_list */
#define MAX_SKB_FRAGS (65536/PAGE_SIZE + 2)

Unless someone explains, I'll change the xmit sg to 2+MAX_SKB_FRAGS as well.

Thanks,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [6/6] [VIRTIO] net: Allow receiving SG packets, Rusty Russell, (Mon Apr 21, 3:06 pm)
Re: [6/6] [VIRTIO] net: Allow receiving SG packets, David Miller, (Mon Apr 21, 4:04 pm)
Re: [6/6] [VIRTIO] net: Allow receiving SG packets, Rusty Russell, (Mon Apr 21, 10:50 pm)
Re: [6/6] [VIRTIO] net: Allow receiving SG packets, David Miller, (Mon Apr 21, 10:55 pm)
Re: [6/6] [VIRTIO] net: Allow receiving SG packets, Herbert Xu, (Mon Apr 21, 9:13 pm)
speck-geostationary