Skip to content

Commit

Permalink
net/hns3: support get device version when dump register
Browse files Browse the repository at this point in the history
[ upstream commit 214917f ]

Support get device version which is equal to the firmware version
when dump register.

Fixes: 936eda2 ("net/hns3: support dump register")

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
  • Loading branch information
fengchengwen authored and steevenlee committed May 8, 2021
1 parent d0897ad commit 7764ed8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/hns3/hns3_regs.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,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);

Expand Down

0 comments on commit 7764ed8

Please sign in to comment.