]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc11f9a1e4c82727b2e4a09154cda70b4686dded9
tree9ffe5f599304ccbf1bd042084cf77e0fba55c93f
parent47f63fe6d19e70011e8c11449b4451ac4202c6f7
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