mlx4: add MOFED 3.0 compatibility to interface name retrieval
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Tue, 30 Jun 2015 09:27:48 +0000 (11:27 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 1 Jul 2015 08:45:59 +0000 (10:45 +0200)
commit68a60cee2fa5703d0a0934cdff2b8ed81db0b2b8
treefa3a00fc95bddab65cdc1643bb38ba41b3e0aa60
parent53bbf5afbdaab6242d400e8b725ac6c6e9c50e10
mlx4: add MOFED 3.0 compatibility to interface name retrieval

Since Mellanox OFED 3.0 and Linux 3.15, interface port numbers are stored
in dev_port instead of dev_id sysfs files.

Signed-off-by: Or Ami <ora@mellanox.com>
Signed-off-by: Nitzan Weller <nitzanwe@mellanox.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c