netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][net-next] net: increase MAX_GRO_SKBS to 64
@ 2018-07-02 11:41 Li RongQing
  2018-07-02 11:44 ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Li RongQing @ 2018-07-02 11:41 UTC (permalink / raw)
  To: netdev

After 07d78363dcffd [net: Convert NAPI gro list into a small hash table]
there is 8 hash buckets, which allow more flows to be held for merging.

keep each as original list length, so increase MAX_GRO_SKBS to 64

Signed-off-by: Li RongQing <lirongqing@baidu.com>
---
 net/core/dev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index 08d58e0debe5..ac315e41d5e7 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -149,8 +149,7 @@
 
 #include "net-sysfs.h"
 
-/* Instead of increasing this, you should create a hash table. */
-#define MAX_GRO_SKBS 8
+#define MAX_GRO_SKBS 64
 
 /* This should be increased if a protocol with a bigger head is added. */
 #define GRO_MAX_HEAD (MAX_HEADER + 128)
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-04  5:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-02 11:41 [PATCH][net-next] net: increase MAX_GRO_SKBS to 64 Li RongQing
2018-07-02 11:44 ` David Miller
2018-07-02 14:09   ` 答复: " Li,Rongqing
2018-07-03  6:21   ` Li RongQing
2018-07-04  5:01     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).