IPoIB: Set dev_id field of net_device
authorEli Cohen <eli@dev.mellanox.co.il>
Mon, 20 Sep 2010 07:05:06 +0000 (07:05 +0000)
committerRoland Dreier <rolandd@cisco.com>
Sat, 23 Oct 2010 20:35:48 +0000 (13:35 -0700)
Use the net device's dev_id field to encode the port number of the pci
device.  This can be used to to associate a net device with the pci
device's port. The encoding is: dev_id = port - 1.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found