DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] dropped packet count
@ 2013-10-08 20:38 John Lange
  2013-10-09  7:35 ` Dmitry Vyal
  0 siblings, 1 reply; 4+ messages in thread
From: John Lange @ 2013-10-08 20:38 UTC (permalink / raw)
  To: dev

Greetings,

Is there a standard way of retrieving the dropped packet count for a particular port/queue in the DPDK?   If no way is currently defined, could this please be added in a future version?

Thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] dropped packet count
  2013-10-08 20:38 [dpdk-dev] dropped packet count John Lange
@ 2013-10-09  7:35 ` Dmitry Vyal
  2013-10-09 16:01   ` John Lange
  2013-10-09 16:02   ` John Lange
  0 siblings, 2 replies; 4+ messages in thread
From: Dmitry Vyal @ 2013-10-09  7:35 UTC (permalink / raw)
  To: John Lange, dev

Hi John,

take a look at  void rte_eth_stats_get(uint8_t /port_id/, struct 
rte_eth_stats <http://dpdk.org/doc/api/structrte__eth__stats.html> 
*/stats);/
http://dpdk.org/doc/api/rte__ethdev_8h.html#aac7b274a66c959f827a0750eaf22a5cb

The structure it fills has a member q_errors which seems to be what 
you're looking for.

Regards,
Dmitry

On 10/09/2013 12:38 AM, John Lange wrote:
> Greetings,
>
> Is there a standard way of retrieving the dropped packet count for a particular port/queue in the DPDK?   If no way is currently defined, could this please be added in a future version?
>
> Thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] dropped packet count
  2013-10-09  7:35 ` Dmitry Vyal
@ 2013-10-09 16:01   ` John Lange
  2013-10-09 16:02   ` John Lange
  1 sibling, 0 replies; 4+ messages in thread
From: John Lange @ 2013-10-09 16:01 UTC (permalink / raw)
  To: Dmitry Vyal, dev

Thanks Dmitry, that's useful, but rte_eth_stats reports for a given port.  I would also like to have access to the per-queue statistics.

John
________________________________
From: Dmitry Vyal [dmitryvyal@gmail.com]
Sent: Wednesday, October 09, 2013 1:35 AM
To: John Lange; dev@dpdk.org
Subject: Re: [dpdk-dev] dropped packet count

Hi John,

take a look at  void rte_eth_stats_get(uint8_t port_id, struct rte_eth_stats<http://dpdk.org/doc/api/structrte__eth__stats.html> *stats);
http://dpdk.org/doc/api/rte__ethdev_8h.html#aac7b274a66c959f827a0750eaf22a5cb

The structure it fills has a member q_errors which seems to be what you're looking for.

Regards,
Dmitry

On 10/09/2013 12:38 AM, John Lange wrote:

Greetings,

Is there a standard way of retrieving the dropped packet count for a particular port/queue in the DPDK?   If no way is currently defined, could this please be added in a future version?

Thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] dropped packet count
  2013-10-09  7:35 ` Dmitry Vyal
  2013-10-09 16:01   ` John Lange
@ 2013-10-09 16:02   ` John Lange
  1 sibling, 0 replies; 4+ messages in thread
From: John Lange @ 2013-10-09 16:02 UTC (permalink / raw)
  To: Dmitry Vyal, dev

Sorry, my mistake.  It looks like the per queue values are in the structure that you referenced.

Thanks!
John

________________________________
From: Dmitry Vyal [dmitryvyal@gmail.com]
Sent: Wednesday, October 09, 2013 1:35 AM
To: John Lange; dev@dpdk.org
Subject: Re: [dpdk-dev] dropped packet count

Hi John,

take a look at  void rte_eth_stats_get(uint8_t port_id, struct rte_eth_stats<http://dpdk.org/doc/api/structrte__eth__stats.html> *stats);
http://dpdk.org/doc/api/rte__ethdev_8h.html#aac7b274a66c959f827a0750eaf22a5cb

The structure it fills has a member q_errors which seems to be what you're looking for.

Regards,
Dmitry

On 10/09/2013 12:38 AM, John Lange wrote:

Greetings,

Is there a standard way of retrieving the dropped packet count for a particular port/queue in the DPDK?   If no way is currently defined, could this please be added in a future version?

Thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-09 16:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-08 20:38 [dpdk-dev] dropped packet count John Lange
2013-10-09  7:35 ` Dmitry Vyal
2013-10-09 16:01   ` John Lange
2013-10-09 16:02   ` John Lange

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).