Re: [dpdk-dev] Can xenvirt pmd work in xen guest (aka DomU) without xen-vhost in Dom0 ?

2017-10-09 Thread Bill Bonaparte
On Mon, Oct 9, 2017 at 12:13 AM, Tan, Jianfeng 
wrote:

> Hi,
>
> On 10/8/2017 12:54 PM, Bill Bonaparte wrote:
>
> Thanks Jianfeng for taking time to reply.
>
> please allow me to briefly explain why I want to run dpdk on xen.
> our system is based on dpdk, which means we use dpdk as packet
> receive/transmit engine,
> and with integrated dpdk virtio/vmxnet3 driver, our system can run on
> KVM/VMware platform .
> this year, we have plan to run our system on AWS cloud, but I found that
> AWS
> uses xen as its virtualization platform, and the bus-info of nic is vif-x
> (x could be 0,1,2...),
> the driver used in kernel is vif. this should be para-virtualized nic used
> on xen.
>
>
> My guess is exactly as you describe. In AWS, we lack of a PMD for xen
> netfront (vif) nic. And even we got such a PMD, we still need a PMD for xen
> netback. Both are missing.
>
>
> I don't know which dpdk drvier can manage this pv nic. then I see
> xenvirt, I think this driver can
> did this job, like virtio can manage virtio nic which is used on kvm.
> unfortunately, after some study work, I run testpmd successfully on xen,
> but no packets received.
>
> with the informain got from you, I know It's need to run vhost_xen at dom0
> so that xenvirt at domU can work.
> but for my case, I have no change to run vhost_xen at dom0, because I only
> can operate my own domU.
>
> for this case, If I want to run system which is based on dpdk at domU,
> what should I do?
> appreciate any idea or suggestion from you.
>
>
> What kind of performance are you seeking? Only accelerating the frontend
>> by a new PMD, i.e. netfront, we can bypass the VM kernel (). But without
>> accelerating the backend, it only brings limited improvement.
>
> for me, the most important thing at the moment, is to run our system on
xen guest (aka DomU), with the full functions. the performance could be a
secondary consideration.
most of time, for our guests,  full functions, with the acceptable
performance,
is  fine.
do we have plan to support xen netfront pmd in dpdk ?
in my humble opinion,  limited performance is better than "not work" .

>
> Not sure if anyone from Amazon or Oracle can comment?
>
> Thanks,
> Jianfeng
>


Re: [dpdk-dev] Can xenvirt pmd work in xen guest (aka DomU) without xen-vhost in Dom0 ?

2017-10-07 Thread Bill Bonaparte
Thanks Jianfeng for taking time to reply.

please allow me to briefly explain why I want to run dpdk on xen.
our system is based on dpdk, which means we use dpdk as packet
receive/transmit engine,
and with integrated dpdk virtio/vmxnet3 driver, our system can run on
KVM/VMware platform .
this year, we have plan to run our system on AWS cloud, but I found that AWS
uses xen as its virtualization platform, and the bus-info of nic is vif-x
(x could be 0,1,2...),
the driver used in kernel is vif. this should be para-virtualized nic used
on xen.

I don't know which dpdk drvier can manage this pv nic. then I see xenvirt,
I think this driver can
did this job, like virtio can manage virtio nic which is used on kvm.
unfortunately, after some study work, I run testpmd successfully on xen,
but no packets received.

with the informain got from you, I know It's need to run vhost_xen at dom0
so that xenvirt at domU can work.
but for my case, I have no change to run vhost_xen at dom0, because I only
can operate my own domU.

for this case, If I want to run system which is based on dpdk at domU, what
should I do?
appreciate any idea or suggestion from you.

On Mon, Oct 2, 2017 at 7:50 AM, Tan, Jianfeng 
wrote:

>
>
> On 9/30/2017 5:25 PM, Bill Bonaparte wrote:
>
>> Hi Jianfeng,
>>  Thank you for replying, I appreciate so much for this.
>>   we are trying to run our dpdk application on AWS cloud which use xen
>> platform.
>>   for this case, what should I do to support AWS cloud ?
>>   Is there any way to do this ?
>>
>
> Sorry, I don't have knowledge to answer this question as I don't know what
> kind of net devices in AWS cloud.
>
> Thanks,
> Jianfeng
>
>


