diff options
| author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2022-09-21 14:25:35 +0200 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2022-09-23 12:31:26 +0100 |
| commit | 644ffce5f1be181096098f0b8dbbf8f6a0d621c0 (patch) | |
| tree | d9d18dda23a371a774c0760c5e913e9994b00b93 /drivers/net/ethernet/microchip/lan966x/lan966x_main.c | |
| parent | xen-netback: use kstrdup instead of open-coding it (diff) | |
| download | linux-644ffce5f1be181096098f0b8dbbf8f6a0d621c0.tar.gz linux-644ffce5f1be181096098f0b8dbbf8f6a0d621c0.zip | |
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>
Diffstat (limited to 'drivers/net/ethernet/microchip/lan966x/lan966x_main.c')
| -rw-r--r-- | drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c index 371fa995e9e0..ee9b8ebba6d0 100644 --- a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c +++ b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c @@ -738,7 +738,8 @@ static int lan966x_probe_port(struct lan966x *lan966x, u32 p, 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; |
