Module Name: src
Committed By: yamaguchi
Date: Tue Feb 25 07:22:18 UTC 2020
Modified Files:
src/sys/dev/pci: if_ixl.c
Log Message:
Add defines for the max number of queue
pointed out and reviewed by [email protected]., thanks
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/dev/pci/if_ixl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_ixl.c
diff -u src/sys/dev/pci/if_ixl.c:1.46 src/sys/dev/pci/if_ixl.c:1.47
--- src/sys/dev/pci/if_ixl.c:1.46 Tue Feb 25 07:17:19 2020
+++ src/sys/dev/pci/if_ixl.c Tue Feb 25 07:22:18 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ixl.c,v 1.46 2020/02/25 07:17:19 yamaguchi Exp $ */
+/* $NetBSD: if_ixl.c,v 1.47 2020/02/25 07:22:18 yamaguchi Exp $ */
/*
* Copyright (c) 2013-2015, Intel Corporation
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ixl.c,v 1.46 2020/02/25 07:17:19 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ixl.c,v 1.47 2020/02/25 07:22:18 yamaguchi Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -175,6 +175,9 @@ struct ixl_softc; /* defined */
I40E_PFINT_ICR0_ECC_ERR_MASK | \
I40E_PFINT_ICR0_PE_CRITERR_MASK)
+#define IXL_QUEUE_MAX_XL710 64
+#define IXL_QUEUE_MAX_X722 128
+
#define IXL_TX_PKT_DESCS 8
#define IXL_TX_PKT_MAXSIZE (MCLBYTES * IXL_TX_PKT_DESCS)
#define IXL_TX_QUEUE_ALIGN 128
@@ -1215,9 +1218,9 @@ ixl_attach(device_t parent, device_t sel
ixl_get_nvm_version(sc);
if (sc->sc_mac_type == I40E_MAC_X722)
- sc->sc_nqueue_pairs_device = 128;
+ sc->sc_nqueue_pairs_device = IXL_QUEUE_MAX_X722;
else
- sc->sc_nqueue_pairs_device = 64;
+ sc->sc_nqueue_pairs_device = IXL_QUEUE_MAX_XL710;
rv = ixl_get_hw_capabilities(sc);
if (rv != 0) {