Skip to content

Commit

Permalink
vxge: Allow driver load for all enumerated pci functions.
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
Sreenivasa Honnur authored and David S. Miller committed Apr 8, 2010
1 parent aaffbd9 commit 9002397
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/vxge/vxge-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4016,9 +4016,11 @@ vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre)
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++;
Expand Down

0 comments on commit 9002397

Please sign in to comment.