Skip to content

Commit 8c367fc

Browse files
Ben Hutchingsdavem330
authored andcommitted
cxgb4: Do not set net_device::dev_id to VI index
net_device::dev_id should not be used merely to indicate a VI index, as it affects the way the local part of IPv6 addresses is normally generated. This field was intended for use where multiple devices may share a single assigned MAC address and need to have different IPv6 addresses. T4 VIs each have their own MAC address. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Acked-by: Dimitris Michailidis <dm@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f57855a commit 8c367fc

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • drivers/net/ethernet/chelsio/cxgb4

‎drivers/net/ethernet/chelsio/cxgb4/t4_hw.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3782,7 +3782,6 @@ int t4_port_init(struct adapter *adap, int mbox, int pf, int vf)
37823782
p->lport = j;
37833783
p->rss_size = rss_size;
37843784
memcpy(adap->port[i]->dev_addr, addr, ETH_ALEN);
3785-
adap->port[i]->dev_id = j;
37863785

37873786
ret = ntohl(c.u.info.lstatus_to_modtype);
37883787
p->mdio_addr = (ret & FW_PORT_CMD_MDIOCAP) ?

0 commit comments

Comments
 (0)