diff options
author | Luo bin <luobin9@huawei.com> | 2020-08-28 06:37:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-31 22:21:26 +0300 |
commit | 253ac3a97921b89171069e8f12fd89b6bf1e66c5 (patch) | |
tree | b2bb043b8dcfcfe7997526c8dd2e67d2a79d7c9f /drivers/net/ethernet/huawei/hinic/hinic_dev.h | |
parent | c30a3c957c885e618ddffc065f888be4f8d5a9bd (diff) | |
download | linux-253ac3a97921b89171069e8f12fd89b6bf1e66c5.tar.xz |
hinic: add support to query sq info
add debugfs node for querying sq info, for example:
cat /sys/kernel/debug/hinic/0000:15:00.0/SQs/0x0/sq_pi
Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/huawei/hinic/hinic_dev.h')
-rw-r--r-- | drivers/net/ethernet/huawei/hinic/hinic_dev.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_dev.h b/drivers/net/ethernet/huawei/hinic/hinic_dev.h index 0a1e20edf7cf..95d9548014ac 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_dev.h +++ b/drivers/net/ethernet/huawei/hinic/hinic_dev.h @@ -58,6 +58,18 @@ struct hinic_intr_coal_info { u8 resend_timer_cfg; }; +enum hinic_dbg_type { + HINIC_DBG_SQ_INFO, +}; + +struct hinic_debug_priv { + struct hinic_dev *dev; + void *object; + enum hinic_dbg_type type; + struct dentry *root; + int field_id[64]; +}; + struct hinic_dev { struct net_device *netdev; struct hinic_hwdev *hwdev; @@ -97,6 +109,9 @@ struct hinic_dev { int lb_test_rx_idx; int lb_pkt_len; u8 *lb_test_rx_buf; + + struct dentry *dbgfs_root; + struct dentry *sq_dbgfs; struct devlink *devlink; bool cable_unplugged; bool module_unrecognized; |