summaryrefslogtreecommitdiff
path: root/drivers/net/mlx4/mlx4.c
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2019-02-06 23:25:19 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2019-02-13 12:55:38 +0100
commit714bf46ebb52152d7b17199578b35c76f835da79 (patch)
tree4d63f2c1ed8bd950f5571dacaa7e477af4012c96 /drivers/net/mlx4/mlx4.c
parent7f4019d370f6edbd9d6ef26a9bc62442b0fd80a6 (diff)
downloaddpdk-714bf46ebb52152d7b17199578b35c76f835da79.zip
dpdk-714bf46ebb52152d7b17199578b35c76f835da79.tar.gz
dpdk-714bf46ebb52152d7b17199578b35c76f835da79.tar.xz
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>
Diffstat (limited to 'drivers/net/mlx4/mlx4.c')
-rw-r--r--drivers/net/mlx4/mlx4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c
index 070cf71..6f29e5a 100644
--- a/drivers/net/mlx4/mlx4.c
+++ b/drivers/net/mlx4/mlx4.c
@@ -237,6 +237,7 @@ static const struct eth_dev_ops mlx4_dev_ops = {
.mac_addr_set = mlx4_mac_addr_set,
.stats_get = mlx4_stats_get,
.stats_reset = mlx4_stats_reset,
+ .fw_version_get = mlx4_fw_version_get,
.dev_infos_get = mlx4_dev_infos_get,
.dev_supported_ptypes_get = mlx4_dev_supported_ptypes_get,
.vlan_filter_set = mlx4_vlan_filter_set,