net/mlx4_en: Expose port number through sysfs
authorAmir Vadai <amirv@mellanox.com>
Tue, 25 Feb 2014 16:17:51 +0000 (18:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Feb 2014 20:38:06 +0000 (15:38 -0500)
commit76a066f2a2a0268b565459c417b59724b5a3197b
treef1c9eff45d072f62292a6015ca80af9c39dd4d71
parent3f85944fe207d0225ef21a2c0951d4946fc9a95d
net/mlx4_en: Expose port number through sysfs

Initialize dev_port with port number (0 based) to be accessed through
sysfs from user space.

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