On 2/21/2023 2:18 PM, Levend Sayar wrote:
> Google Virtual NIC rx/tx queue stats are added as extended stats.
> 
> Signed-off-by: Levend Sayar <levendsa...@gmail.com>

Reviewed-by: Ferruh Yigit <ferruh.yi...@amd.com>

<...>

> @@ -20,6 +20,7 @@ gve_rx_refill(struct gve_rx_queue *rxq)
>       if (nb_alloc <= rxq->nb_avail) {
>               diag = rte_pktmbuf_alloc_bulk(rxq->mpool, &rxq->sw_ring[idx], 
> nb_alloc);
>               if (diag < 0) {
> +                     rxq->stats.no_mbufs_bulk++;

It is not common to record bulk alloc failures, but as 'no_mbufs'
already recorded conventionally, I guess it is OK to keep this extra
stat if it is helpful.

Reply via email to