net/mlx4_en: Implement ndo_get_phys_port_id
authorHadar Hen Zion <hadarh@mellanox.com>
Thu, 19 Dec 2013 19:20:13 +0000 (21:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2013 00:04:43 +0000 (19:04 -0500)
commit84c864038d6d991be81344fc3168ec2c2f7a8d06
treebd2b4760063a1e08d4dd31b7bac2c0d75897ed15
parent8e1a28e8e6797449dfdfa4739002d1e5939355a8
net/mlx4_en: Implement ndo_get_phys_port_id

Use the port GUID read from the firmware to identify the physical port.
This port identifier is available via ndo_get_phys_port_id for both PF
and VF net-devices.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c