[dpdk-dev] DPDK on EC2?

2015-03-17 Thread Jeff Wang
Thanks Andre and Rashmin!

I'm trying to deploy this dpdk-ovs on EC2.

https://github.com/01org/dpdk-ovs

But the way it works on my own machine seems quite different with it does
on the cloud. I'm still confused about the hardware virtualization on EC2.

On Mon, Mar 16, 2015 at 5:03 PM, Patel, Rashmin N  wrote:

> Just curious - I didn't understand the usage model here. In the Amazon EC2
> instance (a VM,) do you want to run a DPDK application? Where do you intend
> to run OVS?
>
> As far I remember, OVS has a datapath in Host kernel and you won't be
> given Host access by AWS. And I'm not sure if Amazon provides an OVS
> instance, but in case if they don't have an offering, you have to put your
> OVS installation in another VM (virtualizing network function) and bounce
> the traffic back to your VM(s.)
>
> As far as Amazon Advanced Networking is concerned, you get a dedicated
> slice (an SRIOV Virtual Function) of a NIC in your VM, where a Physical
> Function Driver running in the Host (Amazon VMM-Xen I think) controls all
> the filtering configuration privileges.
>
> Thanks,
> Rashmin
>
> -Original Message-
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Andre Richter
> Sent: Monday, March 16, 2015 2:27 PM
> To: Jeff Wang; dev at dpdk.org
> Subject: Re: [dpdk-dev] DPDK on EC2?
>
> Be sure to get an instance with SR-IOV, which is "enhanced networking" in
> Amazon speak.
>
> http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking.html
>
> Cheers Andre
> Jeff Wang  schrieb am Mo., 16. M?rz 2015 um 21:08:
>
> > Hi,
> >
> > I'm trying to deploy DPDK and ovs on an AWS EC2 instance which is
> > running CentOS 7.
> >
> > Has anybody had tried to do this? How to bind a NIC to dpdk while it
> > shows no NICs when I do lspci?
> >
> > Thanks!
> >
>


[dpdk-dev] DPDK on EC2?

2015-03-16 Thread Jeff Wang
Hi,

I'm trying to deploy DPDK and ovs on an AWS EC2 instance which is running
CentOS 7.

Has anybody had tried to do this? How to bind a NIC to dpdk while it shows
no NICs when I do lspci?

Thanks!


[dpdk-dev] testpmd app issues

2015-02-17 Thread Jeff Wang
Hi,

I'm new to DPDK.

I have gone through the user guide, set up environment, hugepages. I can
get the helloworld app work. Now, when I tried to play with the testpmd
app, I got the following issue:

[root at localhost dpdk-1.8.0]# build/app/testpmd -c 0x2 -n1 -- -i
--nb-cores=1 --nb-ports=0x1

.

EAL: TSC frequency is ~2594110 KHz
EAL: Master core 1 is ready (tid=e07b3840)
PMD: ENICPMD trace: rte_enic_pmd_init
EAL: PCI device :02:00.0 on NUMA socket -1
EAL:   probe driver: 8086:10d3 rte_em_pmd
EAL:   :02:00.0 not managed by UIO driver, skipping
EAL: PCI device :03:00.0 on NUMA socket -1
EAL:   probe driver: 8086:10d3 rte_em_pmd
EAL:   PCI memory mapped at 0x7f06df80
EAL:   PCI memory mapped at 0x7f06df82
PMD: eth_em_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x10d3
EAL: PCI device :04:00.0 on NUMA socket -1
EAL:   probe driver: 8086:10d3 rte_em_pmd
EAL:   :04:00.0 not managed by UIO driver, skipping
EAL: PCI device :05:00.0 on NUMA socket -1
EAL:   probe driver: 8086:10d3 rte_em_pmd
EAL:   :05:00.0 not managed by UIO driver, skipping*PANIC in main():
Empty set of forwarding logical cores - check the core mask supplied
in the command parameters*
5: [build/app/testpmd() [0x428ea5]]
4: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x7f06df8e2af5]]

.

It says the core mask is not right. I set it to 0x2 because my CPU
only has 2 cores. I don't quite get it.

Can someone help me with this? And has anyone else encountered the same issue?

Thanks!