Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display packet drop stats #311

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

strongcourage
Copy link

Hi there,
This is a code I've used so far to display packet drop stats at the NIC.
Best.

@strongcourage strongcourage changed the base branch from develop to master September 10, 2021 16:23
struct rte_eth_stats stat;
if (rte_eth_stats_get(ports->id[i], &stat))
RTE_LOG(ERR, APP, "Cannot get stats of port %d\n", ports->id[i]);
ports->nic_drop[ports->id[i]] = stat.imissed + stat.ierrors;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding on to this, I think it'd be helpful to include the received and transmitted bytes (ibytes and obytes)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dennisafa I think it is easy to add more stats, as you suggested, but I don't know where those stats could be displayed :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They can be displayed with the other NIC stats.

@twood02 twood02 linked an issue Nov 19, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display packet drop stats
2 participants