Re: [dpdk-dev] Can xenvirt pmd work in xen guest (aka DomU) without xen-vhost in Dom0 ?

2017-10-07 Thread Bill Bonaparte
Thanks Jianfeng for taking time to reply.

please allow me to briefly explain why I want to run dpdk on xen.
our system is based on dpdk, which means we use dpdk as packet
receive/transmit engine,
and with integrated dpdk virtio/vmxnet3 driver, our system can run on
KVM/VMware platform .
this year, we have plan to run our system on AWS cloud, but I found that AWS
uses xen as its virtualization platform, and the bus-info of nic is vif-x
(x could be 0,1,2...),
the driver used in kernel is vif. this should be para-virtualized nic used
on xen.

I don't know which dpdk drvier can manage this pv nic. then I see xenvirt,
I think this driver can
did this job, like virtio can manage virtio nic which is used on kvm.
unfortunately, after some study work, I run testpmd successfully on xen,
but no packets received.

with the informain got from you, I know It's need to run vhost_xen at dom0
so that xenvirt at domU can work.
but for my case, I have no change to run vhost_xen at dom0, because I only
can operate my own domU.

for this case, If I want to run system which is based on dpdk at domU, what
should I do?
appreciate any idea or suggestion from you.

On Mon, Oct 2, 2017 at 7:50 AM, Tan, Jianfeng 
wrote:

>
>
> On 9/30/2017 5:25 PM, Bill Bonaparte wrote:
>
>> Hi Jianfeng,
>>  Thank you for replying, I appreciate so much for this.
>>   we are trying to run our dpdk application on AWS cloud which use xen
>> platform.
>>   for this case, what should I do to support AWS cloud ?
>>   Is there any way to do this ?
>>
>
> Sorry, I don't have knowledge to answer this question as I don't know what
> kind of net devices in AWS cloud.
>
> Thanks,
> Jianfeng
>
>


Re: [dpdk-dev] Can xenvirt pmd work in xen guest (aka DomU) without xen-vhost in Dom0 ?

2017-09-30 Thread Bill Bonaparte
Hi Jianfeng,
 Thank you for replying, I appreciate so much for this.
  we are trying to run our dpdk application on AWS cloud which use xen
platform.
  for this case, what should I do to support AWS cloud ?
  Is there any way to do this ?

On Sat, Sep 30, 2017 at 4:53 PM, Tan, Jianfeng 
wrote:

> Hi Bill
>
>
> On 9/30/2017 4:47 PM, Bill Bonaparte wrote:
>
>> Hi, everybody:
>>   I am trying to run dpdk in xen guest, after trying dpdk17.05 without
>> success, I tried dpdk16.04 again.  and it's sucessful to run testpmd this
>> time. but it can't receive any packets.
>>   the command I used is :
>> ./testpmd -l 1,2 -n 4 --vdev="eth_xenvirt0,mac=a6:38:57:e8:d5:be"
>> --vdev="eth_xenvirt1,mac=32:f1:42:55:94:74" -- --total-num-mbufs=2048
>>
>> I read the xen guide again, I found the guide says:
>> DPDK provides a para-virtualization packet switching solution, based on
>> the
>> Xen hypervisor’s Grant Table, Note 1, which provides simple and fast
>> packet
>> switching capability between guest domains and host domain based on MAC
>> address or VLAN tag. This solution is comprised of two components; a Poll
>> Mode Driver (PMD) as the front end in the guest domain and a switching
>> back
>> end in the host domain.
>>
>> does it mean that dpdk running in DomU must cooperate with xen-vhost in
>> Dom0 ?
>>
>
> Yes, we need to run vhost_xen at dom0 so that xenvirt at domU can work.
> But it has been long lack of test, not sure of it still works.
>
> And FYI, we are going to remove xen support (dom0, xenvirt, vhost_xen) in
> the coming release.
>
> Thanks,
> Jianfeng
>
>
> I really need your help.
>> I appreciate any reply from you .
>>
>
>


[dpdk-dev] Can xenvirt pmd work in xen guest (aka DomU) without xen-vhost in Dom0 ?

2017-09-30 Thread Bill Bonaparte
Hi, everybody:
 I am trying to run dpdk in xen guest, after trying dpdk17.05 without
