summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDimitris Michailidis <dm@chelsio.com>2010-06-18 10:05:30 +0000
committerDavid S. Miller <davem@davemloft.net>2010-06-18 22:08:36 -0700
commitf21ce1c3516728e767165a3b52b6c249ad6e52c6 (patch)
tree35ae7ff5105c3bea33ad9e7d4bb328df3b0e23af /drivers
parent204dc3c0b1bea10a7d811970fd41ceabaef31267 (diff)
cxgb4: set dev_id to the port number
Signed-off-by: Dimitris Michailidis <dm@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/cxgb4/t4_hw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/cxgb4/t4_hw.c b/drivers/net/cxgb4/t4_hw.c
index 0c8a84a258f..4c956fbf0c4 100644
--- a/drivers/net/cxgb4/t4_hw.c
+++ b/drivers/net/cxgb4/t4_hw.c
@@ -3162,6 +3162,7 @@ int __devinit t4_port_init(struct adapter *adap, int mbox, int pf, int vf)
p->rss_size = rss_size;
memcpy(adap->port[i]->dev_addr, addr, ETH_ALEN);
memcpy(adap->port[i]->perm_addr, addr, ETH_ALEN);
+ adap->port[i]->dev_id = j;
ret = ntohl(c.u.info.lstatus_to_modtype);
p->mdio_addr = (ret & FW_PORT_CMD_MDIOCAP) ?