From: Sreenivasa Honnur <Sreenivasa.Honnur@neterion.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, support@neterion.com
Subject: [net-next-2.6 PATCH 2/4] vxge: Allow driver load for all enumerated pci functions.
Date: Thu, 8 Apr 2010 04:43:37 -0400 (EDT) [thread overview]
Message-ID: <Pine.GSO.4.10.11004080442170.365-100000@guinness> (raw)
- Allow all instances of the driver be loaded when multiple pci functions are
enumerated. The max_config_dev driver loadable option limits the driver
load instances if required. The X3100's function configuration of single/multi
function, SR and MR IOV allows the user to select the number of pci functions.
Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@exar.com>
Signed-off-by: Ramkrishna Vepa <ram.vepa@exar.com>
---
diff -urpN patch1/drivers/net/vxge/vxge-main.c patch2/drivers/net/vxge/vxge-main.c
--- patch1/drivers/net/vxge/vxge-main.c 2010-04-01 12:04:00.000000000 +0530
+++ patch2/drivers/net/vxge/vxge-main.c 2010-04-01 12:12:50.000000000 +0530
@@ -4016,9 +4016,11 @@ vxge_probe(struct pci_dev *pdev, const s
driver_config->total_dev_cnt);
driver_config->config_dev_cnt = 0;
driver_config->total_dev_cnt = 0;
- driver_config->g_no_cpus = 0;
}
-
+ /* Now making the CPU based no of vpath calculation
+ * applicable for individual functions as well.
+ */
+ driver_config->g_no_cpus = 0;
driver_config->vpath_per_dev = max_config_vpath;
driver_config->total_dev_cnt++;
next reply other threads:[~2010-04-08 8:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-08 8:43 Sreenivasa Honnur [this message]
2010-04-08 8:48 ` [net-next-2.6 PATCH 2/4] vxge: Allow driver load for all enumerated pci functions 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=Pine.GSO.4.10.11004080442170.365-100000@guinness \
--to=sreenivasa.honnur@neterion.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=support@neterion.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).