diff options
author | Dimitris Michailidis <dm@chelsio.com> | 2010-06-18 06:05:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-19 01:08:36 -0400 |
commit | f21ce1c3516728e767165a3b52b6c249ad6e52c6 (patch) | |
tree | 35ae7ff5105c3bea33ad9e7d4bb328df3b0e23af /drivers/net/cxgb4/t4_hw.c | |
parent | 204dc3c0b1bea10a7d811970fd41ceabaef31267 (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/net/cxgb4/t4_hw.c')
-rw-r--r-- | drivers/net/cxgb4/t4_hw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/cxgb4/t4_hw.c b/drivers/net/cxgb4/t4_hw.c index 0c8a84a258f3..4c956fbf0c49 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) | |||
3162 | p->rss_size = rss_size; | 3162 | p->rss_size = rss_size; |
3163 | memcpy(adap->port[i]->dev_addr, addr, ETH_ALEN); | 3163 | memcpy(adap->port[i]->dev_addr, addr, ETH_ALEN); |
3164 | memcpy(adap->port[i]->perm_addr, addr, ETH_ALEN); | 3164 | memcpy(adap->port[i]->perm_addr, addr, ETH_ALEN); |
3165 | adap->port[i]->dev_id = j; | ||
3165 | 3166 | ||
3166 | ret = ntohl(c.u.info.lstatus_to_modtype); | 3167 | ret = ntohl(c.u.info.lstatus_to_modtype); |
3167 | p->mdio_addr = (ret & FW_PORT_CMD_MDIOCAP) ? | 3168 | p->mdio_addr = (ret & FW_PORT_CMD_MDIOCAP) ? |