success, I tried dpdk16.04 again.  and it's sucessful to run testpmd this
time. but it can't receive any packets.
 the command I used is :
./testpmd -l 1,2 -n 4 --vdev="eth_xenvirt0,mac=a6:38:57:e8:d5:be"
--vdev="eth_xenvirt1,mac=32:f1:42:55:94:74" -- --total-num-mbufs=2048

I read the xen guide again, I found the guide says:
DPDK provides a para-virtualization packet switching solution, based on the
Xen hypervisor’s Grant Table, Note 1, which provides simple and fast packet
switching capability between guest domains and host domain based on MAC
address or VLAN tag. This solution is comprised of two components; a Poll
Mode Driver (PMD) as the front end in the guest domain and a switching back
end in the host domain.

does it mean that dpdk running in DomU must cooperate with xen-vhost in
Dom0 ?
I really need your help.
I appreciate any reply from you .


[dpdk-dev] It's failed to run dpdk(17.05) on xen guest (aka DomU), e.g. ubuntu16.04

2017-09-30 Thread Bill Bonaparte
Hi, everybody:
  I can't wait to write this mail for help, I am trying to run dpdk on
xen guest (aka DomU), but whatevery I do, it's always failed.
   The followings is my environment:
   xen guest OS which dpdk is running on is ubuntu 16.04 sever.  dpdk
version is 17.05.
I enable the xen support in config/common_base.
   CONFIG_RTE_LIBRTE_PMD_XENVIRT=y
after compiling dpdk with the command " make install
T=x86_64-native-linuxapp-gcc",  I run testpmd with the following command:
 ./testpmd -l 1,2 -n 4 --vdev="eth_xenvirt0,mac=a6:38:57:e8:d5:be"
--vdev="eth_xenvirt1,mac=32:f1:42:55:94:74" -- --total-num-mbufs=2048

but I got the error "PMD: rte_pmd_xenvirt_probe: grant init failed".
then I realised that something is missed,  after I fixed this error with
the following command:
modprobe xen_gntalloc limit=6000, modprobe xen_evtchn, and modprobe
xen_gntdev.
I got another error:
   PMD: mempool with more than 1 chunk [num=287] is not supported
   EAL: memzone_reserve_aligned_thread_unsafe(): memzone
 already exists
   EAL: Error - exiting with code: 1
  Cause: Creation of mbuf pool for socket 0 failed: File exists

 Is there anybody has experience about how run dpdk on xen guest ?
or who can give me some clue to fix it ?

I really need your help!
I appreciate any reply from you.


[dpdk-dev] only two of the four queues work on the VF interface of Intel X553 nic.

2017-07-19 Thread Bill Bonaparte
Hi all,
I encounter a problem that there are two of the four queues working
for dpdk-apps when using the VF interface of intel x553 10G-ethernet NIC.
Straightly speaking, there are no packets coming into the last two queues,
no matter what packets I send to the dpdk-apps.
I checked the initialization of the queues,  it shows  that all
four queues are initialized successfully.
If I use the PF directly for dpdk-apps, there is no such problem.
If I missed some configuration when using the VF ?
if so, what should I do ?

I am appreciate to get some  discussion from you.


[dpdk-dev] [problem] a problem about rx-tx queues when using VF interface of x553 10G-ethernet NIC

2017-07-16 Thread Bill Bonaparte
Hi all,
I encounter a problem that there are two of the four queues working
for dpdk-apps when using the VF interface of intel x553 10G-ethernet NIC.
Straightly speaking, there are no packets coming into the last two queues,
no matter what packets I send to the dpdk-apps.
I checked the initialization of the queues,  it shows  that all
four queues are initialized successfully.
If I use the PF directly for dpdk-apps, there is no such problem.
If I missed some configuration when using the VF ?
if so, what should I do ?

Hope someone can help me.


Re: [dpdk-dev] No RX frames on Intel 82599 VF

2017-04-19 Thread Bill Bonaparte
I have the same problem on my 82599 nic, after I turnoff the jumbo_frame,
it works.
you can try rte_eth_dev_configure with the dev_conf.jumbo_frame = 0.

On Tue, Jul 12, 2016 at 2:43 PM, Lu, Wenzhuo  wrote:

