Commit 8c367fcb authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller
Browse files

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

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: default avatarBen Hutchings <>
Acked-by: default avatarDimitris Michailidis <>
Signed-off-by: default avatarDavid S. Miller <>
parent f57855a5
......@@ -3782,7 +3782,6 @@ int t4_port_init(struct adapter *adap, int mbox, int pf, int vf)
p->lport = j;
p->rss_size = rss_size;
memcpy(adap->port[i]->dev_addr, addr, ETH_ALEN);
adap->port[i]->dev_id = j;
ret = ntohl(;
p->mdio_addr = (ret & FW_PORT_CMD_MDIOCAP) ?
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment