net/hns3: fix data overwriting during register dump
authorChengchang Tang <tangchengchang@huawei.com>
Thu, 14 Jan 2021 13:33:35 +0000 (21:33 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:32 +0000 (03:30 +0100)
commit6da903befad6a7da52ee6b80554f63bf74bb9ad1
treec71814b16ead00603e1a605873b8062f7f140b6a
parent2d0467532b1a2c10739a89ead3bd03042486b1de
net/hns3: fix data overwriting during register dump

The data pointer has not moved after BAR register dumped. This causes
the later register to overwrite the previous data.

This patch fix the overwriting by move the pointer after every dump
function. And the missing separator between 32-bit register and the
64-bit register is also added to avoid a parsing error.

Fixes: 936eda25e8da ("net/hns3: support dump register")
Cc: stable@dpdk.org
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_regs.c