commit | c3aa9b186b95025d4ba4e90d6140c9887dfaae0a | [log] [tgz] |
---|---|---|
author | Eli Cohen <eli@dev.mellanox.co.il> | Mon Sep 20 07:05:06 2010 +0000 |
committer | Roland Dreier <rolandd@cisco.com> | Sat Oct 23 13:35:48 2010 -0700 |
tree | 1ab36ff2660cb642362c4da3cc1f01b0545c6616 | |
parent | fed1db33fe85573487a4732d628ac5afdb5dc776 [diff] |
IPoIB: Set dev_id field of net_device 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>