mlx4_en: use net_device dev_id to indicate port number
authorEli Cohen <eli@mellanox.co.il>
Wed, 26 May 2010 19:56:24 +0000 (19:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 May 2010 07:27:45 +0000 (00:27 -0700)
Today, there are no means to know which port of a hardware device a netdev
interface uses. struct net_device conatins a field, dev_id, that can be used
for that. Use this field to save the port number in ConnectX that is being used
by the net device; port numbers are zero based.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found