bnxt_en: Add macros related to TC and TX rings
authorMichael Chan <michael.chan@broadcom.com>
Tue, 14 Nov 2023 00:16:19 +0000 (16:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Nov 2023 10:07:40 +0000 (10:07 +0000)
commitf07b58801befb2a9449f9cdc6a379c707ba7a35c
tree6048c9e2e5f41f41d8796a1ad0ad2f3b3a61debb
parentf5b29c6afe369f5f2ee3966a332b9e8f70609933
bnxt_en: Add macros related to TC and TX rings

Add 3 macros that handle to conversions between TC numbers and TX
ring numbers.  These will help to clarify the existing logic and the
new logic in the next patch.

Reviewed-by: Andy Gospodarek <andrew.gospodarek@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