doc/proc_info: update support for vdev stats

Message ID 20181012113503.43597-1-vipin.varghese@intel.com (mailing list archive)
State Changes Requested, archived
Delegated to: Ferruh Yigit
Headers
Series doc/proc_info: update support for vdev stats |

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Varghese, Vipin Oct. 12, 2018, 11:35 a.m. UTC
  With the latest release, support for vdev ethernet devices like pcap,
tun and tap are been added. Hence collecting statistics using proc-info
is possible now.

Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
---
 doc/guides/tools/proc_info.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Ferruh Yigit Oct. 12, 2018, 2:25 p.m. UTC | #1
On 10/12/2018 12:35 PM, Vipin Varghese wrote:
> With the latest release, support for vdev ethernet devices like pcap,
> tun and tap are been added. Hence collecting statistics using proc-info
> is possible now.

This support is enabled when device shared between primary & secondary. The
capability to share virtual devices added that is correct, but still user may
prefer to use virtual device as process only.
Not sure if it worth mentioning stats retrieving supported when virtual device
is shared between processes, what do you think?

> 
> Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
> ---
>  doc/guides/tools/proc_info.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/doc/guides/tools/proc_info.rst b/doc/guides/tools/proc_info.rst
> index d5b5ed6a6..f62177dba 100644
> --- a/doc/guides/tools/proc_info.rst
> +++ b/doc/guides/tools/proc_info.rst
> @@ -51,7 +51,7 @@ Limitations
>    mismatch in PMD library arguments can lead to undefined behaviour and results
>    affecting primary application too.
>  
> -* Stats retrieval using ``dpdk-procinfo`` is not supported for virtual devices like PCAP and TAP.
> +* Stats retrieval using ``dpdk-procinfo`` is supported for virtual devices like PCAP, TUN and TAP.
>  
>  * Since default DPDK EAL arguments for ``dpdk-procinfo`` are ``-c1, -n4 & --proc-type=secondary``,
>    It is not expected that the user passes any EAL arguments.
>
  
Varghese, Vipin Oct. 15, 2018, 3:36 a.m. UTC | #2
Hi Ferruh,

Please find the answers embedded to the email. 
 
<snipped>

> 
> On 10/12/2018 12:35 PM, Vipin Varghese wrote:
> > With the latest release, support for vdev ethernet devices like pcap,
> > tun and tap are been added. Hence collecting statistics using
> > proc-info is possible now.
> 
> This support is enabled when device shared between primary & secondary. The
> capability to share virtual devices added that is correct, 

The document update is for procinfo tool, which is secondary process to collect stats for NIC interfaces under primary process.
Earlier documentation states since DPDK multi process has limitation in sharing virtual interface stats. The correction updates the same.

but still user may prefer
> to use virtual device as process only.

Proc info info tool purpose is collect stats from primary. Hence whether the primary process uses physical or virtual it is user discretion. But collecting stats is possible for any NIC device via proc info tool.

> Not sure if it worth mentioning stats retrieving supported when virtual device is
> shared between processes, what do you think?
> 

With the above reasoning, I believe proc info tool is state it can collect stats from both virtual and physical NIC is correct.

<snipped>
  
Ferruh Yigit Nov. 9, 2018, 10:03 p.m. UTC | #3
On 10/12/2018 12:35 PM, Vipin Varghese wrote:
> With the latest release, support for vdev ethernet devices like pcap,
> tun and tap are been added. Hence collecting statistics using proc-info
> is possible now.
> 
> Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>

Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

Applied to dpdk-next-net/master, thanks.
  
Thomas Monjalon Nov. 14, 2018, 1:52 a.m. UTC | #4
09/11/2018 23:03, Ferruh Yigit:
> On 10/12/2018 12:35 PM, Vipin Varghese wrote:
> > With the latest release, support for vdev ethernet devices like pcap,
> > tun and tap are been added. Hence collecting statistics using proc-info
> > is possible now.
> > 
> > Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
> 
> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
> 
> Applied to dpdk-next-net/master, thanks.

Sorry, I removed it from the pull to mainline.
I think it is wrong listing vdevs as supported in "Limitations".
Please send a patch for simply removing the line.
  
Thomas Monjalon Nov. 22, 2018, 10:55 p.m. UTC | #5
14/11/2018 02:52, Thomas Monjalon:
> 09/11/2018 23:03, Ferruh Yigit:
> > On 10/12/2018 12:35 PM, Vipin Varghese wrote:
> > > With the latest release, support for vdev ethernet devices like pcap,
> > > tun and tap are been added. Hence collecting statistics using proc-info
> > > is possible now.
> > > 
> > > Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
> > 
> > Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
> > 
> > Applied to dpdk-next-net/master, thanks.
> 
> Sorry, I removed it from the pull to mainline.
> I think it is wrong listing vdevs as supported in "Limitations".
> Please send a patch for simply removing the line.

No update?
  
Varghese, Vipin Nov. 23, 2018, 4:58 a.m. UTC | #6
Hi Thomas,

With DPDK 18.11-rc4 I still see issues at times, Hence more test is required before I can send the change in request.

Thanks
Vipin Varghese

> -----Original Message-----
> From: Thomas Monjalon <thomas@monjalon.net>
> Sent: Friday, November 23, 2018 4:25 AM
> To: Varghese, Vipin <vipin.varghese@intel.com>
> Cc: dev@dpdk.org; Yigit, Ferruh <ferruh.yigit@intel.com>; Kovacevic, Marko
> <marko.kovacevic@intel.com>; Byrne, Stephen1 <stephen1.byrne@intel.com>
> Subject: Re: [dpdk-dev] [PATCH] doc/proc_info: update support for vdev stats
> 
> 14/11/2018 02:52, Thomas Monjalon:
> > 09/11/2018 23:03, Ferruh Yigit:
> > > On 10/12/2018 12:35 PM, Vipin Varghese wrote:
> > > > With the latest release, support for vdev ethernet devices like
> > > > pcap, tun and tap are been added. Hence collecting statistics
> > > > using proc-info is possible now.
> > > >
> > > > Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
> > >
> > > Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
> > >
> > > Applied to dpdk-next-net/master, thanks.
> >
> > Sorry, I removed it from the pull to mainline.
> > I think it is wrong listing vdevs as supported in "Limitations".
> > Please send a patch for simply removing the line.
> 
> No update?
> 
>
  

Patch

diff --git a/doc/guides/tools/proc_info.rst b/doc/guides/tools/proc_info.rst
index d5b5ed6a6..f62177dba 100644
--- a/doc/guides/tools/proc_info.rst
+++ b/doc/guides/tools/proc_info.rst
@@ -51,7 +51,7 @@  Limitations
   mismatch in PMD library arguments can lead to undefined behaviour and results
   affecting primary application too.
 
-* Stats retrieval using ``dpdk-procinfo`` is not supported for virtual devices like PCAP and TAP.
+* Stats retrieval using ``dpdk-procinfo`` is supported for virtual devices like PCAP, TUN and TAP.
 
 * Since default DPDK EAL arguments for ``dpdk-procinfo`` are ``-c1, -n4 & --proc-type=secondary``,
   It is not expected that the user passes any EAL arguments.