net/mlx4: Refactor QUERY_PORT
authorMatan Barak <matanb@mellanox.com>
Thu, 11 Dec 2014 08:57:59 +0000 (10:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Dec 2014 19:47:35 +0000 (14:47 -0500)
commit431df8c7e9708433459fd806a08308997de43121
tree9ffe5f599304ccbf1bd042084cf77e0fba55c93f
parent579d059bd20f34d50f2efccedc78f71f3df3d690
net/mlx4: Refactor QUERY_PORT

Currently QUERY_PORT is done as a part of QUERY_DEV_CAP firmware command.

Since we would like to use it without querying all device capabilities,
extract this part to be a function of its own.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/fw.c
drivers/net/ethernet/mellanox/mlx4/fw.h
drivers/net/ethernet/mellanox/mlx4/main.c