diff options
author | Guangbin Huang <huangguangbin2@huawei.com> | 2021-10-24 17:41:10 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-25 14:00:59 +0100 |
commit | 4e4c03f6ab636e9c39558845da5bfbcd60baf33d (patch) | |
tree | f8853638d3520234ea57fc9560b59a5cc2ef4c50 /drivers/net/ethernet/hisilicon/hns3/hnae3.h | |
parent | net: hns3: modify mac statistics update process for compatibility (diff) | |
download | linux-dev-4e4c03f6ab636e9c39558845da5bfbcd60baf33d.tar.xz linux-dev-4e4c03f6ab636e9c39558845da5bfbcd60baf33d.zip |
net: hns3: device specifications add number of mac statistics
Currently, driver queries number of mac statistics before querying mac
statistics. As the number of mac statistics is a fixed value in firmware,
it is redundant to query this number everytime before querying mac
statistics, it can just be queried once in initialization process and
saved in device specifications.
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h index 07c83af36831..3f7a9a4c59d5 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h +++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h @@ -349,6 +349,7 @@ struct hnae3_dev_specs { u16 max_qset_num; u16 umv_size; u16 mc_mac_size; + u32 mac_stats_num; }; struct hnae3_client_ops { |