[dpdk-dev] [PATCH] ixgbe:Add write memory barrier for recv pkts.

2015-05-05 Thread Dong Wang
Hi, Konstantin, > > >> -Original Message- >> From: outlook_739db8e1c4bc6fae at outlook.com >> [mailto:outlook_739db8e1c4bc6fae at outlook.com] On Behalf Of Wang Dong >> Sent: Thursday, April 16, 2015 12:36 PM >> To: Ananyev, Konstantin; dev at dpdk.org >> Subject: Re: [dpdk-dev] [PATCH] i

[dpdk-dev] [PATCH] librte_eal:Using compiler memory barrier for IA processor's rte_wmb/rte_rmb.

2015-05-05 Thread WangDong
The current implementation of rte_wmb/rte_rmb for x86 is using processor memory barrier. It's unnessary for IA processor, compiler memory barrier is enough. But if dpdk runing on a AMD processor, maybe we should use processor memory barrier. I add a macro to distinguish them, if we compile DPDK

[dpdk-dev] [PATCH] librte_eal:Using compiler memory barrier for IA processor's rte_wmb/rte_rmb.

2015-05-05 Thread Ananyev, Konstantin
Hi Dong, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of WangDong > Sent: Tuesday, May 05, 2015 4:38 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] librte_eal:Using compiler memory barrier for IA > processor's rte_wmb/rte_rmb. > > The current implem

[dpdk-dev] [PATCH RFC 1/6] mbuf: update mbuf structure for QinQ support

2015-05-05 Thread Ananyev, Konstantin
> -Original Message- > From: Chilikin, Andrey > Sent: Tuesday, May 05, 2015 4:43 PM > To: Ananyev, Konstantin; Zhang, Helin; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH RFC 1/6] mbuf: update mbuf structure for QinQ > support > > Hi Helin, > > I would agree with Konstantin about ne

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-05 Thread Wiles, Keith
Neil and John and anyone else, if I have been rude or ugly in anyway that was not my intent. Please accept my apologies for being rude or condescending. Sent from my iPhone >> On May 5, 2015, at 12:07 PM, Neil Horman wrote: >> >> On Tue, May 05, 2015 at 04:43:08PM +, Wiles, Keith wrote: >>

[dpdk-dev] Error about dpdk ovs on AWS VM

2015-05-05 Thread topperxin
Hi list I am doing something about compile DPDK OVS on AWS VM, while I met some problem, 1. I can only set the hugepagesize to 2M, not to 1G, the reason is the cpu only has flag 'pse', which support only 2M huge page size, while not has pdpe1gb, which support 1G hu

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-05 Thread Wiles, Keith
Sent from my iPhone > On May 5, 2015, at 10:58 AM, John W. Linville > wrote: > >> On Tue, May 05, 2015 at 04:43:08PM +, Wiles, Keith wrote: >> >> Please take a breath and relax as we all want the best for DPDK Hi John I am sorry you see it this way as I stated in the email parts you sni

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-05 Thread Wiles, Keith
Sent from my iPhone > On May 5, 2015, at 6:56 AM, Neil Horman wrote: > >> On Mon, May 04, 2015 at 10:25:00PM -0500, Jim Thompson wrote: >> >>> On May 4, 2015, at 10:12 PM, Wiles, Keith wrote: >>> >>> >>> On 5/4/15, 10:48 AM, "Matthew Hall" wrote: > On Mon, May 04, 2015 at

[dpdk-dev] [PATCH v7 09/10] igb: enable rx queue interrupts for PF

2015-05-05 Thread Stephen Hemminger
On Tue, 5 May 2015 13:39:45 +0800 Cunming Liang wrote: > The patch does below for igb PF: > - Setup NIC to generate MSI-X interrupts > - Set the IVAR register to map interrupt causes to vectors > - Implement interrupt enable/disable functions > > Signed-off-by: Danny Zhou > Signed-off-by: Cunm

[dpdk-dev] [PATCH v2] Add toeplitz hash algorithm used by RSS

2015-05-05 Thread Chilikin, Andrey
Hi Vladimir, Why limit Toeplitz hash calculation to predefined tuples and length? Should it be more general, something like rte_softrss_be(void *input, uint32_t input_len, const uint8_t *rss_key) to enable hash calculation for an input of any size? It would be useful for distributing packets us

