commit | 177a6cde47fcf23e5826c6224fc53038480451c2 | [log] [tgz] |
---|---|---|
author | Michael Chan <michael.chan@broadcom.com> | Mon Jul 27 05:40:39 2020 -0400 |
committer | David S. Miller <davem@davemloft.net> | Mon Jul 27 11:47:33 2020 -0700 |
tree | 61f0ccd8890e2826fa8a871d8d8f34d7d1c68328 | |
parent | 24c93443fe21ca3ec87b7b121548daa3b57a34af [diff] |
bnxt_en: Refactor statistics code and structures. The driver manages multiple statistics structures of different sizes. They are all allocated, freed, and handled practically the same. Define a new bnxt_stats_mem structure and common allocation and free functions for all staistics memory blocks. Reviewed-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>