[dpdk-dev] multiple VLAN IDs for SR-IOV ports

2014-02-02 Thread Jose Gavine Cueto
hi, On Thu, Jan 30, 2014 at 2:45 PM, James Yu wrote: > Any one know what commands to use on the KVM host to add multiple VLAN IDs > to a SR-IOV port ? > > I could only add one VLAN ID using > > ip link set ethN vf NUM vlan VLANID > What do you mean by "multiple VLAN IDs" ? ethN and vf NUM her

[dpdk-dev] How to Destroy any rte_ring or recreate the ring with same name.

2014-01-11 Thread Jose Gavine Cueto
Hi ankit, On Fri, Jan 10, 2014 at 8:33 PM, ankit kumar wrote: > Hi all, > >As i am trying to use DPDK ring library in my application. It works > fine. > But as per API Documentation there is no function to destroy any > created ring. I have to create a > ring multiple time with same name. >

[dpdk-dev] intel x540-at2

2014-01-08 Thread Jose Gavine Cueto
Hi, Just to let you know that the invalid instruction error above went away when AVX was enabled using host model cpu mode in the VM. Thanks, Pepe On Mon, Jan 6, 2014 at 2:03 PM, Jose Gavine Cueto wrote: > Hi Thomas, > > On Sun, Jan 5, 2014 at 10:54 PM, Thomas Monjalon < > tho

[dpdk-dev] intel x540-at2

2014-01-06 Thread Jose Gavine Cueto
Hi Thomas, On Sun, Jan 5, 2014 at 10:54 PM, Thomas Monjalon wrote: > 05/01/2014 22:31, Jose Gavine Cueto : > > venky.venkatesan at intel.com> wrote: > > > Was the DPDK library compiled on a different machine and the used in > the > > > VM? It looks like it has be

[dpdk-dev] intel x540-at2

2014-01-05 Thread Jose Gavine Cueto
It seems that there is no avx here, does this mean this doesn't support avx instructions ? Thanks, Pepe > > -Venky > > Sent from my iPhone > > > On Jan 3, 2014, at 2:32 AM, "Jose Gavine Cueto" > wrote: > > > > I haven't added it yet, because

[dpdk-dev] intel x540-at2

2014-01-03 Thread Jose Gavine Cueto
somewhere when initializing pthreads. Ok, I'll to debug more and get more information. Thanks again, Pepe On Fri, Jan 3, 2014 at 6:26 PM, Thomas Monjalon wrote: > 03/01/2014 11:09, Jose Gavine Cueto : > > I am running a DPDK application in a guest VM which uses one VF. This V

[dpdk-dev] intel x540-at2

2014-01-03 Thread Jose Gavine Cueto
o fail, for the reason that the VF in the VM may be trying to perform some capabilities in the PF (x540-at2) that is not available. Cheers, Pepe On Fri, Jan 3, 2014 at 5:56 PM, Thomas Monjalon wrote: > 03/01/2014 10:16, Jose Gavine Cueto : > > Thanks again. So there is a possibility tha

[dpdk-dev] intel x540-at2

2014-01-03 Thread Jose Gavine Cueto
Thanks again. So there is a possibility that vf will fail with DPDK due to not fully supported pf. Please correct me if I'm wrong. Cheers, Pepe On Fri, Jan 3, 2014 at 5:09 PM, Jose Gavine Cueto wrote: > Sorry I accidentally excluded the list. I've paste

[dpdk-dev] intel x540-at2

2014-01-03 Thread Jose Gavine Cueto
Thu, Jan 2, 2014 at 10:24 PM, Thomas Monjalon wrote: > 23/12/2013 10:18, Jose Gavine Cueto : > > I can't find a MACRO for this nic in rte_pci_dev_ids.h, does this mean > this > > isn't supported as of this moment ? > > Yes > But probably that > hw->m

[dpdk-dev] Fwd: problem in running KNI application

2013-12-25 Thread Jose Gavine Cueto
Cr, Sorry, my previous reply is meant for the PM you've sent. Please ignore the preceeding reply. Cheers, Pepe On Wed, Dec 25, 2013 at 1:46 PM, Jose Gavine Cueto wrote: > Looking back in your first email and reading some of the kni sample > application code, it seems to

[dpdk-dev] Fwd: problem in running KNI application

