net/mlx4: fix Rx after mbuf alloc failure
[dpdk.git] / drivers / net / mlx4 / mlx4.c
index a1363c8..07f8fcd 100644 (file)
@@ -3170,6 +3170,8 @@ mlx4_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n)
                        /* Increase out of memory counters. */
                        ++rxq->stats.rx_nombuf;
                        ++rxq->priv->dev->data->rx_mbuf_alloc_failed;
+                       /* Add SGE to array for repost. */
+                       sges[i] = elt->sge;
                        goto repost;
                }