net/mlx: support firmware version query
authorThomas Monjalon <thomas@monjalon.net>
Wed, 6 Feb 2019 22:25:19 +0000 (23:25 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 13 Feb 2019 11:55:38 +0000 (12:55 +0100)
commit714bf46ebb52152d7b17199578b35c76f835da79
tree4d63f2c1ed8bd950f5571dacaa7e477af4012c96
parent7f4019d370f6edbd9d6ef26a9bc62442b0fd80a6
net/mlx: support firmware version query

The API function rte_eth_dev_fw_version_get() is querying drivers
via the operation callback fw_version_get().
The implementation of this operation is added for mlx4 and mlx5.
Both functions are copying the same ibverbs field fw_ver
which is retrieved when calling ibv_query_device[_ex]()
during the port probing.

It is tested with command "drvinfo" of examples/ethtool/.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
doc/guides/nics/features/mlx4.ini
doc/guides/nics/features/mlx5.ini
doc/guides/rel_notes/release_19_05.rst
drivers/net/mlx4/mlx4.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/mlx4_ethdev.c
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_ethdev.c