From: Ajit Khaparde Date: Thu, 28 Sep 2017 21:43:24 +0000 (-0500) Subject: net/bnxt: fix an issue with group id calculation X-Git-Tag: spdx-start~1872 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=39464bd308c16cc6ffd4cb6b4d900fddcc222d01;p=dpdk.git net/bnxt: fix an issue with group id calculation start_grp_id is incremented wrongly. Fixing it. Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Cc: stable@dpdk.org Signed-off-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_rxq.c b/drivers/net/bnxt/bnxt_rxq.c index 0793820b14..ef5e47d4ff 100644 --- a/drivers/net/bnxt/bnxt_rxq.c +++ b/drivers/net/bnxt/bnxt_rxq.c @@ -168,7 +168,7 @@ int bnxt_mq_rx_configure(struct bnxt *bp) */ STAILQ_INSERT_TAIL(&vnic->filter, filter, next); - start_grp_id = end_grp_id + 1; + start_grp_id = end_grp_id; end_grp_id += nb_q_per_grp; } goto out;