Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci wm(4) unset RSS UDP flags like ixg(4) and other ...



details:   https://anonhg.NetBSD.org/src/rev/5585f6d680da
branches:  trunk
changeset: 968893:5585f6d680da
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Fri Jan 31 12:09:13 2020 +0000

description:
wm(4) unset RSS UDP flags like ixg(4) and other OS's one.

To handle IP fragmented UDP first packet and second packet by the same
Rx queue.

I tested on I354.

diffstat:

 sys/dev/pci/if_wm.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r f29cdaf3cffe -r 5585f6d680da sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Fri Jan 31 12:04:57 2020 +0000
+++ b/sys/dev/pci/if_wm.c       Fri Jan 31 12:09:13 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.665 2020/01/31 12:04:57 knakahara Exp $    */
+/*     $NetBSD: if_wm.c,v 1.666 2020/01/31 12:09:13 knakahara Exp $    */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.665 2020/01/31 12:04:57 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.666 2020/01/31 12:09:13 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -5323,8 +5323,11 @@
         */
        mrqc |= (MRQC_RSS_FIELD_IPV4 | MRQC_RSS_FIELD_IPV4_TCP);
        mrqc |= (MRQC_RSS_FIELD_IPV6 | MRQC_RSS_FIELD_IPV6_TCP);
+#if 0
        mrqc |= (MRQC_RSS_FIELD_IPV4_UDP | MRQC_RSS_FIELD_IPV6_UDP);
-       mrqc |= (MRQC_RSS_FIELD_IPV6_UDP_EX | MRQC_RSS_FIELD_IPV6_TCP_EX);
+       mrqc |= MRQC_RSS_FIELD_IPV6_UDP_EX;
+#endif
+       mrqc |= MRQC_RSS_FIELD_IPV6_TCP_EX;
 
        CSR_WRITE(sc, WMREG_MRQC, mrqc);
 }



Home | Main Index | Thread Index | Old Index