Skip to contentSkip to conversation

dropped packet count

DISCUSSION John Lange 2 participants 4 messages Oct 8, 2013 – Oct 9, 2013 2 messages not in the archive

lore
Share & tools
lore

John Lange

author
#0 lore raw

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!

#2 lore raw
In reply to a message not in the archive

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

Quoted 5 lines · John Lange

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!

author
#4 lore raw
In reply to a message not in the archive

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 [[email protected]]
Sent: Wednesday, October 09, 2013 1:35 AM
To: John Lange; [email protected]
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!

author
#5 lore raw
In reply to a message not in the archive

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

Thanks!
John

________________________________
From: Dmitry Vyal [[email protected]]
Sent: Wednesday, October 09, 2013 1:35 AM
To: John Lange; [email protected]
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!