[dpdk-dev] [PATCH v2 06/18] net/ixgbe: restore TCP SYN filter

2016-12-29 Thread Wei Zhao
Add support for restoring TCP SYN filter in SW. Signed-off-by: Wenzhuo Lu Signed-off-by: Wei Zhao --- v2: --change git log expression --- drivers/net/ixgbe/ixgbe_ethdev.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixg

[dpdk-dev] [PATCH v2 04/18] net/ixgbe: restore n-tuple filter

2016-12-29 Thread Wei Zhao
Add support for restoring n-tuple filter in SW. Signed-off-by: Wenzhuo Lu Signed-off-by: Wei Zhao --- drivers/net/ixgbe/ixgbe_ethdev.c | 131 +-- 1 file changed, 83 insertions(+), 48 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ix

[dpdk-dev] [PATCH v2 01/18] net/ixgbe: store SYN filter

2016-12-29 Thread Wei Zhao
Add support for storing SYN filter in SW. Signed-off-by: Wenzhuo Lu Signed-off-by: Wei Zhao --- v2: --synqf assignment location change --- drivers/net/ixgbe/ixgbe_ethdev.c | 14 +++--- drivers/net/ixgbe/ixgbe_ethdev.h | 2 ++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --g

[dpdk-dev] [PATCH v2 03/18] net/ixgbe: store L2 tunnel filter

2016-12-29 Thread Wei Zhao
Add support for storing L2 tunnel filter in SW. Signed-off-by: Wenzhuo Lu Signed-off-by: Wei Zhao --- v2: --add a L2 tunnel initialization function in device start process --- drivers/net/ixgbe/ixgbe_ethdev.c | 157 +++ drivers/net/ixgbe/ixgbe_ethdev.h | 24

[dpdk-dev] [PATCH v2 02/18] net/ixgbe: store flow director filter

2016-12-29 Thread Wei Zhao
Add support for storing flow director filter in SW. Signed-off-by: Wenzhuo Lu Signed-off-by: Wei Zhao --- v2: --add a fdir initialization function in device start process --- drivers/net/ixgbe/ixgbe_ethdev.c | 55 drivers/net/ixgbe/ixgbe_ethdev.h | 19 ++- drivers/ne

[dpdk-dev] [PATCH v2 00/18] net/ixgbe: Consistent filter API

2016-12-29 Thread Wei Zhao
The patches mainly finish following functions: 1) Store and restore all kinds of filters. 2) Parse all kinds of filters. 3) Add flow validate function. 4) Add flow create function. 5) Add flow destroy function. 6) Add flow flush function. v2 changes: fix git log error. Modify some function call

Re: [dpdk-dev] [PATCH v2 8/9] examples/l3fwd: add parse-ptype option

2016-12-29 Thread Tan, Jianfeng
Hi, > -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Friday, December 30, 2016 2:40 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; step...@networkplumber.org > Subject: Re: [PATCH v2 8/9] examples/l3fwd: add parse-ptype option > > On Thu, Dec 29, 2016 at 0

Re: [dpdk-dev] [PATCH v2 9/9] examples/l3fwd-power: fix not stop and close device

2016-12-29 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Friday, December 30, 2016 2:45 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; step...@networkplumber.org > Subject: Re: [PATCH v2 9/9] examples/l3fwd-power: fix not stop and close > device > > On Thu, Dec 29

Re: [dpdk-dev] [PATCH v2 0/9] rxq interrupt mode for virtio PMD

2016-12-29 Thread Yuanhan Liu
On Thu, Dec 29, 2016 at 07:30:34AM +, Jianfeng Tan wrote: > v2: > - Add PCI queue/irq config ops. > - Move rxq interrupt settings before sending DRIVER OK. > > Historically, virtio PMD can only be binded to igb_uio or > uio_pci_generic, and not for vfio-pci. Besides, quote from > http://dp

Re: [dpdk-dev] [PATCH v2 9/9] examples/l3fwd-power: fix not stop and close device

