net: lan966x: Add define for number of priority queues NUM_PRIO_QUEUES
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Wed, 21 Sep 2022 12:25:35 +0000 (14:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Sep 2022 11:31:26 +0000 (12:31 +0100)
commit644ffce5f1be181096098f0b8dbbf8f6a0d621c0
treed9d18dda23a371a774c0760c5e913e9994b00b93
parentf948ac2313336d059b13ee0dee4840a1fb317fe9
net: lan966x: Add define for number of priority queues NUM_PRIO_QUEUES

Add a define for the number of priority queues on lan966x. Because there
will be more checks for this, so instead of using hardcoded value all
over the place add a define for this.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/lan966x_main.c
drivers/net/ethernet/microchip/lan966x/lan966x_main.h