> From: Garik E [mailto:kira...@gmail.com]
> Sent: Tuesday, July 12, 2016 12:48 PM
> To: Lu, Wenzhuo
> Cc: dev@dpdk.org
> Subject: Re: [dpdk-dev] No RX frames on Intel 82599 VF
>
> Hi,
>
> On the S2600WT2 server, when DPDK is bound to VF, there is no incoming
> traffic.
> But when the same VF is bound to ixgbevf driver and configured as Linux
> interface,
> it works normally. I was able to run ping and ssh through that VF.
> So my guess is that the RX issue is not due to malfunction hardware.
>
> The same binary works correctly on S2600WTTR server with 82599 VF
> I also tested the application with Mellanox ConnectX-4 on both servers
> There were no issues with CX-4 PF and VF
>
> For some reason DPDK VF RX functionality does not work on S2600WT2.
> [Wenzhuo] No clue now. But I think you can compare what’s the difference
> between S2600WT2 and S2600WTTR.
>
>
>
> On Tue, Jul 12, 2016 at 4:24 AM, Lu, Wenzhuo  wenzhuo...@intel.com>> wrote:
> Hi Garik,
>
> > -Original Message-
> > From: dev [mailto:dev-boun...@dpdk.org] On
> Behalf Of Garik E
> > Sent: Tuesday, July 12, 2016 2:22 AM
> > To: dev@dpdk.org
> > Subject: [dpdk-dev] No RX frames on Intel 82599 VF
> >
> > Hello,
> >
> >
> > I have two Intel servers S2600WTTR and S2600WT2 both with 82599 10G
> > Ethernet Controllers
> >
> > I run the same DPDK application on both servers.
> >
> > The application works with one interface bound to physical or virtual PCI
> > function depending on configuration
> >
> > The S2600WTTR server receives incoming traffic on physical and virtual
> > functions
> S2600WTTR is working right?
>
> >
> > The S2600WT2 server receives traffic only on physical function
> >
> > When I bind S2600WT2 VF to ixgbevf driver and configure it as Linux ETH
> > interface, it works normally.
> Don't understand what you're doing here. And you say *works*? Is S2600WT2
> the one not working?
>
> >
> >
> > Network sniffer shows that Ethernet frames arrive to S2600WT2 port and
> > frames are valid,
> >
> > however DPDK does not receive them.
> >
> >
> > Where can I start to debug this issue ?
> >
> >
> > OS: RHEL 6.6 x86-64
> >
> > DPDK: 16-07-rc1
>
>


[dpdk-dev] help: ixgbevf can receive but can't xmit packets on X550EM_x_vf

2017-04-19 Thread Bill Bonaparte
Hi:
I want to get help from you. I have tried my best, but I still have no
idea about this problem.
I need to use SR-IOV on my environment,  when using 82599_vf, it works
fine, but when I ran it on X550EM_x_vf, it can receive packets but cant
xmit packets which means it can't send out from pf and can't catpure the
packets by tcpdump on peer machine.
I have turnoff the spoof checking on the vf.  so, it should not be the
source mac mismatch problem.
by the way, to this problem, I found a weird symptom as following:
initially, the vf link is up. and everything seems ok. when I start to
send packets using the vf, the vf link becomes down. by the code debug, I
located the specific code which trigger the link down.
in the xmit function ixgbe_xmit_pkts_vec, it will issue the following
register written after put packets into the tx ring.
IXGBE_PCI_REG_WRITE(txq->tdt_reg_addr, txq->tx_tail);
once this register written, the link check function
ixgbe_check_mac_link_vf  will
check that NACK is set, and then set link down subsequently.
 the code segments from ixgbe_check_mac_link_vf list here:
 /* if the read failed it could just be a mailbox collision, best wait
 * until we are called again and don't report an error
 */
if ((ret = mbx->ops.read(hw, &in_msg, 1, 0))) {
DEBUGCHK("ixgbe_read_mbx_vf failed. ret=%d\n", ret);
goto out;
}

if (!(in_msg & IXGBE_VT_MSGTYPE_CTS)) {
/* msg is not CTS and is NACK we must have lost CTS status */
if (in_msg & IXGBE_VT_MSGTYPE_NACK) {
DEBUGCHK("Error: NACK is set\n");
ret_val = -1;
}
goto out;
}


I really need your help.
Appreciate any comments and reply.


[dpdk-dev] Help: How to read packet statistics from device registers via dpdk PMD?