[dpdk-dev] [PATCH 0/6] rte_sched: patches against 2.o

2015-05-05 Thread Dumitrescu, Cristian
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Wednesday, April 29, 2015 6:05 PM > To: Dumitrescu, Cristian > Cc: dev at dpdk.org; Stephen Hemminger > Subject: [PATCH 0/6] rte_sched: patches against 2.o > > This is a subset of earlier patche

[dpdk-dev] [PATCH v3 6/6] hash: rename rte_jhash2 to rte_jhash_32b

2015-05-05 Thread Pablo de Lara
From: De Lara Guarch, Pablo Changed name to something more meaningful, and mark rte_jhash2 as deprecated. Signed-off-by: Pablo de Lara --- app/test/test_func_reentrancy.c |2 +- app/test/test_hash.c|4 ++-- lib/librte_hash/rte_jhash.h | 17 +++-- 3 files c

[dpdk-dev] [PATCH v3 5/6] hash: remove duplicated code

2015-05-05 Thread Pablo de Lara
rte_jhash is basically like _rte_jhash_2hashes but it returns only 1 hash, instead of 2. In order to remove duplicated code, rte_jhash calls _rte_jhash_2hashes, passing 0 as the second seed and returning just the first hash value. (performance penalty is negligible) The same is done with rte_jhas

[dpdk-dev] [PATCH v3 4/6] hash: add two new functions to jhash library

2015-05-05 Thread Pablo de Lara
With the jhash update, two new functions were introduced: - rte_jhash_2hashes: Same as rte_jhash, but takes two seeds and return two hashes (uint32_ts) - rte_jhash2_2hashes: Same as rte_jhash2, but takes two seeds and return two hashes (uint32_ts) Signed

[dpdk-dev] [PATCH v3 3/6] hash: update jhash function with the latest available

2015-05-05 Thread Pablo de Lara
Jenkins hash function was developed originally in 1996, and was integrated in first versions of DPDK. The function has been improved in 2006, achieving up to 60% better performance, compared to the original one. This patch integrates that code into the rte_jhash library. Signed-off-by: Pablo de L

[dpdk-dev] [PATCH v3 2/6] test/hash: improve accuracy on cycle measurements

2015-05-05 Thread Pablo de Lara
Cycles per hash calculation were measured per single operation. It is much more accurate to run several iterations between measurements and divide by number of iterations. Signed-off-by: Pablo de Lara --- app/test/test_hash_func_perf.c | 18 +- 1 files changed, 9 insertions(+),

[dpdk-dev] [PATCH v3 1/6] test/hash: move hash function perf tests to separate file

2015-05-05 Thread Pablo de Lara
This patch moves hash function performance tests to a separate file, so user can check performance of the existing hash functions quicker, without having to run all the other hash operation performance tests, which takes some time. Signed-off-by: Pablo de Lara --- app/test/Makefile

[dpdk-dev] [PATCH v3 0/6] update jhash function

2015-05-05 Thread Pablo de Lara
Jenkins hash function was developed originally in 1996, and was integrated in first versions of DPDK. The function has been improved in 2006, achieving up to 60% better performance, compared to the original one. This patchset updates the current jhash in DPDK, including two new functions that gene

[dpdk-dev] [PATCH RFC 1/6] mbuf: update mbuf structure for QinQ support

2015-05-05 Thread Chilikin, Andrey
Hi Helin, I would agree with Konstantin about new naming for VLAN tags. I think we can leave existing name for t vlan_tci and just name new VLAN tag differently. I was thinking in the line of "vlan_tci_outer" or "stag_tci". So vlan_tci will store single VLAN in case if only one L2 tag is presen

[dpdk-dev] [RFC PATCH V2] librte_pmd_ring: changes to support PCI Port Hotplug

2015-05-05 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the rte_dev_uninit_t() function for the ring pmd. Changes in V2: Fix crash in the rte_pmd_ring_devuninit() function. Signed-off-by: Bernard Iremonger --- lib/librte_pmd_ring/rte_eth_ring.c | 92 +++---

[dpdk-dev] [PATCH v2] pipeline: add statistics for librte_pipeline ports and tables

