From: Shreyansh Jain Date: Wed, 9 May 2018 09:49:43 +0000 (+0530) Subject: net/dpaa: fix max push mode queue X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0b5deefbe61cc91e2bdddb26b1797000e4ee1f6a;p=dpdk.git net/dpaa: fix max push mode queue Split default and max push mode queues to 4 and 8, respectively. Fixes: 0c504f6950b6 ("net/dpaa: support push mode") Cc: stable@dpdk.org Signed-off-by: Shreyansh Jain --- diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index f7e234d583..636ed55465 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -74,12 +74,13 @@ static uint64_t dev_tx_offloads_nodis = /* Keep track of whether QMAN and BMAN have been globally initialized */ static int is_global_init; -/* At present we only allow up to 4 push mode queues - as each of this queue - * need dedicated portal and we are short of portals. +/* At present we only allow up to 4 push mode queues as default - as each of + * this queue need dedicated portal and we are short of portals. */ -#define DPAA_MAX_PUSH_MODE_QUEUE 4 +#define DPAA_MAX_PUSH_MODE_QUEUE 8 +#define DPAA_DEFAULT_PUSH_MODE_QUEUE 4 -static int dpaa_push_mode_max_queue = DPAA_MAX_PUSH_MODE_QUEUE; +static int dpaa_push_mode_max_queue = DPAA_DEFAULT_PUSH_MODE_QUEUE; static int dpaa_push_queue_idx; /* Queue index which are in push mode*/