net/bnxt: fix an issue with group id calculation
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Thu, 28 Sep 2017 21:43:24 +0000 (16:43 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:49 +0000 (02:49 +0200)
start_grp_id is incremented wrongly. Fixing it.

Fixes: daef48efe5e5 ("net/bnxt: support set MTU")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_rxq.c

index 0793820..ef5e47d 100644 (file)
@@ -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;