DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] dpdk vmxnet3 clear stats missing (?) implementation
@ 2018-07-30 11:01 yogev ch
  2018-08-01  9:43 ` Ke Xu
  0 siblings, 1 reply; 2+ messages in thread
From: yogev ch @ 2018-07-30 11:01 UTC (permalink / raw)
  To: users

dpdk PMDs implement stats_reset of rte_ethdev.h:struct eth_dev_ops in order
to reset port statistics.
PMD vmxnet3 doesn't register it under

static const struct eth_dev_ops vmxnet3_eth_dev_ops = {

    ...

    .stats_get            = vmxnet3_dev_stats_get,

    .xstats_get_names     = vmxnet3_dev_xstats_get_names,

    .xstats_get           = vmxnet3_dev_xstats_get,

    ...

There are only get functions, but no reset.

·         Does it mean vmxnet3 cannot clear port statistics?

·         Is there a way to implement it?



I saw it over dpdk versions 17.11.1, dpdk-stable-18.02.2.



Thanks,

Yogev.

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

* Re: [dpdk-users] dpdk vmxnet3 clear stats missing (?) implementation
  2018-07-30 11:01 [dpdk-users] dpdk vmxnet3 clear stats missing (?) implementation yogev ch
@ 2018-08-01  9:43 ` Ke Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Ke Xu @ 2018-08-01  9:43 UTC (permalink / raw)
  To: yogev ch, users

I think upt1 does not support reset port statistics.
VMXNET3 linux kernel driver does not support it neither.

BRs//kxu

-----Original Message-----
From: users <users-bounces@dpdk.org> On Behalf Of yogev ch
Sent: 2018年7月30日 19:01
To: users@dpdk.org
Subject: [dpdk-users] dpdk vmxnet3 clear stats missing (?) implementation

dpdk PMDs implement stats_reset of rte_ethdev.h:struct eth_dev_ops in order to reset port statistics.
PMD vmxnet3 doesn't register it under

static const struct eth_dev_ops vmxnet3_eth_dev_ops = {

    ...

    .stats_get            = vmxnet3_dev_stats_get,

    .xstats_get_names     = vmxnet3_dev_xstats_get_names,

    .xstats_get           = vmxnet3_dev_xstats_get,

    ...

There are only get functions, but no reset.

·         Does it mean vmxnet3 cannot clear port statistics?

·         Is there a way to implement it?



I saw it over dpdk versions 17.11.1, dpdk-stable-18.02.2.



Thanks,

Yogev.

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

end of thread, other threads:[~2018-08-01  9:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-30 11:01 [dpdk-users] dpdk vmxnet3 clear stats missing (?) implementation yogev ch
2018-08-01  9:43 ` Ke Xu

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