From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: davem@davemloft.net
Cc: Mitch Williams <mitch.a.williams@intel.com>,
netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com,
jogreene@redhat.com, Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Subject: [net-next 01/15] i40evf: increase max number of queues
Date: Thu, 3 Dec 2015 05:25:46 -0800 [thread overview]
Message-ID: <1449149160-105219-2-git-send-email-jeffrey.t.kirsher@intel.com> (raw)
In-Reply-To: <1449149160-105219-1-git-send-email-jeffrey.t.kirsher@intel.com>
From: Mitch Williams <mitch.a.williams@intel.com>
Future devices will allow for more queue pairs, so allocate a netdev
that can handle them. While we're at it, get rid of the separate
MAX_TX/MAX_RX defines. Since we always get matched queue pairs, having
these makes no sense.
Change-ID: I0e3556cd9a962506e509eb7c0afa36b329e8cb51
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
drivers/net/ethernet/intel/i40evf/i40evf.h | 3 +--
drivers/net/ethernet/intel/i40evf/i40evf_main.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/intel/i40evf/i40evf.h b/drivers/net/ethernet/intel/i40evf/i40evf.h
index a6318c4..be1b72b 100644
--- a/drivers/net/ethernet/intel/i40evf/i40evf.h
+++ b/drivers/net/ethernet/intel/i40evf/i40evf.h
@@ -97,8 +97,7 @@ struct i40e_vsi {
#define I40E_TX_DESC(R, i) (&(((struct i40e_tx_desc *)((R)->desc))[i]))
#define I40E_TX_CTXTDESC(R, i) \
(&(((struct i40e_tx_context_desc *)((R)->desc))[i]))
-#define MAX_RX_QUEUES 8
-#define MAX_TX_QUEUES MAX_RX_QUEUES
+#define MAX_QUEUES 16
#define I40EVF_HKEY_ARRAY_SIZE ((I40E_VFQF_HKEY_MAX_INDEX + 1) * 4)
#define I40EVF_HLUT_ARRAY_SIZE ((I40E_VFQF_HLUT_MAX_INDEX + 1) * 4)
diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
index 7ef1042..38f882c 100644
--- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c
+++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
@@ -2615,8 +2615,7 @@ static int i40evf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
pci_set_master(pdev);
- netdev = alloc_etherdev_mq(sizeof(struct i40evf_adapter),
- MAX_TX_QUEUES);
+ netdev = alloc_etherdev_mq(sizeof(struct i40evf_adapter), MAX_QUEUES);
if (!netdev) {
err = -ENOMEM;
goto err_alloc_etherdev;
--
2.5.0
next prev parent reply other threads:[~2015-12-03 13:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-03 13:25 [net-next 00/15][pull request] 40GbE Intel Wired LAN Driver Updates 2015-12-03 Jeff Kirsher
2015-12-03 13:25 ` Jeff Kirsher [this message]
2015-12-03 13:25 ` [net-next 02/15] i40evf: set real num queues Jeff Kirsher
2015-12-03 13:25 ` [net-next 03/15] i40evf: remove duplicate string Jeff Kirsher
2015-12-03 13:25 ` [net-next 04/15] i40e: Detection and recovery of TX queue hung logic moved to service_task from tx_timeout Jeff Kirsher
2015-12-03 13:25 ` [net-next 05/15] i40e: Fix memory leaks, sideband filter programming Jeff Kirsher
2015-12-03 13:25 ` [net-next 06/15] i40evf: don't use atomic allocation Jeff Kirsher
2015-12-03 13:25 ` [net-next 07/15] i40e: propagate properly Jeff Kirsher
2015-12-03 13:25 ` [net-next 08/15] i40evf: use correct types Jeff Kirsher
2015-12-03 13:25 ` [net-next 09/15] i40e: use priv flags to control packet split Jeff Kirsher
2015-12-05 21:25 ` Or Gerlitz
2015-12-08 23:24 ` Jesse Brandeburg
2015-12-08 23:33 ` Or Gerlitz
2015-12-03 13:25 ` [net-next 10/15] i40e: remove CONFIG_I40E_VXLAN Jeff Kirsher
2015-12-03 13:25 ` [net-next 11/15] i40e: Remove separate functions gathering XOFF Rx stats Jeff Kirsher
2015-12-03 13:25 ` [net-next 12/15] i40e: fix whitespace Jeff Kirsher
2015-12-03 13:25 ` [net-next 13/15] i40e/i40evf: use logical operator Jeff Kirsher
2015-12-03 13:25 ` [net-next 14/15] i40e/i40evf: Bump version to 1.4.7 for i40e and 1.4.3 for i40evf Jeff Kirsher
2015-12-03 13:26 ` [net-next 15/15] i40e: trivial fixes Jeff Kirsher
2015-12-03 17:11 ` [net-next 00/15][pull request] 40GbE Intel Wired LAN Driver Updates 2015-12-03 David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1449149160-105219-2-git-send-email-jeffrey.t.kirsher@intel.com \
--to=jeffrey.t.kirsher@intel.com \
--cc=davem@davemloft.net \
--cc=jogreene@redhat.com \
--cc=mitch.a.williams@intel.com \
--cc=netdev@vger.kernel.org \
--cc=nhorman@redhat.com \
--cc=sassmann@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).