aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/vxge
diff options
context:
space:
mode:
authorSreenivasa Honnur <Sreenivasa.Honnur@neterion.com>2009-10-04 21:52:54 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-06 18:22:51 -0400
commit657205bdd7b276d95b3a5bac7e856e22c4001136 (patch)
tree30ab3ec80b6933771703b56c3919e4e5879fa848 /drivers/net/vxge
parent92cdd7c377c893c72d6968537076a18a510ae5cc (diff)
vxge: Update driver_config->vpath_per_dev for each function in probe.
- Update driver_config->vpath_per_dev for each function in probe. - vpath_per_device specifies number of vpaths supported for each function/device. The current code was updating vpath_per_device only for physical device, however this has to be updated for each function also in case of a MF(Multi function) device. Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxge')
-rw-r--r--drivers/net/vxge/vxge-main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c
index 068d7a9d3e36..7a851ac30c60 100644
--- a/drivers/net/vxge/vxge-main.c
+++ b/drivers/net/vxge/vxge-main.c
@@ -4088,9 +4088,10 @@ vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre)
4088 driver_config->config_dev_cnt = 0; 4088 driver_config->config_dev_cnt = 0;
4089 driver_config->total_dev_cnt = 0; 4089 driver_config->total_dev_cnt = 0;
4090 driver_config->g_no_cpus = 0; 4090 driver_config->g_no_cpus = 0;
4091 driver_config->vpath_per_dev = max_config_vpath;
4092 } 4091 }
4093 4092
4093 driver_config->vpath_per_dev = max_config_vpath;
4094
4094 driver_config->total_dev_cnt++; 4095 driver_config->total_dev_cnt++;
4095 if (++driver_config->config_dev_cnt > max_config_dev) { 4096 if (++driver_config->config_dev_cnt > max_config_dev) {
4096 ret = 0; 4097 ret = 0;