git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38d5b71
)
net/hns3: support get device version when dump register
author
Chengwen Feng
<fengchengwen@huawei.com>
Wed, 31 Mar 2021 10:01:42 +0000
(18:01 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 8 Apr 2021 16:57:09 +0000
(18:57 +0200)
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 <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_regs.c
patch
|
blob
|
history
diff --git
a/drivers/net/hns3/hns3_regs.c
b/drivers/net/hns3/hns3_regs.c
index
7edd9b0
..
86a4cf7
100644
(file)
--- 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);