Huazhong Tan
77e9184869
net: hns3: refactor dump bd info of debugfs
...
Currently, the debugfs command for bd info is implemented
by "echo xxxx > cmd", and record the information in dmesg.
It's unnecessary and heavy.
To improve it, add two debugfs directories "tx_bd_info" and
"rx_bd_info", and create a file for each queue under these
two directories, and query the bd info of specific queue by
"cat tx_bd_info/tx_bd_queue*" or "cat rx_bd_info/rx_bd_queue*",
return the result to userspace, rather than record in dmesg.
The display style is below:
$ cat rx_bd_info/rx_bd_queue0
Queue 0 rx bd info:
BD_IDX L234_INFO PKT_LEN SIZE...
0 0x0 60 60...
1 0x0 1512 1512...
$ cat tx_bd_info/tx_bd_queue0
Queue 0 tx bd info:
BD_IDX ADDRESS VLAN_TAG SIZE...
0 0x0 0 0...
1 0x0 0 0...
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2021-05-14 15:07:34 -07:00
..
2021-04-26 11:20:10 -07:00
2021-05-07 12:11:05 -07:00
2021-04-27 13:42:11 -07:00
2021-05-05 13:24:11 -07:00
2021-05-12 14:03:54 -07:00
2021-05-07 00:26:34 -07:00
2021-05-07 00:26:33 -07:00
2021-04-18 09:36:56 +03:00
2021-05-07 11:35:12 -07:00
2021-04-29 11:57:23 -07:00
2021-04-26 12:11:52 -07:00
2021-04-11 19:32:06 -06:00
2021-05-07 00:26:34 -07:00
2021-05-05 13:24:11 -07:00
2021-05-01 10:14:08 -07:00
2021-04-15 09:26:25 +02:00
2021-04-26 15:10:25 -07:00
2021-05-01 10:14:08 -07:00
2021-04-16 18:21:56 -07:00
2021-05-04 11:24:46 -07:00
2021-04-28 15:59:13 -07:00
2021-04-26 09:43:16 -07:00
2021-05-07 12:11:05 -07:00
2021-04-26 12:11:52 -07:00
2021-05-05 12:39:29 -07:00
2021-05-08 11:30:22 -07:00
2021-04-16 07:26:50 +02:00
2021-04-29 21:47:22 +02:00
2021-04-16 00:14:49 +02:00
2021-04-27 18:09:44 -07:00
2021-04-26 15:03:23 -07:00
2021-05-01 10:14:08 -07:00
2021-04-30 13:01:02 -07:00
2021-04-24 22:21:01 +02:00
2021-04-26 16:32:11 -07:00
2021-05-07 11:35:12 -07:00
2021-05-06 23:37:55 -07:00
2021-04-27 10:16:46 -07:00
2021-05-05 13:24:11 -07:00
2021-05-01 10:14:08 -07:00
2021-05-11 16:12:46 -07:00
2021-05-03 12:23:03 -07:00
2021-04-13 09:16:12 -06:00
2021-04-16 23:57:51 +10:00
2021-04-28 16:10:33 -07:00
2021-05-07 00:34:51 -07:00
2021-05-07 00:34:51 -07:00
2021-05-02 00:43:35 +09:00
2021-04-26 11:08:23 +02:00
2021-04-13 01:39:12 -04:00
2021-04-28 15:59:13 -07:00
2021-05-01 09:33:00 -07:00
2021-04-28 15:56:51 -07:00
2021-04-26 11:14:21 -07:00
2021-05-04 18:08:40 -07:00
2021-05-14 15:07:34 -07:00
2021-04-13 14:50:57 -07:00
2021-05-06 19:24:11 -07:00
2021-05-04 09:39:26 +02:00
2021-05-03 13:57:56 -05:00
2021-05-07 00:26:34 -07:00
2021-05-06 14:39:50 -07:00
2021-05-01 10:14:08 -07:00
2021-04-29 11:57:23 -07:00
2021-05-09 00:29:45 +09:00
2021-05-07 14:49:18 -07:00
2021-04-28 15:43:58 -07:00
2021-04-26 11:20:10 -07:00
2021-05-10 14:54:23 -07:00
2021-05-05 12:53:16 -07:00
2021-04-28 15:59:13 -07:00
2021-05-04 11:13:33 -07:00
2021-05-05 13:24:11 -07:00
2021-05-03 12:15:21 -07:00
2021-05-07 11:35:12 -07:00
2021-05-08 10:44:36 -07:00
2021-04-26 09:43:16 -07:00
2021-05-01 09:33:00 -07:00
2021-04-30 12:48:14 -07:00
2021-04-30 12:44:02 -07:00
2021-05-08 10:44:36 -07:00
2021-04-26 12:11:52 -07:00
2021-05-05 12:46:48 -07:00
2021-04-13 12:17:14 +02:00
2021-05-02 00:43:35 +09:00
2021-05-11 16:17:56 -07:00
2021-05-03 04:55:54 -04:00
2021-05-01 09:33:00 -07:00
2021-05-05 13:31:39 -07:00
2021-05-07 00:34:51 -07:00
2021-04-29 19:06:49 +02:00
2021-05-04 04:19:59 -04:00
2021-04-28 15:59:13 -07:00
2021-05-04 10:58:49 -07:00
2021-04-15 09:26:25 +02:00
2021-05-05 13:31:39 -07:00