Re: [dpdk-dev] [PATCH v3 1/1] net/pcap: imissed stats support

2021-02-04 Thread Ferruh Yigit
On 2/4/2021 10:02 AM, Ido Goshen wrote: -Original Message- From: Ferruh Yigit Sent: Thursday, 4 February 2021 11:26 To: Ido Goshen Cc: dev@dpdk.org Subject: Re: [PATCH v3 1/1] net/pcap: imissed stats support On 2/4/2021 7:56 AM, Ido Goshen wrote: -Original Message- From:

Re: [dpdk-dev] [PATCH v3 1/1] net/pcap: imissed stats support

2021-02-04 Thread Ido Goshen
> -Original Message- > From: Ferruh Yigit > Sent: Thursday, 4 February 2021 11:26 > To: Ido Goshen > Cc: dev@dpdk.org > Subject: Re: [PATCH v3 1/1] net/pcap: imissed stats support > > On 2/4/2021 7:56 AM, Ido Goshen wrote: > > > > > >> -Original Message- > >> From: Ferruh Yigit

Re: [dpdk-dev] [PATCH v3 1/1] net/pcap: imissed stats support

2021-02-04 Thread Ferruh Yigit
On 2/4/2021 7:56 AM, Ido Goshen wrote: -Original Message- From: Ferruh Yigit Sent: Thursday, 4 February 2021 2:13 To: Ido Goshen Cc: dev@dpdk.org Subject: Re: [PATCH v3 1/1] net/pcap: imissed stats support On 2/3/2021 11:07 PM, Ido Goshen wrote: get value from pcap_stats.ps_drop (s

Re: [dpdk-dev] [PATCH v3 1/1] net/pcap: imissed stats support

2021-02-03 Thread Ido Goshen
> -Original Message- > From: Ferruh Yigit > Sent: Thursday, 4 February 2021 2:13 > To: Ido Goshen > Cc: dev@dpdk.org > Subject: Re: [PATCH v3 1/1] net/pcap: imissed stats support > > On 2/3/2021 11:07 PM, Ido Goshen wrote: > > get value from pcap_stats.ps_drop (see man pcap_stats) the

Re: [dpdk-dev] [PATCH v3 1/1] net/pcap: imissed stats support

2021-02-03 Thread Ferruh Yigit
On 2/3/2021 11:07 PM, Ido Goshen wrote: get value from pcap_stats.ps_drop (see man pcap_stats) the value is adjusted in this cases: - port stop - pcap is closed and will lose count - stats reset - pcap doesn't provide reset api - rollover - pcap counter size is u_32 only Signed-off-by: Ido

[dpdk-dev] [PATCH v3 1/1] net/pcap: imissed stats support

2021-02-03 Thread Ido Goshen
get value from pcap_stats.ps_drop (see man pcap_stats) the value is adjusted in this cases: - port stop - pcap is closed and will lose count - stats reset - pcap doesn't provide reset api - rollover - pcap counter size is u_32 only Signed-off-by: Ido Goshen --- v3: * code cleanup by dedicated