-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: hns3: Add "qos prio map" info query function
This patch prints qos priority map information. debugfs command: echo dump qos pri map > cmd Sample Command: root@(none)# echo dump qos pri map > cmd hns3 0000:7d:00.0: dump qos pri map hns3 0000:7d:00.0: vlan_to_pri: 0x0 hns3 0000:7d:00.0: pri_0_to_tc: 0x0 hns3 0000:7d:00.0: pri_1_to_tc: 0x0 hns3 0000:7d:00.0: pri_2_to_tc: 0x0 hns3 0000:7d:00.0: pri_3_to_tc: 0x0 hns3 0000:7d:00.0: pri_4_to_tc: 0x0 hns3 0000:7d:00.0: pri_5_to_tc: 0x0 hns3 0000:7d:00.0: pri_6_to_tc: 0x0 hns3 0000:7d:00.0: pri_7_to_tc: 0x0 root@(none)# Signed-off-by: liuzhongzhu <liuzhongzhu@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
liuzhongzhu
authored and
David S. Miller
committed
Nov 24, 2018
1 parent
d958919
commit 6fc2244
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* SPDX-License-Identifier: GPL-2.0+ */ | ||
/* Copyright (c) 2018-2019 Hisilicon Limited. */ | ||
|
||
#ifndef __HCLGE_DEBUGFS_H | ||
#define __HCLGE_DEBUGFS_H | ||
|
||
#pragma pack(1) | ||
|
||
struct hclge_qos_pri_map_cmd { | ||
u8 pri0_tc : 4, | ||
pri1_tc : 4; | ||
u8 pri2_tc : 4, | ||
pri3_tc : 4; | ||
u8 pri4_tc : 4, | ||
pri5_tc : 4; | ||
u8 pri6_tc : 4, | ||
pri7_tc : 4; | ||
u8 vlan_pri : 4, | ||
rev : 4; | ||
}; | ||
|
||
#pragma pack() | ||
#endif |