[dpdk-dev] How can I get raw socket from vEth0 interface?

2013-10-23 Thread Byung-Chul So
Hello everyone. Currently I'm trying to setup DPDK's KNI moudle on my x86 machine and I succeed to up vEth0 using kni module. However, I can't get raw socket from vEth0 interface because there is no sock_en file in /sys/class/net/vEth0 directory of my host linux machine. What should I do next? Sh

[dpdk-dev] query about rte_eal_mp_remote_launch()

2013-10-23 Thread Prashant Upadhyaya
Hi, So far as you are doing the init properly in a controlled fashion from one core, you should be able to orchestrate the usecase with your own threads. I don't think so there should be any limitations. Regards -Prashant From: Jyotiswarup Raiturkar [mailto:jyoti...@googlemail.com] Sent: Wedne

[dpdk-dev] query about rte_eal_mp_remote_launch()

2013-10-23 Thread Jyotiswarup Raiturkar
Hi Prashant Thanks for the reply. I understand what you said. But my query was can i use pthread_create() to create the 'tight loop' threads on demand, rather than spawing the threads at start with rte_eal_mp_remote_launch(). Does anything in the dpdk core preclude using pthread_create() calls d

[dpdk-dev] query about port queues

2013-10-23 Thread Prashant Upadhyaya
Hi Jyoti, You can configure the number of tx and rx queues via the software when you are calling the rte_eth_dev_configure. However you cannot allocate more than what the NIC supports. But you can allocate less ofcourse. Typically the queues are used so that independent cores can do tx and rx o

[dpdk-dev] query about rte_eal_mp_remote_launch()

2013-10-23 Thread Prashant Upadhyaya
Hi Jyoti, You must carefully analyse your usecase. Typically each core must run a tight loop (and therefore one thread spawned by remote launch) which does a while 1 { get packet, service packet } You should try to build your application around the above paradigm. One of your cores can service t

[dpdk-dev] query about rte_eal_mp_remote_launch()

2013-10-23 Thread Jyotiswarup Raiturkar
Hello Devs I'm new to DPDK and trying to understand the basics.. I want to write a DPDK app where I want to configure shm rings on the fly, and I want one thread(per core) to service the ring. In some of the examples I saw rte_eal_mp_remote_launch() being used, but this is a one time launch. Can I

[dpdk-dev] query about port queues

2013-10-23 Thread Jyotiswarup Raiturkar
Hello Devs I'm new to DPDK and trying to understand the basics. I went through the programming guide but I had one question regarding Tx and Rx queues per port. Are they configurable entirely in software or do they depend on the HW (NIC)? Does the L2 configuration (MAC address) apply to all the que

[dpdk-dev] [PATCH] ixgbe: query assignment of queues to VF

2013-10-23 Thread jigsaw
Hi Thomas, >>Please, keep us informed about the needed PF patch. First of all, where and how should I post the patch to PF driver? And secondly I have only 82599, so I cannot run test for 82598 and X540. Is it possible that you could test on different NIC? thx & rgds, -ql On Wed, Oct 23, 2013 a

[dpdk-dev] [PATCH] config: fix combined/shared lib

2013-10-23 Thread Thomas Monjalon
- Configuration for combined and shared library was only in the template defconfig_x86_64-default-linuxapp-gcc. - CONFIG_RTE_LIBNAME was in the wrong section - CONFIG_RTE_LIBNAME quotes were not properly removed in "make context" - RTE_LIBNAME had no quote in "C context" (include/rte_config.h) Sig

[dpdk-dev] [PATCH] ixgbe: query assignment of queues to VF

2013-10-23 Thread Thomas Monjalon
21/10/2013 16:11, Qinglai Xiao : > Physical Function assignes Tx/Rx queues to each VF according to > different schemes[1]. By querying through mailbox, VF is able to > get number of Tx/Rx queues assigned to it. > > Note that current Intel ixgbe driver ixgbe-3.18.7 does not fully > support mailbox