2015-05-05 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Michal Jastrzebski > Sent: Thursday, April 30, 2015 1:16 PM > To: dev at dpdk.org > Cc: Wodkowski, PawelX > Subject: [dpdk-dev] [PATCH v2] pipeline: add statistics for librte_pipeline > ports and tables > > Fr

[dpdk-dev] [PATCH v2 00/10] table: added table statistics

2015-05-05 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Michal Jastrzebski > Sent: Thursday, April 30, 2015 1:14 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2 00/10] table: added table statistics > > From: Maciej Gajdzica > > Added statistics for every

[dpdk-dev] [PATCH v2 00/13] port: added port statistics

2015-05-05 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Michal Jastrzebski > Sent: Thursday, April 30, 2015 1:07 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2 00/13] port: added port statistics > > From: Maciej Gajdzica > > Added statistics for every t

[dpdk-dev] [PATCH v2 0/3] port: added frag_ipv6 and ras_ipv6 ports

2015-05-05 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Michal Jastrzebski > Sent: Thursday, April 30, 2015 1:03 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2 0/3] port: added frag_ipv6 and ras_ipv6 ports > > From: Maciej Gajdzica > > Added ipv6 versio

[dpdk-dev] [PATCH v3] kni: fix compilation issue in KNI vhost on kernel 3.19/4.0

2015-05-05 Thread Pablo de Lara
Due to commit c0371da6 in kernel 3.19, which removed msg_iov and msg_iovlen from struct msghdr, DPDK would not build. Also, functions memcpy_toiovecend and memcpy_fromiovecend were removed in commits ba7438ae and 57dd8a07, being substituted by copy_from_iter and copy_to_iter. This patch makes use

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-05 Thread Neil Horman
On Tue, May 05, 2015 at 04:43:08PM +, Wiles, Keith wrote: > > > Sent from my iPhone > > > On May 5, 2015, at 6:56 AM, Neil Horman wrote: > > > >> On Mon, May 04, 2015 at 10:25:00PM -0500, Jim Thompson wrote: > >> > >>> On May 4, 2015, at 10:12 PM, Wiles, Keith > >>> wrote: > >>> > >>>

[dpdk-dev] [PATCH v2 0/3] port: added ethdev_writer_nodrop and ring_writer_nodrop ports

2015-05-05 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Michal Jastrzebski > Sent: Thursday, April 30, 2015 12:58 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2 0/3] port: added ethdev_writer_nodrop and > ring_writer_nodrop ports > > From: Maciej Gajdzica

[dpdk-dev] Performance regression in DPDK 1.8/2.0

2015-05-05 Thread De Lara Guarch, Pablo
Hi Paul, > -Original Message- > From: Paul Emmerich [mailto:emmericp at net.in.tum.de] > Sent: Tuesday, April 28, 2015 12:48 PM > To: De Lara Guarch, Pablo > Cc: Pavel Odintsov; dev at dpdk.org > Subject: Re: [dpdk-dev] Performance regression in DPDK 1.8/2.0 > > Hi, > > > De Lara Guarch

[dpdk-dev] [PATCH] Implement memcmp using AVX/SSE instructio

2015-05-05 Thread Ravi Kerur
On Thu, Apr 23, 2015 at 3:26 PM, Ravi Kerur wrote: > > > On Thu, Apr 23, 2015 at 7:00 AM, Bruce Richardson < > bruce.richardson at intel.com> wrote: > >> On Thu, Apr 23, 2015 at 06:53:44AM -0700, Ravi Kerur wrote: >> > On Thu, Apr 23, 2015 at 2:23 AM, Ananyev, Konstantin < >> > konstantin.ananyev

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-05 Thread John W. Linville
On Tue, May 05, 2015 at 06:30:48PM +, Wiles, Keith wrote: > > Sent from my iPhone > > > On May 5, 2015, at 10:58 AM, John W. Linville > > wrote: > > > >> On Tue, May 05, 2015 at 04:43:08PM +, Wiles, Keith wrote: > >> > >> Please take a breath and relax as we all want the best for DPDK

[dpdk-dev] [PATCH v2] kni: fix compilation issue in KNI vhost on kernel 3.19/4.0

