]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: get FD rules location before dump in debugfs
authorYufeng Mo <moyufeng@huawei.com>
Thu, 19 Dec 2019 06:57:43 +0000 (14:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Dec 2019 05:20:39 +0000 (21:20 -0800)
commit9f6b5400684d0521d62ead678a0a65a805e5b922
tree9a3b5921127788401e88b9f6e61fcbe001330ec5
parent579129fc4a5df919904467251f49b15ad374c48c
net: hns3: get FD rules location before dump in debugfs

Currently, the dump FD tcam mode in debugfs is to query all FD tcams,
including empty rules, which is unnecessary. This patch modify to
find the position of useful rules before dump FD tcam, so that it does
not need to query empty rules.

This patch also modifies some help information in debugfs.

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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c