DPDK usage discussions
 help / color / mirror / Atom feed
* Re: [dpdk-users] e1000 port stats
@ 2015-11-30 12:18 Van Haaren, Harry
  2015-11-30 21:06 ` Sridhar.V.Iyer
  0 siblings, 1 reply; 6+ messages in thread
From: Van Haaren, Harry @ 2015-11-30 12:18 UTC (permalink / raw)
  To: users, sridhariyer

> Hi,

Hi Sridhar,

> In DPDK/lib/librte_pmd_e1000/em_ethdev.c:889 (eth_em_stats_get), for some reason, ibytes and obytes are not getting update, ipackets/opackets seem to be fine (kvm using e1000)

I've recently sent some patches regarding stats for the e1000 PMD.

> (gdb) p *rte_stats
> $3 = {ipackets = 228635, opackets = 350, ibytes = 0, obytes = 0, imissed = 0, ibadcrc = 0, ibadlen = 0, ierrors =

The following commit in git fixed the issue you are experiencing:
67b38d9 e1000: fix total byte statistics

> This works fine on esxi guests using e1000.
I presume you are passing a VF to esxi? The igbvf PMD has a different stats_get() function to the igb PF PMD, so the bug would not be visible there.

> I'm using dpdk 1.7. Any pointers would be great.
As stated, Git includes the fix, along with some more updates like providing extended statistics via the xstats_get() API.

The commit mentioned above is a small code-change and fixes your immediate bug - it will probably apply cleanly to 1.7, otherwise it's an easy backport.

-Harry

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [dpdk-users] e1000 port stats
@ 2015-11-19  2:11 Sridhar.V.Iyer
  0 siblings, 0 replies; 6+ messages in thread
From: Sridhar.V.Iyer @ 2015-11-19  2:11 UTC (permalink / raw)
  To: users

Hi,

In DPDK/lib/librte_pmd_e1000/em_ethdev.c:889 (eth_em_stats_get), for some reason, ibytes and obytes are not getting update, ipackets/opackets seem to be fine (kvm using e1000)

(gdb) p *rte_stats
$3 = {ipackets = 228635, opackets = 350, ibytes = 0, obytes = 0, imissed = 0, ibadcrc = 0, ibadlen = 0, ierrors = 0, oerrors = 0, imcasts = 0, rx_nombuf = 0, igoodpkts = 0,
  fdirmatch = 0, fdirmiss = 0, tx_pause_xon = 0, rx_pause_xon = 0, tx_pause_xoff = 0, rx_pause_xoff = 0, q_ipackets = {0 <repeats 16 times>}, q_opackets = {0 <repeats 16 times>},
  q_ibytes = {0 <repeats 16 times>}, q_obytes = {0 <repeats 16 times>}, q_errors = {0 <repeats 16 times>}, ilbpackets = 0, olbpackets = 0, ilbbytes = 0, olbbytes = 0, hw_stats = {
    crcerrs = 0, illerrc = 0, errbc = 0, mpc = {0, 0, 0, 0, 0, 0, 0, 0}, mlfc = 0, mrfc = 0, rlec = 0, lxontxc = 0, lxonrxc = 0, lxofftxc = 0, lxoffrxc = 0, pxontxc = {0, 0, 0, 0,
      0, 0, 0, 0}, pxonrxc = {0, 0, 0, 0, 0, 0, 0, 0}, pxofftxc = {0, 0, 0, 0, 0, 0, 0, 0}, pxoffrxc = {0, 0, 0, 0, 0, 0, 0, 0}, pxon2offc = {0, 0, 0, 0, 0, 0, 0, 0}, prc64 = 0,
    prc127 = 0, prc255 = 0, prc511 = 0, prc1023 = 0, prc1522 = 0, bprc = 0, mprc = 0, gprc = 0, gorc = 0, gptc = 0, gotc = 0, ruc = 0, rfc = 0, roc = 0, rjc = 0, mngprc = 0,
    mngptc = 0, tor = 0, tpr = 0, tpt = 0, ptc64 = 0, ptc127 = 0, ptc255 = 0, ptc511 = 0, ptc1023 = 0, ptc1522 = 0, mptc = 0, bptc = 0, mspdc = 0, xec = 0, otxdropcnt = 0,
    orxdropcnt = 0}}

This works fine on esxi guests using e1000.

I'm using dpdk 1.7. Any pointers would be great.

Regards,
Sridhar.V.Iyer








 <http://www.versa-networks.com/> <http://www.versa-networks.com/>

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

end of thread, other threads:[~2015-12-10  0:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-30 12:18 [dpdk-users] e1000 port stats Van Haaren, Harry
2015-11-30 21:06 ` Sridhar.V.Iyer
2015-12-08 10:54   ` Van Haaren, Harry
2015-12-08 18:52     ` Sridhar.V.Iyer
2015-12-10  0:12       ` Sridhar.V.Iyer
  -- strict thread matches above, loose matches on Subject: below --
2015-11-19  2:11 Sridhar.V.Iyer

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