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>
                return -EINVAL;
 
        dev = devm_alloc_etherdev_mqs(lan966x->dev,
-                                     sizeof(struct lan966x_port), 8, 1);
+                                     sizeof(struct lan966x_port),
+                                     NUM_PRIO_QUEUES, 1);
        if (!dev)
                return -ENOMEM;
 
 
 
 #define NUM_PHYS_PORTS                 8
 #define CPU_PORT                       8
+#define NUM_PRIO_QUEUES                        8
 
 /* Reserved PGIDs */
 #define PGID_CPU                       (PGID_AGGR - 6)