login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <rusty@...>
Cc: <virtualization@...>, <herbert@...>, <virtualization@...>, <netdev@...>
Date: Monday, April 21, 2008 - 10:55 pm

From: Rusty Russell <rusty@rustcorp.com.au>
Date: Tue, 22 Apr 2008 12:50:27 +1000


To be honest I have no idea.

When Alexey added the TSO changeset way back then, it had the
"+2", from the history-2.6 tree:

commit 80223d5186f73bf42a7e260c66c9cb9f7d8ec9cf
Author: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Date:   Wed Aug 28 11:52:03 2002 -0700

    [NET]: Add TCP segmentation offload core infrastructure.

 ...
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index a812681..9b6e6ad 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -109,7 +109,8 @@ struct sk_buff_head {
 
 struct sk_buff;
 
-#define MAX_SKB_FRAGS 6
+/* To allow 64K frame to be packed as single skb without frag_list */
+#define MAX_SKB_FRAGS (65536/PAGE_SIZE + 2)
 
 typedef struct skb_frag_struct skb_frag_t;
 
--
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