Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci/ixgbe Comment out flow director processing in fa...



details:   https://anonhg.NetBSD.org/src/rev/9e42f89f1f81
branches:  trunk
changeset: 983286:9e42f89f1f81
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Fri May 14 01:30:06 2021 +0000

description:
Comment out flow director processing in fast path.

ixgbe_xmit() is per-queue fast path.  It should reduce access to
per-device data (adapter->feat_en).

diffstat:

 sys/dev/pci/ixgbe/ix_txrx.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 1b44bef39a6b -r 9e42f89f1f81 sys/dev/pci/ixgbe/ix_txrx.c
--- a/sys/dev/pci/ixgbe/ix_txrx.c       Thu May 13 09:05:19 2021 +0000
+++ b/sys/dev/pci/ixgbe/ix_txrx.c       Fri May 14 01:30:06 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ix_txrx.c,v 1.72 2021/05/11 01:30:30 rin Exp $ */
+/* $NetBSD: ix_txrx.c,v 1.73 2021/05/14 01:30:06 knakahara Exp $ */
 
 /******************************************************************************
 
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ix_txrx.c,v 1.72 2021/05/11 01:30:30 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ix_txrx.c,v 1.73 2021/05/14 01:30:06 knakahara Exp $");
 
 #include "opt_inet.h"
 #include "opt_inet6.h"
@@ -485,6 +485,7 @@
                return (error);
        }
 
+#ifdef IXGBE_FDIR
        /* Do the flow director magic */
        if ((adapter->feat_en & IXGBE_FEATURE_FDIR) &&
            (txr->atr_sample) && (!adapter->fdir_reinit)) {
@@ -494,6 +495,7 @@
                        txr->atr_count = 0;
                }
        }
+#endif
 
        olinfo_status |= IXGBE_ADVTXD_CC;
        i = txr->next_avail_desc;



Home | Main Index | Thread Index | Old Index