cxgb4: Do not set net_device::dev_id to VI index
commit8c367fcbe6549195d2eb11e62bea233f811aad41
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 10 Jun 2013 16:34:13 +0000 (10 17:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jun 2013 08:24:17 +0000 (13 01:24 -0700)
tree6ca825ce2707a0f1958351d918ca89d7096716fc
parentf57855a54fb1e7529b32821f021d351e01dcfe39
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>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c