From: Dimitris Michailidis Date: Fri, 18 Jun 2010 10:05:30 +0000 (+0000) Subject: cxgb4: set dev_id to the port number X-Git-Tag: firefly_0821_release~9833^2~1306^2~536 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f21ce1c3516728e767165a3b52b6c249ad6e52c6;p=firefly-linux-kernel-4.4.55.git cxgb4: set dev_id to the port number Signed-off-by: Dimitris Michailidis Signed-off-by: David S. Miller --- 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) 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) ?