2013-12-25 Thread Jose Gavine Cueto
Looking back in your first email and reading some of the kni sample application code, it seems to me that the application maps an lcore to one port. Based on these snippets, 1.) --- kni/main.c:930 rte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER); 2.) -- kni/main.c:379 if (flag == LCORE_R

[dpdk-dev] intel x540-at2

2013-12-23 Thread Jose Gavine Cueto
Hi, I can't find a MACRO for this nic in rte_pci_dev_ids.h, does this mean this isn't supported as of this moment ? I only saw MACROS for x540t and x540t1. Cheers Pepe -- To stop learning is like to stop loving.

[dpdk-dev] kni vs. pmd

2013-12-13 Thread Jose Gavine Cueto
ti Kumar wrote: > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jose Gavine Cueto > > Sent: Tuesday, December 10, 2013 3:16 PM > > To: dev at dpdk.org > > Subject: Re: [dpdk-dev] kni vs. pmd > > > > Additional questio

[dpdk-dev] kni question

2013-12-11 Thread Jose Gavine Cueto
Hi, I would like to ask if kni was intentionally provided mainly for PMD API users/developers ? Most of the examples emphasizes how to use the kni devices by upper level applications with sockets, however I haven't seen any usage where PMD APIs being used to send packets to knis. Is this possibl

[dpdk-dev] kni vs. pmd

2013-12-11 Thread Jose Gavine Cueto
, Pepe On Wed, Dec 11, 2013 at 7:12 AM, Jose Gavine Cueto wrote: > Hi, > > Correct me if I'm wrong, but in a high-level perspective I see that kni is > providing an option for applications to use their regular interfaces (e.g. > sockets) and abstracts the usage of pmds. &g

[dpdk-dev] kni vs. pmd

2013-12-11 Thread Jose Gavine Cueto
Hi, Correct me if I'm wrong, but in a high-level perspective I see that kni is providing an option for applications to use their regular interfaces (e.g. sockets) and abstracts the usage of pmds. If this is somehow correct, are there any differences with regard to performance benefits that can be

[dpdk-dev] Issue while running test/testpmd applications

2013-12-02 Thread Jose Gavine Cueto
Hi, #2 - It depends on the platform that testpmd is running on. If it ran directly on top of the hardware then usually you have fixed lcores. For example, in Linux, you can call "nproc" to check how many cores are available. Make sure you have sufficient number of cores and set the core mask ap

[dpdk-dev] Cannot run l3fwd with the problem of " nb_tx_queues"

2013-11-27 Thread Jose Gavine Cueto
,0,1)' in 82574L, > it will get the error msg. > But when I change my card with 82580 and use the same command to execute > DPDK l3fwd. > It's working. > > So, maybe the root cause is the DPDK does not support your chip-set and > send out this error msg. > > On 1

[dpdk-dev] rte_ring_sc_dequeue returns 0 but sets packet to NULL

2013-11-19 Thread Jose Gavine Cueto
Hi, I am encountering a strange behavior of rte_ring_sc_dequeue, though I'm not yet sure what causes this. I have a code: rc = rte_ring_sc_dequeue(fwdp->rxtx_rings->xmit_ring, &rpackets); At first dequeue, rpackets gets a correct address of an rte_mbuf, however at the second dequeue it returns

[dpdk-dev] Cannot run l3fwd with the problem of " nb_tx_queues"

2013-11-14 Thread Jose Gavine Cueto
Hi, Your nic (port 0) is capable of 1 txq only see error: " port_id=0 nb_tx_queues=2 > 1" I think that caused the error. Cheers, Pepe On Thu, Nov 14, 2013 at 1:21 PM, yuxuan zhang wrote: > Hi Everyone: > > I meet a problem with running the DPDK1.3 example l3fwd in the VMware. I > have two 8

[dpdk-dev] pci_unbind.py failure

