OSDN Git Service

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)
commit44b6b88336a08be87a02d69f6a4754c86cda97f1
tree9a3b5921127788401e88b9f6e61fcbe001330ec5
parenta3374d7d335c24225f7d65bc0abb632d81dacdf6
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