2015-05-05 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Pablo de Lara > Sent: Tuesday, May 05, 2015 1:35 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] kni: fix compilation issue in KNI vhost on > kernel 3.19/4.0 > > Due to commit c0371da6 in kernel 3.19

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-05 Thread John W. Linville
On Tue, May 05, 2015 at 04:43:08PM +, Wiles, Keith wrote: > Please take a breath and relax as we all want the best for DPDK. I cannot believe how rude, asinine, and condascending your attitude in this thread has been. If this is the future of the DPDK community, I'm surprised that anyone wo

[dpdk-dev] [PATCH v7 00/10] Interrupt mode PMD

2015-05-05 Thread Cunming Liang
v7 changes - decouple epoll event and intr operation - add condition check in the case intr vector is disabled - renaming some APIs v6 changes - split rte_intr_wait_rx_pkt into two APIs 'wait' and 'set'. - rewrite rte_intr_rx_wait/rte_intr_rx_set. - using vector number instead of queue_id as

[dpdk-dev] [PATCH] eal/bsdapp: fix compilation on FreeBSD

2015-05-05 Thread Bruce Richardson
Fixes: 6065355a "pci: make device id tables const" Following the above commit, compilation on FreeBSD with clang was broken, giving the error message: .../lib/librte_eal/bsdapp/eal/eal_pci.c:438:16: fatal error: assigning to 'struct rte_pci_id *' from 'const struct rte_pci_id *' discards qu

[dpdk-dev] [PATCH v7 10/10] l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switch

2015-05-05 Thread Cunming Liang
Demonstrate how to handle per rx queue interrupt in a NAPI-like implementation in usersapce. PDK polling thread mainly works in polling mode and switch to interrupt mode only if there is no any packet received in recent polls. Usersapce interrupt notification generally takes a lot more cycles than

[dpdk-dev] [PATCH v7 09/10] igb: enable rx queue interrupts for PF

2015-05-05 Thread Cunming Liang
The patch does below for igb PF: - Setup NIC to generate MSI-X interrupts - Set the IVAR register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v7 changes - add condition check when intr vector is not

[dpdk-dev] [PATCH v7 08/10] ixgbe: enable rx queue interrupts for both PF and VF

2015-05-05 Thread Cunming Liang
The patch does below things for ixgbe PF and VF: - Setup NIC to generate MSI-X interrupts - Set the IVAR register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Danny Zhou Signed-off-by: Yong Liu Signed-off-by: Cunming Liang --- v7 changes - ad

[dpdk-dev] [PATCH v7 07/10] ethdev: add rx intr enable, disable and ctl functions

2015-05-05 Thread Cunming Liang
The patch adds two dev_ops functions to enable and disable rx queue interrupts. In addtion, it adds rte_eth_dev_rx_intr_ctl/rx_intr_q to support per port or per queue rx intr event set. Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v7 changes - remove rx_intr_vec_get - add rx_int

[dpdk-dev] [PATCH v7 06/10] eal/linux: add interrupt vectors handling on VFIO

2015-05-05 Thread Cunming Liang
This patch does below: - Create VFIO eventfds for each interrupt vector - Assign per interrupt vector's eventfd to VFIO by ioctl Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v7 changes - cleanup unnecessary code change - split event and intr operation to other patches lib/lib

[dpdk-dev] [PATCH v7 05/10] eal/linux: fix comments typo on vfio msi

2015-05-05 Thread Cunming Liang
Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index 1090d7b..178a88e 1006

[dpdk-dev] [PATCH v7 04/10] eal/bsd: dummy for new intr definition

2015-05-05 Thread Cunming Liang
To make bsd compiling happy with new intr changes. Signed-off-by: Cunming Liang --- v7 changes - remove stub 'linux only' function from source file lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_eal/bsdapp/eal/in

[dpdk-dev] [PATCH v7 03/10] eal/linux: add API to set rx interrupt event monitor

2015-05-05 Thread Cunming Liang
The patch adds 'rte_intr_rx_ctl' to add or delete interrupt vector events monitor on specified epoll instance. Signed-off-by: Cunming Liang --- v7 changes - rename rte_intr_rx_set to rte_intr_rx_ctl. - rte_intr_rx_ctl uses rte_epoll_ctl to register epoll event instance. - the intr rx event in

