bnxt_en: Use macros to define port statistics size and offset.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 27 Jul 2020 09:40:38 +0000 (05:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2020 18:47:33 +0000 (11:47 -0700)
commit24c93443fe21ca3ec87b7b121548daa3b57a34af
treee24d9a141fce480b73276ef13ce5131e1a2a5879
parentbfc6e5fbcbbf75967a7f673ad67fa227d77f2541
bnxt_en: Use macros to define port statistics size and offset.

The port statistics structures have hard coded padding and offset.
Define macros to make this look cleaner.

Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h