diff options
author | Yufeng Mo <moyufeng@huawei.com> | 2021-03-11 10:14:12 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-11 16:01:10 -0800 |
commit | e8194f3262055bc2e6e2b7c02f9de2c3d2ef7fc9 (patch) | |
tree | 8232bda4591ef4e6d1a845c920cdbd08cd69bf23 /drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | |
parent | net: hns3: use FEC capability queried from firmware (diff) | |
download | linux-dev-e8194f3262055bc2e6e2b7c02f9de2c3d2ef7fc9.tar.xz linux-dev-e8194f3262055bc2e6e2b7c02f9de2c3d2ef7fc9.zip |
net: hns3: use pause capability queried from firmware
For maintainability and compatibility, add support to use pause
capability queried from firmware, and add debugfs support to dump
this capability.
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c index dd11c57027bb..ded92ea50971 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c @@ -362,6 +362,9 @@ static void hns3_dbg_dev_caps(struct hnae3_handle *h) dev_info(&h->pdev->dev, "support UDP tunnel csum: %s\n", test_bit(HNAE3_DEV_SUPPORT_UDP_TUNNEL_CSUM_B, caps) ? "yes" : "no"); + dev_info(&h->pdev->dev, "support PAUSE: %s\n", + test_bit(HNAE3_DEV_SUPPORT_PAUSE_B, ae_dev->caps) ? + "yes" : "no"); } static void hns3_dbg_dev_specs(struct hnae3_handle *h) |