sfc: Store port number in private data, not net_device::dev_id
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 10 Jun 2013 17:03:17 +0000 (18:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2013 10:15:02 +0000 (03:15 -0700)
commit6602041b8343fcdb6433cc72ca6cb6c2e189da6d
treee926b1a9dcd555ed8703ac82c988f5345b4d437f
parent503b47eafc39cb28db7b694aa0bb9276adccb89c
sfc: Store port number in private data, not net_device::dev_id

We should not use net_device::dev_id to indicate the port number, as
this 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.
Siena's two ports each have their own MAC addresses.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/siena.c