Skip to content

Commit

Permalink
cxgb4: support running the driver on PCI functions besides 0
Browse files Browse the repository at this point in the history
Add support for running the driver on any PCI function.  Mostly this
entails replacing a constant 0 in a number of calls with the variable
function number.

Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dimitris Michailidis authored and David S. Miller committed Aug 2, 2010
1 parent 35d3568 commit 060e0c7
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 72 deletions.
3 changes: 2 additions & 1 deletion drivers/net/cxgb4/cxgb4.h
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ struct adapter {
struct pci_dev *pdev;
struct device *pdev_dev;
unsigned long registered_device_map;
unsigned long flags;
unsigned int fn;
unsigned int flags;

const char *name;
int msg_enable;
Expand Down
Loading

0 comments on commit 060e0c7

Please sign in to comment.