]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/bnxt/bnxt_ring.c
net/ipn3ke: fix line side statistics register read
[dpdk.git] / drivers / net / bnxt / bnxt_ring.c
index 0a182d3a8411547357cdf1e52b3c987ad28fb78a..ea46fa9bc0667832278e126a1f57a2ed9ee8ef60 100644 (file)
@@ -38,15 +38,13 @@ void bnxt_free_ring(struct bnxt_ring *ring)
  * Ring groups
  */
 
-int bnxt_init_ring_grps(struct bnxt *bp)
+static void bnxt_init_ring_grps(struct bnxt *bp)
 {
        unsigned int i;
 
        for (i = 0; i < bp->max_ring_grps; i++)
                memset(&bp->grp_info[i], (uint8_t)HWRM_NA_SIGNATURE,
                       sizeof(struct bnxt_ring_grp_info));
-
-       return 0;
 }
 
 int bnxt_alloc_ring_grps(struct bnxt *bp)
@@ -76,6 +74,7 @@ int bnxt_alloc_ring_grps(struct bnxt *bp)
                                    "Failed to alloc grp info tbl.\n");
                        return -ENOMEM;
                }
+               bnxt_init_ring_grps(bp);
        }
 
        return 0;