net/hns3: encapsulate DFX stats in datapath
authorHuisong Li <lihuisong@huawei.com>
Fri, 22 Jan 2021 10:18:39 +0000 (18:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:11 +0000 (18:16 +0100)
commit9b77f1fe303f1f9b6e5af0428d03fe07f17687a9
treed8a96bb1259730cfe2f195b495c1a843b875a8af
parentb665487e0b3e0640b8c075a339c745acdf8ef2af
net/hns3: encapsulate DFX stats in datapath

pkt_len_errors and l2_errors in Rx datapath indicate that driver
needs to discard received packets. And driver does not discard
packets for l3/l4/ol3/ol4_csum_errors in Rx datapath and others
stats in Tx datapath. Therefore, it is necessary for improving
code readability and maintainability to encapsulate error stats
and dfx stats.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_rxtx.c
drivers/net/hns3/hns3_rxtx.h
drivers/net/hns3/hns3_rxtx_vec_neon.h
drivers/net/hns3/hns3_stats.c
drivers/net/hns3/hns3_stats.h