* [PATCH] ixgbe: Add missing rx_mbuf_alloc_failed statistics for vector PMD @ 2014-11-28 9:21 Balazs Nemeth [not found] ` <1417166505-486-1-git-send-email-balazs.nemeth-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Balazs Nemeth @ 2014-11-28 9:21 UTC (permalink / raw) To: dev-VfR2kkLFssw; +Cc: Balazs Nemeth The statistics that is reported through the rx_nombuf fields in struct rte_eth_stats was not set when the vector PMD was used. The statistics should report the number of mbufs that could _not_ be allocated during rearm of the RX queue. The non-vector PMD reports it correctly. The use of either vector PMD or non-vector PMD depends on runtime configuration. Hence it is possible that a change in configuration would disable this statistics. To prevent this from happening, the statistics should be reported by both implementations. Signed-off-by: Balazs Nemeth <balazs.nemeth-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> --- lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c index 42c0f60..579bc46 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c @@ -71,6 +71,8 @@ ixgbe_rxq_rearm(struct igb_rx_queue *rxq) dma_addr0); } } + rte_eth_devices[rxq->port_id].data->rx_mbuf_alloc_failed += + RTE_IXGBE_RXQ_REARM_THRESH; return; } -- 2.1.2 ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <1417166505-486-1-git-send-email-balazs.nemeth-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] ixgbe: Add missing rx_mbuf_alloc_failed statistics for vector PMD [not found] ` <1417166505-486-1-git-send-email-balazs.nemeth-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> @ 2014-11-28 13:18 ` Bruce Richardson 2014-11-28 15:24 ` Thomas Monjalon 0 siblings, 1 reply; 3+ messages in thread From: Bruce Richardson @ 2014-11-28 13:18 UTC (permalink / raw) To: Balazs Nemeth; +Cc: dev-VfR2kkLFssw On Fri, Nov 28, 2014 at 09:21:45AM +0000, Balazs Nemeth wrote: > The statistics that is reported through the rx_nombuf fields in struct > rte_eth_stats was not set when the vector PMD was used. The statistics > should report the number of mbufs that could _not_ be allocated during > rearm of the RX queue. The non-vector PMD reports it correctly. The > use of either vector PMD or non-vector PMD depends on runtime > configuration. Hence it is possible that a change in configuration > would disable this statistics. To prevent this from happening, the > statistics should be reported by both implementations. > > Signed-off-by: Balazs Nemeth <balazs.nemeth-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Acked-by: Bruce Richardson <bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > --- > lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c > index 42c0f60..579bc46 100644 > --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c > +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c > @@ -71,6 +71,8 @@ ixgbe_rxq_rearm(struct igb_rx_queue *rxq) > dma_addr0); > } > } > + rte_eth_devices[rxq->port_id].data->rx_mbuf_alloc_failed += > + RTE_IXGBE_RXQ_REARM_THRESH; > return; > } > > -- > 2.1.2 > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ixgbe: Add missing rx_mbuf_alloc_failed statistics for vector PMD 2014-11-28 13:18 ` Bruce Richardson @ 2014-11-28 15:24 ` Thomas Monjalon 0 siblings, 0 replies; 3+ messages in thread From: Thomas Monjalon @ 2014-11-28 15:24 UTC (permalink / raw) To: Balazs Nemeth; +Cc: dev-VfR2kkLFssw > > The statistics that is reported through the rx_nombuf fields in struct > > rte_eth_stats was not set when the vector PMD was used. The statistics > > should report the number of mbufs that could _not_ be allocated during > > rearm of the RX queue. The non-vector PMD reports it correctly. The > > use of either vector PMD or non-vector PMD depends on runtime > > configuration. Hence it is possible that a change in configuration > > would disable this statistics. To prevent this from happening, the > > statistics should be reported by both implementations. > > > > Signed-off-by: Balazs Nemeth <balazs.nemeth-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > Acked-by: Bruce Richardson <bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Applied Thanks -- Thomas ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-28 15:24 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-11-28 9:21 [PATCH] ixgbe: Add missing rx_mbuf_alloc_failed statistics for vector PMD Balazs Nemeth [not found] ` <1417166505-486-1-git-send-email-balazs.nemeth-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2014-11-28 13:18 ` Bruce Richardson 2014-11-28 15:24 ` Thomas Monjalon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).