2016-12-29 Thread Yuanhan Liu
On Thu, Dec 29, 2016 at 07:30:43AM +, Jianfeng Tan wrote: > As it gets killed, in SIGINT signal handler, device is not stopped > and closed. In virtio's case, vector assignment in the KVM is not > deassigned. What wrong could happen then? > This patch will invoke dev_stop() and dev_close() in

Re: [dpdk-dev] [PATCH v2 8/9] examples/l3fwd: add parse-ptype option

2016-12-29 Thread Yuanhan Liu
On Thu, Dec 29, 2016 at 07:30:42AM +, Jianfeng Tan wrote: > To support those devices that do not provide packet type info when > receiving packets, add a new option, --parse-ptype, to analyze > packet type in the Rx callback. I think this would be needed for all PMD drivers don't have the PTYP

Re: [dpdk-dev] [PATCH v2 7/9] net/virtio: unmapping queue/irq when close device

2016-12-29 Thread Yuanhan Liu
On Thu, Dec 29, 2016 at 07:30:41AM +, Jianfeng Tan wrote: > When closing virtio devices, close eventfds, free the struct to > store queue/irq mapping. > > Signed-off-by: Jianfeng Tan > --- > drivers/net/virtio/virtio_ethdev.c | 27 ++- > 1 file changed, 26 insertions(

Re: [dpdk-dev] [PATCH v2 5/9] net/virtio: setup rxq interrupts

2016-12-29 Thread Yuanhan Liu
On Thu, Dec 29, 2016 at 07:30:39AM +, Jianfeng Tan wrote: > This patch mainly allocates structure to store queue/irq mapping, > and configure queue/irq mapping down through PCI ops. It also creates > eventfds for each Rx queue and tell the kernel about the eventfd/intr > binding. > > Mostly im

Re: [dpdk-dev] [PATCH v2 4/9] net/virtio: add Rx queue intr enable/disable functions

2016-12-29 Thread Yuanhan Liu
On Thu, Dec 29, 2016 at 07:30:38AM +, Jianfeng Tan wrote: > /* > * Two types of mbuf to be cleaned: > * 1) mbuf that has been consumed by backend but not used by virtio. > diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h > index f0bb089..62be136 100644 > --- a/d

Re: [dpdk-dev] [PATCH v2 3/9] net/virtio: add PCI ops for queue/irq binding

2016-12-29 Thread Yuanhan Liu
On Thu, Dec 29, 2016 at 07:30:37AM +, Jianfeng Tan wrote: > Add handler in virtio_pci_ops to set queue/irq bind. > > Signed-off-by: Jianfeng Tan > --- > drivers/net/virtio/virtio_pci.c | 29 + > drivers/net/virtio/virtio_pci.h | 5 + > 2 files changed, 34 ins

Re: [dpdk-dev] [PATCH v2 0/9] rxq interrupt mode for virtio PMD

2016-12-29 Thread Yuanhan Liu
On Thu, Dec 29, 2016 at 07:42:51AM +, Tan, Jianfeng wrote: > Forget to mention a key part, when we bind virtio to vfio-pci driver in the > VM, we need to insert vfio kernel module like this: > > $ modprobe vfio enable_unsafe_noiommu_mode=1 > $ modprobe vfio-pci Such info should be documated

[dpdk-dev] [PATCH v4 16/17] net/i40e: flush ethertype filters

2016-12-29 Thread Beilei Xing
This patch adds i40e_ethertype_filter_flush function to flush all ethertype filters, including filters in SW and HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/n

[dpdk-dev] [PATCH v4 15/17] net/i40e: add flow flush function

2016-12-29 Thread Beilei Xing
This patch adds i40e_flow_flush function to flush all filters for users. And flow director flush function is involved first. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.h | 1 + drivers/net/i40e/i40e_fdir.c | 4 +--- drivers/net/i40e/i40e_flow.c | 51 +++

[dpdk-dev] [PATCH v4 17/17] net/i40e: flush tunnel filters

2016-12-29 Thread Beilei Xing
This patch adds i40e_tunnel_filter_flush function to flush all tunnel filters, including filters in SW and HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/dri

[dpdk-dev] [PATCH v4 12/17] net/i40e: destroy ethertype filter

2016-12-29 Thread Beilei Xing
This patch adds i40e_dev_destroy_ethertype_filter function to destroy a ethertype filter for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/n

[dpdk-dev] [PATCH v4 11/17] net/i40e: add flow destroy function

2016-12-29 Thread Beilei Xing
This patch adds i40e_flow_destroy function to destroy a flow for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index 67ea83d..cd

[dpdk-dev] [PATCH v4 14/17] net/i40e: destroy flow directory filter

2016-12-29 Thread Beilei Xing
This patch supports destroying a flow directory filter for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index 9fc311d..e56e8b8 100644 --- a/drivers/net/i40e/i

[dpdk-dev] [PATCH v4 13/17] net/i40e: destroy tunnel filter

2016-12-29 Thread Beilei Xing
This patch adds i40e_dev_destroy_tunnel_filter function to destroy a tunnel filter for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e

[dpdk-dev] [PATCH v4 10/17] net/i40e: add flow create function

2016-12-29 Thread Beilei Xing
This patch adds i40e_flow_create function to create a rule. It will check if a flow matches ethertype filter or flow director filter or tunnel filter, if the flow matches some kind of filter, then set the filter to HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 9 +++-- dri

[dpdk-dev] [PATCH v4 09/17] net/i40e: parse tunnel filter

2016-12-29 Thread Beilei Xing
This patch adds i40e_parse_tunnel_filter to check if a rule is a tunnel rule according to items of the flow pattern, and the function also gets the tunnel info. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 394 +++ 1 file changed, 394 inse

[dpdk-dev] [PATCH v4 08/17] net/i40e: parse flow director filter

2016-12-29 Thread Beilei Xing
This patch adds i40e_parse_fdir_filter to check if a rule is a flow director rule according to the flow pattern, and the function also gets the flow director info. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 56 +--- drivers/net/i40e/i40e_ethdev.h | 55 drivers/net/i40

[dpdk-dev] [PATCH v4 07/17] net/i40e: add flow validate function

2016-12-29 Thread Beilei Xing
This patch adds i40e_flow_validation function to check if a flow is valid according to the flow pattern. i40e_parse_ethertype_filter is added first, it also gets the ethertype info. i40e_flow.c is added to handle all generic filter events. Signed-off-by: Beilei Xing --- drivers/net/i40e/Makefile

[dpdk-dev] [PATCH v4 03/17] net/i40e: store flow director filter

2016-12-29 Thread Beilei Xing
Currently there's no flow director filter stored in SW. This patch stores flow director filters in SW with cuckoo hash, also adds protection if a flow director filter has been added. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 48 +++ drivers/net/i40e/i40e_et

[dpdk-dev] [PATCH v4 02/17] net/i40e: store tunnel filter

2016-12-29 Thread Beilei Xing
Currently there's no tunnel filter stored in SW. This patch stores tunnel filter in SW with cuckoo hash, also adds protection if a tunnel filter has been added. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 169 - drivers/net/i40e/i40e_et

[dpdk-dev] [PATCH v4 06/17] net/i40e: restore flow director filter

2016-12-29 Thread Beilei Xing
Add support of restoring flow director filter. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 1 + drivers/net/i40e/i40e_ethdev.h | 1 + drivers/net/i40e/i40e_fdir.c | 31 +++ 3 files changed, 33 insertions(+) diff --git a/drivers/net/i40e/i40e_e

[dpdk-dev] [PATCH v4 04/17] net/i40e: restore ethertype filter

2016-12-29 Thread Beilei Xing
Add support of restoring ethertype filter in case filter dropped accidentally, as all filters need to be added and removed by user obviously for generic filter API. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 44 ++ 1 file changed, 44 i

[dpdk-dev] [PATCH v4 05/17] net/i40e: restore tunnel filter

2016-12-29 Thread Beilei Xing
Add support of restoring tunnel filter. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 189d110..67e1b37 100644 --- a/drivers/net/i40e/i4

[dpdk-dev] [PATCH v4 01/17] net/i40e: store ethertype filter

2016-12-29 Thread Beilei Xing
Currently there's no ethertype filter stored in SW. This patch stores ethertype filter with cuckoo hash in SW, also adds protection if an ethertype filter has been added. Signed-off-by: Beilei Xing --- drivers/net/i40e/Makefile | 1 + drivers/net/i40e/i40e_ethdev.c | 166 +

[dpdk-dev] [PATCH v4 00/17] net/i40e: consistent filter API

2016-12-29 Thread Beilei Xing
The patch set depends on Adrien's Generic flow API(rte_flow). The patches mainly finish following functions: 1) Store and restore all kinds of filters. 2) Parse all kinds of filters. 3) Add flow validate function. 4) Add flow create function. 5) Add flow destroy function. 6) Add flow flush functio

Re: [dpdk-dev] [PATCH 2/2] vhost: start vhost servers once

2016-12-29 Thread Yuanhan Liu
On Thu, Dec 29, 2016 at 10:58:11AM -0500, Charles (Chas) Williams wrote: > On 12/29/2016 03:52 AM, Yuanhan Liu wrote: > >On Wed, Dec 28, 2016 at 04:10:52PM -0500, Charles (Chas) Williams wrote: > >>Start a vhost server once during devinit instead of during device start > >>and stop. Some vhost cli

Re: [dpdk-dev] Running DPDK as an unprivileged user

2016-12-29 Thread Stephen Hemminger
On Thu, 29 Dec 2016 20:41:21 + "Walker, Benjamin" wrote: > The first open question I have is whether DPDK should allow > uio at all on recent (4.x) kernels. My current understanding > is that there is no way to pin memory and hugepages can now > be moved around, so uio would be unsafe. What d

[dpdk-dev] Running DPDK as an unprivileged user

2016-12-29 Thread Walker, Benjamin
Hi all, I've been digging in to what it would take to run DPDK as an unprivileged user and I have some findings that I thought were worthy of discussion. The assumptions here are that I'm using a very recent Linux kernel (4.8.15 to be specific) and I'm using vfio with my IOMMU enabled. I'm only in

[dpdk-dev] [PATCH v2 5/5] test: add sgl unit tests for crypto devices

2016-12-29 Thread Tomasz Kulasek
This patch provides unit tests for set of cipher/hash combinations covering currently implemented crypto PMD's and allowing to verify scatter gather support. Signed-off-by: Tomasz Kulasek --- app/test/test_cryptodev.c | 589 +++- app/test/test_cryptodev.

[dpdk-dev] [PATCH v2 4/5] crypto: add sgl support in openssl PMD

2016-12-29 Thread Tomasz Kulasek
Previous implementation uses EVP_EncryptUpdate() on whole source buffer limiting its usage to the contiguous buffers. This implementation calls EVP_EncryptUpdate() on each segment for cipher operations in continous mode, before finalization allowing to provide chained mbuf as a source. However, l

[dpdk-dev] [PATCH v2 3/5] crypto: add sgl support in sw PMDs

2016-12-29 Thread Tomasz Kulasek
This patch introduces RTE_CRYPTODEV_FF_MBUF_SCATTER_GATHER feature flag informing that selected crypto device supports segmented mbufs natively and doesn't need to be coalesced before crypto operation. While using segmented buffers in crypto devices may have unpredictable results, for PMDs which d

[dpdk-dev] [PATCH v2 2/5] test: add rte_pktmbuf_linearize unit tests

2016-12-29 Thread Tomasz Kulasek
This patch tests rte_pktmbuf_coalesce functionality: 1) Creates banch of segmented mbufs with different size and number of segments. 2) Generates pkt_len bytes of random data. 3) Fills noncontigouos mbuf with randomly generated data. 4) Uses rte_pktmbuf_linearize to coalesce segmented buff

[dpdk-dev] [PATCH v2 1/5] rte_mbuf: add rte_pktmbuf_linearize

2016-12-29 Thread Tomasz Kulasek
This patch adds function rte_pktmbuf_linearize to let crypto PMD coalesce chained mbuf before crypto operation and extend their capabilities to support segmented mbufs when device cannot handle them natively. Signed-off-by: Tomasz Kulasek --- lib/librte_mbuf/rte_mbuf.h | 56 ++

[dpdk-dev] [PATCH v2 0/5] Chained Mbufs support in SW PMDs

2016-12-29 Thread Tomasz Kulasek
This patch set adds support of scattered-gather list for SW PMDs. As of now, application needs to reserve continuous block of memory for mbufs which is not always the case. Hence needed to support chaining of mbufs which are smaller in size but can be used if chained. Above work involves: a) C

[dpdk-dev] [PATCH v3 17/17] net/i40e: flush tunnel filters

2016-12-29 Thread Beilei Xing
This patch adds i40e_tunnel_filter_flush function to flush all tunnel filters, including filters in SW and HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/dri

[dpdk-dev] [PATCH v3 15/17] net/i40e: add flow flush function

2016-12-29 Thread Beilei Xing
This patch adds i40e_flow_flush function to flush all filters for users. And flow director flush function is involved first. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.h | 1 + drivers/net/i40e/i40e_fdir.c | 4 +--- drivers/net/i40e/i40e_flow.c | 51 +++

[dpdk-dev] [PATCH v3 11/17] net/i40e: add flow destroy function

2016-12-29 Thread Beilei Xing
This patch adds i40e_flow_destroy function to destroy a flow for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index 8db8e0f..a6

[dpdk-dev] [PATCH v3 16/17] net/i40e: flush ethertype filters

2016-12-29 Thread Beilei Xing
This patch adds i40e_ethertype_filter_flush function to flush all ethertype filters, including filters in SW and HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/n

[dpdk-dev] [PATCH v3 12/17] net/i40e: destroy ethertype filter

2016-12-29 Thread Beilei Xing
This patch adds i40e_dev_destroy_ethertype_filter function to destroy a ethertype filter for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/n

[dpdk-dev] [PATCH v3 14/17] net/i40e: destroy flow directory filter

2016-12-29 Thread Beilei Xing
This patch supports destroying a flow directory filter for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index e442c5c..605ee70 100644 --- a/drivers/net/i40e/i

[dpdk-dev] [PATCH v3 08/17] net/i40e: parse flow director filter

2016-12-29 Thread Beilei Xing
This patch adds i40e_parse_fdir_filter to check if a rule is a flow director rule according to the flow pattern, and the function also gets the flow director info. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 56 +--- drivers/net/i40e/i40e_ethdev.h | 55 drivers/net/i40

[dpdk-dev] [PATCH v3 13/17] net/i40e: destroy tunnel filter

2016-12-29 Thread Beilei Xing
This patch adds i40e_dev_destroy_tunnel_filter function to destroy a tunnel filter for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e

[dpdk-dev] [PATCH v3 07/17] net/i40e: add flow validate function

2016-12-29 Thread Beilei Xing
This patch adds i40e_flow_validation function to check if a flow is valid according to the flow pattern. i40e_parse_ethertype_filter is added first, it also gets the ethertype info. i40e_flow.c is added to handle all generic filter events. Signed-off-by: Beilei Xing --- drivers/net/i40e/Makefile

[dpdk-dev] [PATCH v3 10/17] net/i40e: add flow create function

2016-12-29 Thread Beilei Xing
This patch adds i40e_flow_create function to create a rule. It will check if a flow matches ethertype filter or flow director filter or tunnel filter, if the flow matches some kind of filter, then set the filter to HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 9 +++-- dri

[dpdk-dev] [PATCH v3 09/17] net/i40e: parse tunnel filter

2016-12-29 Thread Beilei Xing
This patch adds i40e_parse_tunnel_filter to check if a rule is a tunnel rule according to items of the flow pattern, and the function also gets the tunnel info. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 394 +++ 1 file changed, 394 inse

[dpdk-dev] [PATCH v3 06/17] net/i40e: restore flow director filter

2016-12-29 Thread Beilei Xing
Add support of restoring flow director filter. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 1 + drivers/net/i40e/i40e_ethdev.h | 1 + drivers/net/i40e/i40e_fdir.c | 28 3 files changed, 30 insertions(+) diff --git a/drivers/net/i40e/i40e_ethd

[dpdk-dev] [PATCH v3 05/17] net/i40e: restore tunnel filter

2016-12-29 Thread Beilei Xing
Add support of restoring tunnel filter. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 6cd8c06..0d53c4e 100644 --- a/drivers/net/i40e/i4

[dpdk-dev] [PATCH v3 04/17] net/i40e: restore ethertype filter

2016-12-29 Thread Beilei Xing
Add support of restoring ethertype filter in case filter dropped accidentally, as all filters need to be added and removed by user obviously for generic filter API. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 44 ++ 1 file changed, 44 i

[dpdk-dev] [PATCH v3 01/17] net/i40e: store ethertype filter

2016-12-29 Thread Beilei Xing
Currently there's no ethertype filter stored in SW. This patch stores ethertype filter with cuckoo hash in SW, also adds protection if an ethertype filter has been added. Signed-off-by: Beilei Xing --- drivers/net/i40e/Makefile | 1 + drivers/net/i40e/i40e_ethdev.c | 166 +

[dpdk-dev] [PATCH v3 02/17] net/i40e: store tunnel filter

2016-12-29 Thread Beilei Xing
Currently there's no tunnel filter stored in SW. This patch stores tunnel filter in SW with cuckoo hash, also adds protection if a tunnel filter has been added. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 169 - drivers/net/i40e/i40e_et

[dpdk-dev] [PATCH v3 03/17] net/i40e: store flow director filter

2016-12-29 Thread Beilei Xing
Currently there's no flow director filter stored in SW. This patch stores flow director filters in SW with cuckoo hash, also adds protection if a flow director filter has been added. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 48 +++ drivers/net/i40e/i40e_et

[dpdk-dev] [PATCH v3 00/17] net/i40e: consistent filter API

2016-12-29 Thread Beilei Xing
All pathes depend on Adrien's Generic flow API(rte_flow). The patches mainly finish following functions: 1) Store and restore all kinds of filters. 2) Parse all kinds of filters. 3) Add flow validate function. 4) Add flow create function. 5) Add flow destroy function. 6) Add flow flush function.

Re: [dpdk-dev] [PATCH 2/2] vhost: start vhost servers once

2016-12-29 Thread Charles (Chas) Williams
On 12/29/2016 03:52 AM, Yuanhan Liu wrote: On Wed, Dec 28, 2016 at 04:10:52PM -0500, Charles (Chas) Williams wrote: Start a vhost server once during devinit instead of during device start and stop. Some vhost clients, QEMU, don't re-attaching to sockets when the vhost server is stopped and late

Re: [dpdk-dev] [PATCH 1/4] rte_mbuf: add rte_pktmbuf_coalesce

2016-12-29 Thread Kulasek, TomaszX
Hi Olivier, > -Original Message- > From: Olivier Matz [mailto:olivier.m...@6wind.com] > Sent: Friday, December 16, 2016 11:06 > To: Kulasek, TomaszX > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 1/4] rte_mbuf: add rte_pktmbuf_coalesce > > Hi Tomasz, > > On Fri, 2 Dec 2016 18:07:4

Re: [dpdk-dev] [PATCH 1/2] vhost: reference count fix for nb_started_ports

2016-12-29 Thread Charles (Chas) Williams
On 12/29/2016 03:51 AM, Yuanhan Liu wrote: On Wed, Dec 28, 2016 at 04:10:51PM -0500, Charles (Chas) Williams wrote: From: Wen Chiu Only increment and decrement nb_started_ports on the first and last device start and stop. Otherwise, nb_started_ports can become negative if a device is stopped

[dpdk-dev] [PATCH v5 4/6] net/mlx5: support VXLAN flow item

2016-12-29 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 78 1 file changed, 72 insertions(+), 6 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 8f2f4d5..093c140 100644

[dpdk-dev] [PATCH v5 6/6] net/mlx5: extend IPv4 flow item

2016-12-29 Thread Nelio Laranjeiro
This commits adds: - Type of service - Next protocol ID Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 40 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/driver

[dpdk-dev] [PATCH v5 5/6] net/mlx5: support mark flow action

2016-12-29 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 78 drivers/net/mlx5/mlx5_prm.h | 70 ++- drivers/net/mlx5/mlx5_rxtx.c | 12 ++- drivers/net/mlx5/mlx5_rxtx.h | 3 +

[dpdk-dev] [PATCH v5 3/6] net/mlx5: support VLAN flow item

2016-12-29 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 62 +++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 4f6696e..8f2f4d5 100644 -

[dpdk-dev] [PATCH v5 2/6] net/mlx5: support basic flow items and actions

2016-12-29 Thread Nelio Laranjeiro
Introduce initial software for rte_flow rules. VLAN, VXLAN are still not supported. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5.h | 3 + drivers/net/mlx5/mlx5_flow.c| 954 ++-- drivers/net/mlx5/mlx5_trig

[dpdk-dev] [PATCH v5 1/6] net/mlx5: add preliminary flow API support

2016-12-29 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/Makefile| 1 + drivers/net/mlx5/mlx5.h | 16 ++ drivers/net/mlx5/mlx5_fdir.c | 15 ++ drivers/net/mlx5/mlx5_flow.c | 124 +++ 4 files changed, 156 insertio

[dpdk-dev] [PATCH v5 0/6] net/mlx5: support flow API

2016-12-29 Thread Nelio Laranjeiro
Changes in v5: - Fix masking when only spec is present in item structure. - Fix first element of flow items array. Changes in v4: - Simplify flow parsing by using a graph. - Add VXLAN flow item. - Add mark flow action. - Extend IPv4 filter item (Type of service, Next Protocol ID). Changes

Re: [dpdk-dev] [PATCH v2 2/3] crypto/aesni_gcm: fix iv size in PMD capabilities

2016-12-29 Thread Azarewicz, PiotrX T
> Subject: [dpdk-dev] [PATCH v2 2/3] crypto/aesni_gcm: fix iv size in PMD > capabilities > > This patch sets iv size in aesni gcm PMD to 12 bytes to be conformant with > nist SP800-38D. > > Fixes: eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto > operations") > > Signed-off-by: Arek Kusz

Re: [dpdk-dev] [PATCH v2 1/3] crypto/aesni_gcm: fix J0 padding bytes for GCM

2016-12-29 Thread Azarewicz, PiotrX T
Hi Arek, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Arek Kusztal > Sent: Friday, December 23, 2016 9:25 AM > To: dev@dpdk.org > Cc: Trahe, Fiona ; De Lara Guarch, Pablo > ; Griffin, John ; > Jain, Deepak K ; Doherty, Declan > ; Kusztal, ArkadiuszX > > Subj

Re: [dpdk-dev] [PATCH v2 3/7] net/virtio_user: move vhost user specific code

2016-12-29 Thread Tan, Jianfeng
Hi Yuanhan, On 12/26/2016 3:57 PM, Yuanhan Liu wrote: On Mon, Dec 26, 2016 at 06:58:58AM +, Tan, Jianfeng wrote: -Original Message- From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] Sent: Monday, December 26, 2016 2:28 PM To: Tan, Jianfeng Cc: dev@dpdk.org; Yigit, Ferruh; Li

Re: [dpdk-dev] [PATCH 2/2] vhost: start vhost servers once

2016-12-29 Thread Yuanhan Liu
On Wed, Dec 28, 2016 at 04:10:52PM -0500, Charles (Chas) Williams wrote: > Start a vhost server once during devinit instead of during device start > and stop. Some vhost clients, QEMU, don't re-attaching to sockets when > the vhost server is stopped and later started. Preserve existing behavior >

Re: [dpdk-dev] [PATCH 1/2] vhost: reference count fix for nb_started_ports

2016-12-29 Thread Yuanhan Liu
On Wed, Dec 28, 2016 at 04:10:51PM -0500, Charles (Chas) Williams wrote: > From: Wen Chiu > > Only increment and decrement nb_started_ports on the first and last > device start and stop. Otherwise, nb_started_ports can become negative > if a device is stopped multiple times. How could you be ab