aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4/cxgb4.h
diff options
context:
space:
mode:
authorDimitris Michailidis <dm@chelsio.com>2010-08-02 13:19:21 +0000
committerDavid S. Miller <davem@davemloft.net>2010-08-02 16:26:43 -0700
commit060e0c752b5047ee691120b75df4c16743981e50 (patch)
tree6d24a0ec7d6324ff2ca80c6f9ea6f1f1d6d1a2df /drivers/net/cxgb4/cxgb4.h
parentcxgb4: advertise NETIF_F_TSO_ECN (diff)
downloadlinux-dev-060e0c752b5047ee691120b75df4c16743981e50.tar.xz
linux-dev-060e0c752b5047ee691120b75df4c16743981e50.zip
cxgb4: support running the driver on PCI functions besides 0
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>
Diffstat (limited to 'drivers/net/cxgb4/cxgb4.h')
-rw-r--r--drivers/net/cxgb4/cxgb4.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/cxgb4/cxgb4.h b/drivers/net/cxgb4/cxgb4.h
index 4769c1c58e85..6e562c0dad7d 100644
--- a/drivers/net/cxgb4/cxgb4.h
+++ b/drivers/net/cxgb4/cxgb4.h
@@ -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;