2016-07-12 Thread Bill Bonaparte
Hi, Jay:
  My apologies for taking me to get back to you.
  I tried the sample apps on my environment follow your advice, and I
found it works well.
  so I started to compare  the code related to the api between my app
and the sample app, I didn't find any significative difference. I am very
confused.
  .
  finnaly, with the help of my colleague, I tracked down the problem.
It's a confused character of my platform that make the packets miss  the
interface which I monitored.
  so I can access the IP of the interface, but the flow don't pass
through the interface.
  after ajusting the topology, the api works well.

 anyhow, thanks to your advice, I tracked down the problem.
 so again, I appreciate your time in talking with me about this api.

On Thu, Jul 7, 2016 at 8:19 PM, Jay Rolette  wrote:

>
> On Thu, Jul 7, 2016 at 12:52 AM, Bill Bonaparte 
> wrote:
>
>> I am so happy to get your reply.
>> My dpdk version is 2.1?and the OS is centOS 7?
>> the following is the output from "dpdk_nic_bind.py --status":
>>
>> [root at APV35 ~]# dpdk_nic_bind.py --status
>>
>> Network devices using DPDK-compatible driver
>> 
>> :04:00.0 'VMXNET3 Ethernet Controller' drv=igb_uio unused=
>> :0b:00.0 'VMXNET3 Ethernet Controller' drv=igb_uio unused=
>> :13:00.0 'VMXNET3 Ethernet Controller' drv=igb_uio unused=
>> :1b:00.0 'VMXNET3 Ethernet Controller' drv=igb_uio unused=
>>
>> Network devices using kernel driver
>> ===
>> :03:00.0 'VMXNET3 Ethernet Controller' if=ens160 drv=vmxnet3
>> unused=igb_uio *Active*
>>
>> Other network devices
>> =
>> 
>>
>
> That's a different virtual NIC than what I'm running in my VMs, but given
> your app isn't working directly on the hardware, I doubt that's the issue.
> In case it helps along the way, here's what I see in my VM:
>
> $ dpdk_nic_bind.py --status
>
> Network devices using DPDK-compatible driver
> 
> :02:02.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=igb_uio
> unused=
> :02:03.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=igb_uio
> unused=
> :02:04.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=igb_uio
> unused=
> :02:05.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=igb_uio
> unused=
>
> Network devices using kernel driver
> ===
> :02:01.0 '82545EM Gigabit Ethernet Controller (Copper)' if=eth0
> drv=e1000 unused=igb_uio *Active*
>
> Other network devices
> =
> 
>
>
>> I tried it on the physical mathine, it still does not work. the OS is
>> centOS 7, too.
>> [root at AN ~]# dpdk_nic_bind.py --status
>>
>> Network devices using DPDK-compatible driver
>> 
>> :01:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio
>> unused=
>> :01:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio
>> unused=
>> :03:00.0 'I350 Gigabit Backplane Connection' drv=igb_uio unused=
>> :03:00.1 'I350 Gigabit Backplane Connection' drv=igb_uio unused=
>> :03:00.2 'I350 Gigabit Backplane Connection' drv=igb_uio unused=
>> :03:00.3 'I350 Gigabit Backplane Connection' drv=igb_uio unused=
>> :07:00.0 'I350 Gigabit Network Connection' drv=igb_uio unused=
>> :07:00.1 'I350 Gigabit Network Connection' drv=igb_uio unused=
>> :07:00.2 'I350 Gigabit Network Connection' drv=igb_uio unused=
>> :07:00.3 'I350 Gigabit Network Connection' drv=igb_uio unused=
>> :09:00.0 'I350 Gigabit Network Connection' drv=igb_uio unused=
>> :09:00.1 'I350 Gigabit Network Connection' drv=igb_uio unused=
>> :09:00.2 'I350 Gigabit Network Connection' drv=igb_uio unused=
>> :09:00.3 'I350 Gigabit Network Connection' drv=igb_uio unused=
>> :0c:00.0 'Device 0011' drv=igb_uio unused=
>> :0f:00.1 'I350 Gigabit Network Connection' drv=igb_uio unused=
>>
>> Network devices using kernel driver
>> ===
>> :0f:00.0 'I350 Gigabit Network Connection' if=enp15s0f0 drv=igb
>> unused=igb_uio *Active*
>>
>> Other network devices
>> =
>> 
>&

