From 214917f66bf2852c7b758550fdcab1738cad8fa4 Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Wed, 31 Mar 2021 18:01:42 +0800 Subject: [PATCH] net/hns3: support get device version when dump register Support get device version which is equal to the firmware version when dump register. Fixes: 936eda25e8da ("net/hns3: support dump register") Cc: stable@dpdk.org Signed-off-by: Chengwen Feng Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_regs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/hns3/hns3_regs.c b/drivers/net/hns3/hns3_regs.c index 7edd9b023b..86a4cf74d5 100644 --- a/drivers/net/hns3/hns3_regs.c +++ b/drivers/net/hns3/hns3_regs.c @@ -499,6 +499,8 @@ hns3_get_regs(struct rte_eth_dev *eth_dev, struct rte_dev_reg_info *regs) if (regs->length && regs->length != length) return -ENOTSUP; + regs->version = hw->fw_version; + /* fetching per-PF registers values from PF PCIe register space */ data += hns3_direct_access_regs(hw, data); -- 2.20.1