Commit 6f3a7c45 authored by Jian Shen's avatar Jian Shen Committed by Hao Chen
Browse files

net: hns3: add mac tunnel number query

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBV2JA


CVE: NA

----------------------------------------------------------------------

The mac tunnel number was missed when query the dev_info
by debugfs, so add it.

Fixes: c929bc2a ("net: hns3: refactor dev capability and dev spec of debugfs")
Signed-off-by: default avatarJian Shen <shenjian15@huawei.com>
Signed-off-by: default avatarHao Chen <chenhao418@huawei.com>
parent 9d553c9a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1107,6 +1107,8 @@ hns3_dbg_dev_specs(struct hnae3_handle *h, char *buf, int len, int *pos)
	*pos += scnprintf(buf + *pos, len - *pos,
			  "TX timeout threshold: %d seconds\n",
			  dev->watchdog_timeo / HZ);
	*pos += scnprintf(buf + *pos, len - *pos, "mac tunnel number: %u\n",
			  dev_specs->tnl_num);
	*pos += scnprintf(buf + *pos, len - *pos, "Hilink Version: %u\n",
			  dev_specs->hilink_version);
	*pos += scnprintf(buf + *pos, len - *pos, "total rx buffer size: %u\n",