[dpdk-dev] Help: How to read packet statistics from device registers via dpdk PMD?

2016-07-07 Thread Bill Bonaparte
I am so happy to get your reply.
My dpdk version is 2.1?and the OS is centOS 7?
the following is the output from "dpdk_nic_bind.py --status":

[root at APV35 ~]# dpdk_nic_bind.py --status

Network devices using DPDK-compatible driver

:04:00.0 'VMXNET3 Ethernet Controller' drv=igb_uio unused=
:0b:00.0 'VMXNET3 Ethernet Controller' drv=igb_uio unused=
:13:00.0 'VMXNET3 Ethernet Controller' drv=igb_uio unused=
:1b:00.0 'VMXNET3 Ethernet Controller' drv=igb_uio unused=

Network devices using kernel driver
===
:03:00.0 'VMXNET3 Ethernet Controller' if=ens160 drv=vmxnet3
unused=igb_uio *Active*

Other network devices
=


I tried it on the physical mathine, it still does not work. the OS is
centOS 7, too.
[root at AN ~]# dpdk_nic_bind.py --status

Network devices using DPDK-compatible driver

:01:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio
unused=
:01:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio
unused=
:03:00.0 'I350 Gigabit Backplane Connection' drv=igb_uio unused=
:03:00.1 'I350 Gigabit Backplane Connection' drv=igb_uio unused=
:03:00.2 'I350 Gigabit Backplane Connection' drv=igb_uio unused=
:03:00.3 'I350 Gigabit Backplane Connection' drv=igb_uio unused=
:07:00.0 'I350 Gigabit Network Connection' drv=igb_uio unused=
:07:00.1 'I350 Gigabit Network Connection' drv=igb_uio unused=
:07:00.2 'I350 Gigabit Network Connection' drv=igb_uio unused=
:07:00.3 'I350 Gigabit Network Connection' drv=igb_uio unused=
:09:00.0 'I350 Gigabit Network Connection' drv=igb_uio unused=
:09:00.1 'I350 Gigabit Network Connection' drv=igb_uio unused=
:09:00.2 'I350 Gigabit Network Connection' drv=igb_uio unused=
:09:00.3 'I350 Gigabit Network Connection' drv=igb_uio unused=
:0c:00.0 'Device 0011' drv=igb_uio unused=
:0f:00.1 'I350 Gigabit Network Connection' drv=igb_uio unused=

Network devices using kernel driver
===
:0f:00.0 'I350 Gigabit Network Connection' if=enp15s0f0 drv=igb
unused=igb_uio *Active*

Other network devices
=



On Tue, Jul 5, 2016 at 8:03 PM, Jay Rolette  wrote:

>
> On Tue, Jul 5, 2016 at 2:35 AM, Bill Bonaparte 
> wrote:
>
>> Hi:
>> I am a new fish, I have tried my best to find answer about my question on
>> web, but I failed. so
>> I come here to ask for your help. the below is my question:
>>
>> I found that dpdk provides a api rte_eth_stats_get to read packet
>> statistics about the interface, includes total input/output
>> unicast/multicast/brodcast packets/bytes. but the api does not work on
>> VMxnet interface (which is a virtual interface in VMware machine).
>>
>
> Probably something in your app or environment rather than in the API
> itself. We run rte_eth_stats_get() against interfaces in VMware Fusion,
> VirtualBox and real hardware and they all work generally.
>
> Need some info before anyone can help you much:
>
> * What version of DPDK are you running?
> * What OS are you running on?
> * Output from "dpdk_nic_bind.py --status"?
>
> Jay
>


[dpdk-dev] Help: How to read packet statistics from device registers via dpdk PMD?

2016-07-05 Thread Bill Bonaparte
Hi:
I am a new fish, I have tried my best to find answer about my question on
web, but I failed. so
I come here to ask for your help. the below is my question:

I found that dpdk provides a api rte_eth_stats_get to read packet
statistics about the interface, includes total input/output
unicast/multicast/brodcast packets/bytes. but the api does not work on
VMxnet interface (which is a virtual interface in VMware machine).

I am not sure if this api works for the real interface.
who has more information about this, and why it does not work on virtual
machine ?

Appreciate any comments and reply.