Home
last modified time | relevance | path

Searched hist:"55649 d56541bebecfd45ecd14f02944190538a66" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_debugfs.hdiff 55649d56541bebecfd45ecd14f02944190538a66 Thu Aug 26 06:21:59 CDT 2021 Yufeng Mo <moyufeng@huawei.com> net: hns3: change the method of getting cmd index in debugfs

Currently, the cmd index is obtained in debugfs by comparing file names.
However, this method may cause errors when processing more complex file
names. So, change this method by saving cmd in private data and comparing
it when getting cmd index in debugfs for optimization.

Fixes: 5e69ea7ee2a6 ("net: hns3: refactor the debugfs process")
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
H A Dhns3_debugfs.cdiff 55649d56541bebecfd45ecd14f02944190538a66 Thu Aug 26 06:21:59 CDT 2021 Yufeng Mo <moyufeng@huawei.com> net: hns3: change the method of getting cmd index in debugfs

Currently, the cmd index is obtained in debugfs by comparing file names.
However, this method may cause errors when processing more complex file
names. So, change this method by saving cmd in private data and comparing
it when getting cmd index in debugfs for optimization.

Fixes: 5e69ea7ee2a6 ("net: hns3: refactor the debugfs process")
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>