2013-11-14 Thread Jose Gavine Cueto
t; rte_eth_dev_count() return real number of ports and continue execute > > normaly. > > > > > > 2013/11/13 Daniel Kaminsky > > > > > Hi Jyotiswarup, > > > > > > Did you initialized all the relevant parts before > > > (rte_eal

[dpdk-dev] pci_unbind.py failure

2013-11-13 Thread Jose Gavine Cueto
Hi, How are you using it? I've successfully used it with vbox. Cheers On Nov 13, 2013 7:17 PM, "Jyotiswarup Raiturkar" wrote: > hi > > I got my application running inside a vm (vmplayer) where the VM emulates a > e1000 NIC (82545EM). But rte_eth_dev_count() seems to return 0.. From the > websit

[dpdk-dev] raw frame to rte_mbuf

2013-11-12 Thread Jose Gavine Cueto
Regards, > Etai > > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Prashant Upadhyaya > Sent: Tuesday, November 12, 2013 11:15 AM > To: Jose Gavine Cueto; dev at dpdk.org > Subject: Re: [dpdk-dev] raw frame to rte_mbuf > > Hi Pepe, >

[dpdk-dev] raw frame to rte_mbuf

2013-11-12 Thread Jose Gavine Cueto
Hi, In DPDK how should a raw ethernet frame converted to rte_mbuf * ? For example if I have an ARP packet: void * arp_pkt how should this be converted to an rte_mbuf * for transmission, does a simple cast suffice ? Cheers, Pepe -- To stop learning is like to stop loving.

[dpdk-dev] preallocation of void ** obj_p of rte_ring_dequeue

2013-11-06 Thread Jose Gavine Cueto
I see , now its clearer. Thanks, Pepe On Wed, Nov 6, 2013 at 1:54 AM, Cyril Cressent wrote: > On Wed, Nov 06, 2013 at 12:47:13AM +0800, Jose Gavine Cueto wrote: > > > Your'e welcome, and by the way the multiprocess example of simple_mp > seems > > confusin

[dpdk-dev] preallocation of void ** obj_p of rte_ring_dequeue

2013-11-06 Thread Jose Gavine Cueto
Hi Cyril, Your'e welcome, and by the way the multiprocess example of simple_mp seems confusing here: static int lcore_recv(__attribute__((unused)) void *arg) { unsigned lcore_id = rte_lcore_id(); printf("Starting core %u\n", lcore_id); while (!quit){ *void *msg;* if (*rte_ring_dequeue(recv_ring,

[dpdk-dev] preallocation of void ** obj_p of rte_ring_dequeue

2013-11-05 Thread Jose Gavine Cueto
Thank you, I've actually read the code & guide, but I wanted to make sure that what I understood was correct. Cheers, Pepe On Tue, Nov 5, 2013 at 6:33 PM, Cyril Cressent wrote: > On Tue, Nov 05, 2013 at 06:15:01PM +0800, Jose Gavine Cueto wrote: > > > > When using *sta

[dpdk-dev] preallocation of void ** obj_p of rte_ring_dequeue

2013-11-05 Thread Jose Gavine Cueto
Hi, When using *static int rte_ring_dequeue( structe rte_ring * r, void ** obj_p )*, is the user presumed to allocate obj_p , or does this method allocates this obj_p ? Cheers, Pepe -- To stop learning is like to stop loving.

[dpdk-dev] dpdk shared lib build

2013-11-02 Thread Jose Gavine Cueto
Hi, Building dpdk app. as a shared library (.so) I believe is supported but I can't find any documentation for it. I tried doing the same Makefile format as building an app, and that is placed the following: rte.vars.mk -> before everything rte.extshared.mk ---> after everythin

[dpdk-dev] rte_eth_rx_burst stops running on dpdk extlib

2013-10-30 Thread Jose Gavine Cueto
built with based on the compiler > flags. > > ** ** > > Regards**** > > -Prashant > > ** ** > > ** ** > > *From:* Jose Gavine Cueto [mailto:pepedocs at gmail.com] > *Sent:* Wednesday, October 30, 2013 12:34 PM > *To:* Prashant Upadhyaya > *Cc:* de

[dpdk-dev] rte_eth_rx_burst stops running on dpdk extlib

2013-10-30 Thread Jose Gavine Cueto
; application with them just like the original usecase where you find the > problem. > If this works, then the problem is with the precompiled libraries you were > picking from somewhere. > > Regards > -Prashant > > > -Original Message- > From: dev [mailto:dev-

[dpdk-dev] rte_eth_rx_burst stops running on dpdk extlib

2013-10-30 Thread Jose Gavine Cueto
Hi, Could someone help me ? Or at least let me know if what I'm doing (diagram above) is right with regard to using a external dpdk library ? I assume dpdk external libraries can be treated as norma C libraries. Cheers, Pepe On Wed, Oct 30, 2013 at 8:18 AM, Jose Gavine Cueto wrote:

[dpdk-dev] rte_eth_rx_burst stops running on dpdk extlib

2013-10-30 Thread Jose Gavine Cueto
Hi, I'm writing a very simple packet dump application that can be described by the following diagram: --- |pktdump| | PMD lib extension | | (extlib) | | DPDK PMD lib | -

[dpdk-dev] rte_mbuf - contiguous ?

2013-10-25 Thread Jose Gavine Cueto
Hi Thomas, I've read both the rte_pktmbuf_is_contiguous and rte_pktmbuf_clone. I think that I can get each mbuf segments and copy them to memory linearly. Thanks for the tip. On Thu, Oct 24, 2013 at 4:32 PM, Thomas Monjalon wrote: > 24/10/2013 10:09, Jose Gavine Cueto : > > Tha

[dpdk-dev] rte_mbuf - contiguous ?

2013-10-24 Thread Jose Gavine Cueto
, Thomas Monjalon wrote: > Hello, > > 24/10/2013 09:49, Jose Gavine Cueto : > > Is the rte_mbuf/packet data always map to a contiguous area in memory, > and > > so if I can do a linear copy of it ? > > No, in scatter/gather case, mbuf can be splitted in non contiguous area

[dpdk-dev] rte_mbuf - contiguous ?

2013-10-24 Thread Jose Gavine Cueto
Hi, Is the rte_mbuf/packet data always map to a contiguous area in memory, and so if I can do a linear copy of it ? Cheers, pepe -- To stop learning is like to stop loving.