Skip to content

Commit dd2bbc2

Browse files
Jijie ShaoPaolo Abeni
authored andcommitted
net: hns3: Support query tx timeout threshold by debugfs
support query tx timeout threshold by debugfs Signed-off-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 61a1dea commit dd2bbc2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,7 @@ hns3_dbg_dev_specs(struct hnae3_handle *h, char *buf, int len, int *pos)
10451045
struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev);
10461046
struct hnae3_dev_specs *dev_specs = &ae_dev->dev_specs;
10471047
struct hnae3_knic_private_info *kinfo = &h->kinfo;
1048+
struct net_device *dev = kinfo->netdev;
10481049

10491050
*pos += scnprintf(buf + *pos, len - *pos, "dev_spec:\n");
10501051
*pos += scnprintf(buf + *pos, len - *pos, "MAC entry num: %u\n",
@@ -1087,6 +1088,9 @@ hns3_dbg_dev_specs(struct hnae3_handle *h, char *buf, int len, int *pos)
10871088
dev_specs->mc_mac_size);
10881089
*pos += scnprintf(buf + *pos, len - *pos, "MAC statistics number: %u\n",
10891090
dev_specs->mac_stats_num);
1091+
*pos += scnprintf(buf + *pos, len - *pos,
1092+
"TX timeout threshold: %d seconds\n",
1093+
dev->watchdog_timeo / HZ);
10901094
}
10911095

10921096
static int hns3_dbg_dev_info(struct hnae3_handle *h, char *buf, int len)

0 commit comments

Comments
 (0)