[dpdk-dev] [PATCH v7 02/10] eal/linux: add rte_epoll_wait/ctl support

2015-05-05 Thread Cunming Liang
The patch adds 'rte_epoll_wait' and 'rte_epoll_ctl' for async event wakeup. It defines 'struct rte_epoll_event' as the event param. The 'op' uses the same enum as epoll_wait/ctl does. The epoll event support to carry a raw user data and to register a callback which is exectuted during wakeup. Sig

[dpdk-dev] [PATCH v7 01/10] eal/linux: add interrupt vectors support in intr_handle

2015-05-05 Thread Cunming Liang
The patch adds interrupt vectors support in rte_intr_handle. 'vec_en' is set when interrupt vectors are detected and associated event fds are set. Those event fds are stored in efds[]. 'intr_vec' is reserved for device driver to initialize the vector mapping table. When the event fds add to a spec

[dpdk-dev] From: Cunming Liang

2015-05-05 Thread Cunming Liang
v7 changes - decouple epoll event and intr operation - add condition check in the case intr vector is disabled - renaming some APIs v6 changes - split rte_intr_wait_rx_pkt into two APIs 'wait' and 'set'. - rewrite rte_intr_rx_wait/rte_intr_rx_set. - using vector number instead of queue_id as

[dpdk-dev] [PATCH v2] kni: fix compilation issue in KNI vhost on kernel 3.19/4.0

2015-05-05 Thread Pablo de Lara
Due to commit c0371da6 in kernel 3.19, which removed msg_iov and msg_iovlen from struct msghdr, DPDK would not build. Also, functions memcpy_toiovecend and memcpy_fromiovecend were removed in commits ba7438ae and 57dd8a07, being substituted by copy_from_iter and copy_to_iter. This patch makes use

[dpdk-dev] [PATCH 1/3] lib: set LDLIBS for each library

2015-05-05 Thread Olivier MATZ
Hi, On 05/05/2015 11:21 AM, Gonzalez Monroy, Sergio wrote: > On 04/05/2015 08:55, Olivier MATZ wrote: >> Hi Sergio, >> >> On 04/15/2015 11:30 AM, Sergio Gonzalez Monroy wrote: >>> This patch introduces a new LDLIBS variable to be set per library. >>> Its purpose is to especify the library's depend

[dpdk-dev] [PATCH v7 06/10] eal/linux: add interrupt vectors handling on VFIO

2015-05-05 Thread Stephen Hemminger
On Tue, 5 May 2015 13:39:42 +0800 Cunming Liang wrote: > diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c > b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c > index aea1fb1..387f54c 100644 > --- a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c > +++ b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c >

[dpdk-dev] [PATCH v7 08/10] ixgbe: enable rx queue interrupts for both PF and VF

2015-05-05 Thread Stephen Hemminger
On Tue, 5 May 2015 13:39:44 +0800 Cunming Liang wrote: > > + /* set max interrupt vfio request */ > + if (pci_dev->intr_handle.vec_en) { > + pci_dev->intr_handle.max_intr = hw->mac.max_rx_queues + > + IXGBEVF_MAX_OTHER_INTR; > + pci_dev->intr

[dpdk-dev] [PATCH v7 03/10] eal/linux: add API to set rx interrupt event monitor

2015-05-05 Thread Stephen Hemminger
On Tue, 5 May 2015 13:39:39 +0800 Cunming Liang wrote: > static void > +eal_intr_proc_rxtx_intr(int fd, struct rte_intr_handle *intr_handle) > +{ Should be const intr_handle is not modified

[dpdk-dev] [PATCH] kni: fix compilation issue on kernel 3.19

2015-05-05 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Pablo de Lara > Sent: Monday, May 04, 2015 10:46 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] kni: fix compilation issue on kernel 3.19 > > Due to commit c0371da6 in kernel 3.19, which removed msg_io

[dpdk-dev] [PATCH] scripts: fix relpath.sh output when build dir is a symlink

2015-05-05 Thread Simon Kågström
On 2015-05-05 11:00, Olivier MATZ wrote: > On 05/05/2015 11:00 AM, Olivier Matz wrote: >> The script relpath.sh return the relative path of the first directory >> from the second directory. It is used to generate relative symlinks, >> which can be useful if the build directory is embedded in the dp

[dpdk-dev] Issues with rte_hash_crc.h when compiling with C++

2015-05-05 Thread Pavel Odintsov
I fixed this issue with very dirty hacks. I commented mentioned here lines in file /usr/src/dpdk-2.0.0/x86_64-native-linuxapp-gcc/include/generic/rte_cpuflags.h: //enum rte_cpu_flag_t; //enum cpu_register_t; // static const struct feature_entry cpu_feature_table[]; //static inline int //rte_cpu_g

[dpdk-dev] [PATCH RFC 1/6] mbuf: update mbuf structure for QinQ support

2015-05-05 Thread Ananyev, Konstantin
Hi Helin, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Helin Zhang > Sent: Tuesday, May 05, 2015 3:32 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH RFC 1/6] mbuf: update mbuf structure for QinQ > support > > To support QinQ, 'vlan_tci' should be

