diff options
author | Sreenivasa Honnur <sreenivasa.honnur@exar.com> | 2010-04-08 04:48:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-08 04:48:30 -0400 |
commit | 9002397e2999b53a0d673cd89892c4cda58e1416 (patch) | |
tree | 4d0c7734948cb60bcea2ab6dc82d35330bdaced2 /drivers/net/vxge | |
parent | aaffbd9f7734721bf42d246eb31fc79d7adb2cb9 (diff) |
vxge: Allow driver load for all enumerated pci functions.
- 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxge')
-rw-r--r-- | drivers/net/vxge/vxge-main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c index 37836a10d09..eceb6922c80 100644 --- a/drivers/net/vxge/vxge-main.c +++ b/drivers/net/vxge/vxge-main.c | |||
@@ -4016,9 +4016,11 @@ vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre) | |||
4016 | driver_config->total_dev_cnt); | 4016 | driver_config->total_dev_cnt); |
4017 | driver_config->config_dev_cnt = 0; | 4017 | driver_config->config_dev_cnt = 0; |
4018 | driver_config->total_dev_cnt = 0; | 4018 | driver_config->total_dev_cnt = 0; |
4019 | driver_config->g_no_cpus = 0; | ||
4020 | } | 4019 | } |
4021 | 4020 | /* Now making the CPU based no of vpath calculation | |
4021 | * applicable for individual functions as well. | ||
4022 | */ | ||
4023 | driver_config->g_no_cpus = 0; | ||
4022 | driver_config->vpath_per_dev = max_config_vpath; | 4024 | driver_config->vpath_per_dev = max_config_vpath; |
4023 | 4025 | ||
4024 | driver_config->total_dev_cnt++; | 4026 | driver_config->total_dev_cnt++; |