net/bnxt: fix allocation of flow stat related structs
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 15 May 2020 08:31:59 +0000 (14:01 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:57 +0000 (20:35 +0200)
commit1e2f8aca2cc108559fb9d823fc88dc342048500d
treed00d8fe54b3104ed319df6daea3c33c217bae5bf
parent96477b5dd5df417dd0b2e720d4c344ea1dc9ee58
net/bnxt: fix allocation of flow stat related structs

Consolidate flow stat related structs for performance improvement.
The intention of this patch is to reduce the size struct bnxt which
had grown because of recent changes and was impacting performance.

Fixes: 02a95625fe9c ("net/bnxt: add flow stats in extended stats")

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_flow.c
drivers/net/bnxt/bnxt_hwrm.c
drivers/net/bnxt/bnxt_stats.c