[dpdk-dev] [PATCH] scripts: fix relpath.sh output when build dir is a symlink

2015-05-05 Thread Olivier MATZ
Hi Simon, On 05/05/2015 11:00 AM, Olivier Matz wrote: > The script relpath.sh return the relative path of the first directory > from the second directory. It is used to generate relative symlinks, > which can be useful if the build directory is embedded in the dpdk > directory: the whole dpdk can

[dpdk-dev] [PATCH] scripts: fix relpath.sh output when build dir is a symlink

2015-05-05 Thread Olivier Matz
The script relpath.sh return the relative path of the first directory from the second directory. It is used to generate relative symlinks, which can be useful if the build directory is embedded in the dpdk directory: the whole dpdk can be moved without breaking the links, which is helpful for an in

[dpdk-dev] Issues with rte_hash_crc.h when compiling with C++

2015-05-05 Thread Pavel Odintsov
Hello! Could anybody help me with this issue? :( In this file widely used enum forward declarations which completely incompatible with C++ and need some rewrite. On Wed, Apr 29, 2015 at 3:17 PM, Pavel Odintsov wrote: > Hello! > > I have C++ application compiles and works nice. But when I includ

[dpdk-dev] [PATCH RFC 6/6] app/testpmd: support of QinQ stripping and insertion

2015-05-05 Thread Helin Zhang
As QinQ stripping and insertion have been supported, test commands should be updated. In detail, "tx_vlan set vlan_id (port_id)" will be changed to "tx_vlan set (port_id) vlan_id0[, vlan_id1]" to support both single and double VLAN tag insertion; also VLAN tags stripped from received packets will b

[dpdk-dev] [PATCH RFC 5/6] i40e: update of offload capability flags

2015-05-05 Thread Helin Zhang
As hardware supports QinQ stripping and insertion, the offload flags of them should be added in both PF and VF sides. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_ethdev.c| 2 ++ lib/librte_pmd_i40e/i40e_ethdev_vf.c | 13 + 2 files changed, 15 insertions(+) diff --gi

[dpdk-dev] [PATCH RFC 4/6] ethdev: add QinQ offload capability flags

2015-05-05 Thread Helin Zhang
As offload capabilities of QinQ stripping and insertion are supported by some of the supported hardware, the offload capability flags should be added accordingly. Signed-off-by: Helin Zhang --- lib/librte_ether/rte_ethdev.h | 28 +++- 1 file changed, 15 insertions(+), 13

[dpdk-dev] [PATCH RFC 3/6] i40e: support of QinQ stripping/insertion in RX/TX

2015-05-05 Thread Helin Zhang
To support QinQ stripping and insertion, QinQ L2 tags should be extracted from RX descriptors and stored in mbuf for RX stripping, and should be read from mbuf and set correspondingly in TX descriptors. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_rxtx.c | 83 +

[dpdk-dev] [PATCH RFC 2/6] i40e: reconfigure the hardware to support QinQ stripping/insertion

2015-05-05 Thread Helin Zhang
Reconfiguration is needed to support QinQ stripping and insertion, as hardware does not support them by default. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_ethdev.c | 48 +++ 1 file changed, 48 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e_

[dpdk-dev] [PATCH RFC 1/6] mbuf: update mbuf structure for QinQ support

2015-05-05 Thread Helin Zhang
To support QinQ, 'vlan_tci' should be replaced by 'vlan_tci0' and 'vlan_tci1'. Also new offload flags of 'PKT_RX_QINQ_PKT' and 'PKT_TX_QINQ_PKT' should be added. Signed-off-by: Helin Zhang --- app/test-pmd/flowgen.c| 2 +- app/test-pmd/macfwd.c | 2 +- app/test-

[dpdk-dev] [PATCH RFC 0/6] support of QinQ stripping and insertion of i40e

2015-05-05 Thread Helin Zhang
As i40e hardware can be reconfigured to support QinQ stripping and insertion, this patch set is to enable that with the update of 'struct rte_mbuf', and testpmd commands. Note that the Vector-PMD will be updated soon later. Helin Zhang (6): mbuf: update mbuf structure for QinQ support i40e: re

[dpdk-dev] [PATCH 1/3] lib: set LDLIBS for each library

2015-05-05 Thread Gonzalez Monroy, Sergio
On 04/05/2015 08:55, Olivier MATZ wrote: > Hi Sergio, > > On 04/15/2015 11:30 AM, Sergio Gonzalez Monroy wrote: >> This patch introduces a new LDLIBS variable to be set per library. >> Its purpose is to especify the library's dependent libraries to >> be explicitly linked against. >> >> Given the c

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-05 Thread Neil Horman
On Mon, May 04, 2015 at 10:25:00PM -0500, Jim Thompson wrote: > > > On May 4, 2015, at 10:12 PM, Wiles, Keith wrote: > > > > > > > > On 5/4/15, 10:48 AM, "Matthew Hall" wrote: > > > >> On Mon, May 04, 2015 at 12:43:48PM +, Qiu, Michael wrote: > >>> What mail client do you use? I think m

[dpdk-dev] [PATCH v6 1/2] Simplify the ifdefs in rte.app.mk.

2015-05-05 Thread Olivier MATZ
Hi Keith, On 05/04/2015 06:50 PM, Wiles, Keith wrote: > > > Sent from my iPhone > >> On May 4, 2015, at 8:27 AM, Olivier MATZ wrote: >> >> >> >>> On 05/04/2015 04:36 PM, Wiles, Keith wrote: >>> >>> On 5/4/15, 2:18 AM, "Olivier MATZ" wrote: Hi Keith, > On 05/01/2015 04:22

[dpdk-dev] [PATCH v2] Add toeplitz hash algorithm used by RSS

2015-05-05 Thread Vladimir Medvedkin
Software implementation of the Toeplitz hash function used by RSS. Can be used either for packet distribution on single queue NIC or for simulating of RSS computation on specific NIC (for example after GRE header decapsulating). v2 changes - Add ipv6 support - Various style fixes Signed-off-by: V

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-05 Thread Wiles, Keith
On 5/4/15, 10:48 AM, "Matthew Hall" wrote: >On Mon, May 04, 2015 at 12:43:48PM +, Qiu, Michael wrote: >> What mail client do you use? I think mail client supporting thread mode >> is important for patch review. > >Like many UNIX people, I use mutt. > >My concern is that, if we're making th

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-05 Thread Wiles, Keith
Hi Marc On 5/4/15, 2:08 PM, "Marc Sune" wrote: > > >On 02/05/15 15:59, Wiles, Keith wrote: >> >> On 5/2/15, 6:40 AM, "Neil Horman" wrote: >> >>> On Fri, May 01, 2015 at 01:36:58PM -0700, Matthew Hall wrote: On Fri, May 01, 2015 at 10:59:32PM +0300, Aaro Koskinen wrote: > Projects like

[dpdk-dev] GitHub sandbox for the DPDK community

2015-05-05 Thread Wiles, Keith
On 5/4/15, 1:34 PM, "Marc Sune" wrote: > > >On 01/05/15 20:17, Wiles, Keith wrote: >> >> On 5/1/15, 1:09 PM, "Stephen Hemminger" >>wrote: >> >>> On Fri, 1 May 2015 15:56:32 + >>> "Wiles, Keith" wrote: >>> Hi Everyone, I believe the DPDK community would benefit from moving t