Re: [dpdk-dev] [PATCH v4 0/7] new mlx4 datapath bypassing ibverbs

2017-10-05 Thread Adrien Mazarguil
phir for merging both v3's. Ferruh, v4 supersedes all prior revisions (Moti's v1, Matan's v2, my own v3 and Ophir's v3-bis, I can't update patchwork for all of them). For the entire series: Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH v1 0/7] Flow API helpers enhancements

2017-10-06 Thread Adrien Mazarguil
On Fri, Oct 06, 2017 at 02:13:14AM +0100, Ferruh Yigit wrote: > On 10/5/2017 10:49 AM, Adrien Mazarguil wrote: > > This series brings enhancements to various rte_flow helpers: > > > > - Allow applications to use rte_flow_error_set() by making it part of the > > publi

[dpdk-dev] [PATCH] ethdev: fix port ID type in flow API

2017-10-06 Thread Adrien Mazarguil
As for the testpmd flow command which uses uint16_t since the beginning by chance, switch to portid_t for consistency. Fixes: 14ab03825b1d ("ethdev: increase port id range") Cc: Zhiyong Yang Signed-off-by: Adrien Mazarguil --- app/test-pmd/cmdline_flow.c | 6 +++--- lib/li

Re: [dpdk-dev] [PATCH V2 1/5] ethdev: add new flow action for metering and policing

2017-10-06 Thread Adrien Mazarguil
tion for the time being is to not describe what happens when several MTR actions are provided. We'll keep this for the next overhaul of rte_flow (some other changes are already planned). [1] http://dpdk.org/doc/guides/prog_guide/rte_flow.html#actions -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH V2 5/5] app/testpmd: cli for traffic metering and policing

2017-10-06 Thread Adrien Mazarguil
+ .next = NEXT(action_meter, NEXT_ENTRY(UNSIGNED)), > + .args = ARGS(ARGS_ENTRY(struct rte_flow_action_meter, mtr_id)), > + .call = parse_vc_conf, > + }, > }; Acked-by: Adrien Mazarguil One remaining minor comment: > diff --git a/app/test-pmd/cmdline_mtr.h b/app/test-pmd/cmdline_mtr.h > +#endif /* _CMDLINE_MTR_H_ */ > \ No newline at end of file Make sure to add this missing new line for the next iteration. -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH V3 1/5] ethdev: add new flow action for metering and policing

2017-10-06 Thread Adrien Mazarguil
doc mention on multiple MTR objects for same flow. Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH v1 0/7] net/mlx5: add vectorized Rx/Tx burst for ARM

2017-10-09 Thread Adrien Mazarguil
3 > - Later this patchset on top of it > - Later Raslan's on top of yours > > With multiple developers working on same drivers, mlx drivers become > hard to manage/trace. > > next-net-mlx sound like good idea :) Any comment on this? Sounds good to me too, particularly so

Re: [dpdk-dev] [PATCH v1 0/7] Flow API helpers enhancements

2017-10-11 Thread Adrien Mazarguil
On Tue, Oct 10, 2017 at 07:05:30PM +0100, Ferruh Yigit wrote: > On 10/6/2017 9:05 AM, Adrien Mazarguil wrote: > > On Fri, Oct 06, 2017 at 02:13:14AM +0100, Ferruh Yigit wrote: > >> On 10/5/2017 10:49 AM, Adrien Mazarguil wrote: > >>> This series brings enhancemen

Re: [dpdk-dev] [PATCH v1 1/7] ethdev: expose flow API error helper

2017-10-11 Thread Adrien Mazarguil
On Wed, Oct 11, 2017 at 11:23:12AM +0200, Thomas Monjalon wrote: > 05/10/2017 11:49, Adrien Mazarguil: > > rte_flow_error_set() is a convenient helper to initialize error objects. > > > > Since there is no fundamental reason to prevent applications from using it, > > e

[dpdk-dev] [PATCH v1 00/29] net/mlx4: restore PMD functionality

2017-10-11 Thread Adrien Mazarguil
footprint. Note that it should be applied directly before the following series: "new mlx4 datapath bypassing ibverbs" For which a new version based on top of this one will be submitted soon. Adrien Mazarguil (29): ethdev: expose flow API error helper net/mlx4: replace bit-f

[dpdk-dev] [PATCH v1 01/29] ethdev: expose flow API error helper

2017-10-11 Thread Adrien Mazarguil
public interface. Documentation is updated accordingly. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- doc/guides/prog_guide/rte_flow.rst | 23 +++-- drivers/net/mlx4/mlx4_flow.c| 6 ++-- drivers/net/tap/tap_flow.c | 2 +- lib

[dpdk-dev] [PATCH v1 02/29] net/mlx4: replace bit-field type

2017-10-11 Thread Adrien Mazarguil
Make clear it's 32-bit wide. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx4/mlx4.h b/drivers/net/mlx4/mlx4.h index 9bd2acc..71cbced 100644 --- a/drivers/net

[dpdk-dev] [PATCH v1 03/29] net/mlx4: remove Rx QP initializer function

2017-10-11 Thread Adrien Mazarguil
There is no benefit in having this as a separate function. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_rxq.c | 59 1 file changed, 18 insertions(+), 41 deletions(-) diff --git a/drivers/net/mlx4/mlx4_rxq.c b

[dpdk-dev] [PATCH v1 04/29] net/mlx4: enhance header files comments

2017-10-11 Thread Adrien Mazarguil
Add missing comments and fix those not Doxygen-friendly. Since the private structure definition is modified, use this opportunity to add one remaining missing include required by one of its fields (sys/queue.h for LIST_HEAD()). Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro

[dpdk-dev] [PATCH v1 05/29] net/mlx4: expose support for flow rule priorities

2017-10-11 Thread Adrien Mazarguil
This PMD supports up to 4096 flow rule priority levels (0 to 4095). Applications were not allowed to use them until now due to overlaps with the default flows (e.g. MAC address, promiscuous mode). This is not an issue in isolated mode when such flows do not exist. Signed-off-by: Adrien

[dpdk-dev] [PATCH v1 06/29] net/mlx4: clarify flow objects naming scheme

2017-10-11 Thread Adrien Mazarguil
commit does not cause any functional change. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 171 ++ drivers/net/mlx4/mlx4_flow.h | 2 +- 2 files changed, 81 insertions(+), 92 deletions(-) diff --git a/drive

[dpdk-dev] [PATCH v1 07/29] net/mlx4: tidy up flow rule handling code

2017-10-11 Thread Adrien Mazarguil
on action configuration structure. This commit does not cause any functional change. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 115 ++ 1 file changed, 53 insertions(+), 62 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v1 08/29] net/mlx4: compact flow rule error reporting

2017-10-11 Thread Adrien Mazarguil
yet. This commit does not cause any functional change. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 102 -- 1 file changed, 42 insertions(+), 60 deletions(-) diff --git a/drivers/net/mlx4/mlx4_flow.c b/drivers

[dpdk-dev] [PATCH v1 09/29] mem: add iovec-like allocation wrappers

2017-10-11 Thread Adrien Mazarguil
= ptr_a; a->b = ptr_b; a->c = ptr_c; a->b->d = ptr_d; ... rte_free(a); Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 9 ++ lib/librte_eal/common/include/rte_malloc.h | 85 ++ lib/li

[dpdk-dev] [PATCH v1 10/29] net/mlx4: merge flow creation and validation code

2017-10-11 Thread Adrien Mazarguil
other properties, making it more versatile without increasing its size (at least on 64-bit platforms). This commit also gets rid of a few unnecessary debugging messages. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 300

[dpdk-dev] [PATCH v1 12/29] net/mlx4: relax check on missing flow rule target

2017-10-11 Thread Adrien Mazarguil
affected ones drop-like, i.e. rules targeting nonexistent queues drop packets instead. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/drivers/net/mlx4

[dpdk-dev] [PATCH v1 13/29] net/mlx4: refactor internal flow rules

2017-10-11 Thread Adrien Mazarguil
. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.c | 20 ++--- drivers/net/mlx4/mlx4.h | 1 - drivers/net/mlx4/mlx4_flow.c | 155 +++--- drivers/net/mlx4/mlx4_flow.h | 6 ++ drivers/net/mlx4/mlx4_rxq.c | 117

[dpdk-dev] [PATCH v1 14/29] net/mlx4: generalize flow rule priority support

2017-10-11 Thread Adrien Mazarguil
ot;). As a reminder, the outcome of overlapping rules for a given priority level was, and still is, undefined territory according to API documentation. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 34 ++ 1 file chan

[dpdk-dev] [PATCH v1 15/29] net/mlx4: simplify trigger code for flow rules

2017-10-11 Thread Adrien Mazarguil
reporting as the inability to start the device due to a problem with a flow rule otherwise results in a nondescript error code. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.c | 25 - drivers/net/mlx4/mlx4_flow.c | 76

[dpdk-dev] [PATCH v1 16/29] net/mlx4: refactor flow item validation code

2017-10-11 Thread Adrien Mazarguil
st be matched exactly, as matching all VLAN traffic while excluding non-VLAN traffic is not supported. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 576 +++--- drivers/net/mlx4/mlx4_flow.h | 1 + 2 files change

[dpdk-dev] [PATCH v1 17/29] net/mlx4: add MAC addresses configuration support

2017-10-11 Thread Adrien Mazarguil
-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- doc/guides/nics/features/mlx4.ini | 1 + drivers/net/mlx4/mlx4.c | 7 ++- drivers/net/mlx4/mlx4.h | 10 +++- drivers/net/mlx4/mlx4_ethdev.c| 87 +++- drivers/net/mlx4/mlx4_flow.c | 90

[dpdk-dev] [PATCH v1 18/29] net/mlx4: add VLAN filter configuration support

2017-10-11 Thread Adrien Mazarguil
filters though. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- doc/guides/nics/features/mlx4.ini | 1 + drivers/net/mlx4/mlx4.c | 1 + drivers/net/mlx4/mlx4.h | 1 + drivers/net/mlx4/mlx4_ethdev.c| 42 + drivers/net/mlx4/mlx4_flow.c

[dpdk-dev] [PATCH v1 19/29] net/mlx4: add flow support for multicast traffic

2017-10-11 Thread Adrien Mazarguil
Give users the ability to create flow rules that match all multicast traffic. Like promiscuous flow rules, they come with restrictions such as not allowing additional matching criteria. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- doc/guides/nics/features/mlx4.ini | 1

[dpdk-dev] [PATCH v1 20/29] net/mlx4: restore promisc and allmulti support

2017-10-11 Thread Adrien Mazarguil
Implement promiscuous and all multicast through internal flow rules automatically generated according to the configured mode. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- doc/guides/nics/features/mlx4.ini | 2 + drivers/net/mlx4/mlx4.c | 4 ++ drivers/net/mlx4

[dpdk-dev] [PATCH v1 21/29] net/mlx4: update Rx/Tx callbacks consistently

2017-10-11 Thread Adrien Mazarguil
nge is not necessary as bringing the netdevice down is normally enough to prevent traffic from flowing in. Fixes: a4951cb98fdf ("net/mlx4: drop scatter/gather support") Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.c| 11 --- drive

[dpdk-dev] [PATCH v1 22/29] net/mlx4: fix invalid errno value sign

2017-10-11 Thread Adrien Mazarguil
Tx queue elements allocation function sets rte_errno properly and returns its negative version. Reassigning this value to rte_errno is thus both invalid and unnecessary. Fixes: c3e1f93cdf88 ("net/mlx4: standardize on negative errno values") Signed-off-by: Adrien Mazarguil Acked

[dpdk-dev] [PATCH v1 24/29] net/mlx4: allocate queues and mbuf rings together

2017-10-11 Thread Adrien Mazarguil
Since live Tx and Rx queues cannot be reused anymore without being destroyed first, mbuf ring sizes are fixed and known from the start. This allows a single allocation for queue data structures and mbuf ring together, saving space and bringing them closer in memory. Signed-off-by: Adrien

[dpdk-dev] [PATCH v1 23/29] net/mlx4: drop live queue reconfiguration support

2017-10-11 Thread Adrien Mazarguil
simplifies the code as allocation and setup steps and checks can be merged. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_rxq.c | 281 ++ drivers/net/mlx4/mlx4_rxtx.h | 2 - drivers/net/mlx4/mlx4_txq.c | 239

[dpdk-dev] [PATCH v1 25/29] net/mlx4: convert Rx path to work queues

2017-10-11 Thread Adrien Mazarguil
ks for RSS support brought by subsequent commits, as a single "hash" QP can manage several WQs through an indirection table according to a hash algorithm and other parameters. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.h | 3 ++ drivers/net/m

[dpdk-dev] [PATCH v1 26/29] net/mlx4: remove unnecessary check

2017-10-11 Thread Adrien Mazarguil
Device operation callbacks are not supposed to handle a missing private data structure. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/mlx4/mlx4_ethdev.c b/drivers/net/mlx4

[dpdk-dev] [PATCH v1 28/29] net/mlx4: disable UDP support in RSS flow rules

2017-10-11 Thread Adrien Mazarguil
When part of the RSS hash calculation, UDP packets are discarded (not received on any queue) likely due to an issue with the kernel implementation. Temporarily disable UDP RSS support until this issue is resolved. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4

[dpdk-dev] [PATCH v1 27/29] net/mlx4: add RSS flow rule action support

2017-10-11 Thread Adrien Mazarguil
: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- doc/guides/nics/features/mlx4.ini | 1 + drivers/net/mlx4/Makefile | 2 +- drivers/net/mlx4/mlx4.c | 13 ++ drivers/net/mlx4/mlx4.h | 2 + drivers/net/mlx4/mlx4_ethdev.c| 1 + drivers/net/mlx4/mlx4_flow.c

[dpdk-dev] [PATCH v1 29/29] net/mlx4: add RSS support outside flow API

2017-10-11 Thread Adrien Mazarguil
configured queues is rounded down to its previous power of two; extra queues are silently discarded. This does not prevent dedicated flow rules from targeting them. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 24 1 file

[dpdk-dev] [PATCH v1 11/29] net/mlx4: allocate drop flow resources on demand

2017-10-11 Thread Adrien Mazarguil
. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.h | 3 +- drivers/net/mlx4/mlx4_flow.c | 138 -- 2 files changed, 74 insertions(+), 67 deletions(-) diff --git a/drivers/net/mlx4/mlx4.h b/drivers/net/mlx4/mlx4.h index

[dpdk-dev] [PATCH v5 0/5] new mlx4 datapath bypassing ibverbs

2017-10-11 Thread Adrien Mazarguil
Hopefully the last iteration for this series. v5 (Ophir & Adrien): - Merged Rx scatter/Tx gather code back into individual Rx/Tx commits for consistency due to a couple of issues with gather-less Tx. - Rebased on top of the latest mlx4 control path changes (RSS support). v4 (Ophir): - Split "ne

[dpdk-dev] [PATCH v5 1/5] net/mlx4: add Tx bypassing Verbs

2017-10-11 Thread Adrien Mazarguil
when setting the report-completion flag of the chip. Signed-off-by: Moti Haimovsky Signed-off-by: Ophir Munk Acked-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4_prm.h | 120 drivers/net/mlx4/mlx4_rxtx.c | 398 -- drivers/net/mlx4/mlx4_rxtx.h

[dpdk-dev] [PATCH v5 2/5] net/mlx4: add Rx bypassing Verbs

2017-10-11 Thread Adrien Mazarguil
Philipov Signed-off-by: Moti Haimovsky Signed-off-by: Ophir Munk Acked-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4_rxq.c | 151 + drivers/net/mlx4/mlx4_rxtx.c | 226 +- drivers/net/mlx4/mlx4_rxtx.h | 19 ++-- 3 files changed, 241

[dpdk-dev] [PATCH v5 3/5] net/mlx4: restore Tx checksum offloads

2017-10-11 Thread Adrien Mazarguil
From: Moti Haimovsky This patch adds hardware offloading support for IPv4, UDP and TCP checksum calculation, including inner/outer checksums on supported tunnel types. Signed-off-by: Moti Haimovsky Acked-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c| 11 +++ drivers/net

[dpdk-dev] [PATCH v5 5/5] net/mlx4: add loopback Tx from VF

2017-10-11 Thread Adrien Mazarguil
From: Moti Haimovsky This patch adds loopback functionality used when the chip is a VF in order to enable packet transmission between VFs and PF. Signed-off-by: Moti Haimovsky Acked-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4_rxtx.c | 33 + drivers/net/mlx4

[dpdk-dev] [PATCH v5 4/5] net/mlx4: restore Rx offloads

2017-10-11 Thread Adrien Mazarguil
: Adrien Mazarguil --- drivers/net/mlx4/mlx4_ethdev.c | 6 +- drivers/net/mlx4/mlx4_prm.h| 29 + drivers/net/mlx4/mlx4_rxq.c| 5 ++ drivers/net/mlx4/mlx4_rxtx.c | 118 +++- drivers/net/mlx4/mlx4_rxtx.h | 2 + 5 files changed, 157 insertions

Re: [dpdk-dev] [PATCH v1 09/29] mem: add iovec-like allocation wrappers

2017-10-12 Thread Adrien Mazarguil
On Wed, Oct 11, 2017 at 10:58:45PM +0100, Ferruh Yigit wrote: > On 10/11/2017 3:35 PM, Adrien Mazarguil wrote: > > These wrappers implement the ability to allocate room for several disparate > > objects as a single contiguous allocation while complying with their > >

[dpdk-dev] [PATCH v2 01/29] ethdev: expose flow API error helper

2017-10-12 Thread Adrien Mazarguil
public interface. Documentation is updated accordingly. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- doc/guides/prog_guide/rte_flow.rst | 23 +++-- drivers/net/mlx4/mlx4_flow.c| 6 ++-- drivers/net/tap/tap_flow.c | 2 +- lib

[dpdk-dev] [PATCH v2 00/29] net/mlx4: restore PMD functionality

2017-10-12 Thread Adrien Mazarguil
latest dpdk-next-net. Adrien Mazarguil (29): ethdev: expose flow API error helper net/mlx4: replace bit-field type net/mlx4: remove Rx QP initializer function net/mlx4: enhance header files comments net/mlx4: expose support for flow rule priorities net/mlx4: clarify flow objects nami

[dpdk-dev] [PATCH v2 02/29] net/mlx4: replace bit-field type

2017-10-12 Thread Adrien Mazarguil
Make clear it's 32-bit wide. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx4/mlx4.h b/drivers/net/mlx4/mlx4.h index 9bd2acc..71cbced 100644 --- a/drivers/net

[dpdk-dev] [PATCH v2 03/29] net/mlx4: remove Rx QP initializer function

2017-10-12 Thread Adrien Mazarguil
There is no benefit in having this as a separate function. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_rxq.c | 59 1 file changed, 18 insertions(+), 41 deletions(-) diff --git a/drivers/net/mlx4/mlx4_rxq.c b

[dpdk-dev] [PATCH v2 04/29] net/mlx4: enhance header files comments

2017-10-12 Thread Adrien Mazarguil
Add missing comments and fix those not Doxygen-friendly. Since the private structure definition is modified, use this opportunity to add one remaining missing include required by one of its fields (sys/queue.h for LIST_HEAD()). Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro

[dpdk-dev] [PATCH v2 05/29] net/mlx4: expose support for flow rule priorities

2017-10-12 Thread Adrien Mazarguil
This PMD supports up to 4096 flow rule priority levels (0 to 4095). Applications were not allowed to use them until now due to overlaps with the default flows (e.g. MAC address, promiscuous mode). This is not an issue in isolated mode when such flows do not exist. Signed-off-by: Adrien

[dpdk-dev] [PATCH v2 06/29] net/mlx4: clarify flow objects naming scheme

2017-10-12 Thread Adrien Mazarguil
commit does not cause any functional change. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 171 ++ drivers/net/mlx4/mlx4_flow.h | 2 +- 2 files changed, 81 insertions(+), 92 deletions(-) diff --git a/drive

[dpdk-dev] [PATCH v2 07/29] net/mlx4: tidy up flow rule handling code

2017-10-12 Thread Adrien Mazarguil
on action configuration structure. This commit does not cause any functional change. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 115 ++ 1 file changed, 53 insertions(+), 62 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH v2 08/29] net/mlx4: compact flow rule error reporting

2017-10-12 Thread Adrien Mazarguil
yet. This commit does not cause any functional change. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 102 -- 1 file changed, 42 insertions(+), 60 deletions(-) diff --git a/drivers/net/mlx4/mlx4_flow.c b/drivers

[dpdk-dev] [PATCH v2 09/29] net/mlx4: add iovec-like allocation wrappers

2017-10-12 Thread Adrien Mazarguil
= ptr_a; a->b = ptr_b; a->c = ptr_c; a->b->d = ptr_d; ... rte_free(a); Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_utils.c | 151 + drivers/net/mlx4/mlx4_utils.h | 15 2 files changed, 166 inserti

[dpdk-dev] [PATCH v2 10/29] net/mlx4: merge flow creation and validation code

2017-10-12 Thread Adrien Mazarguil
other properties, making it more versatile without increasing its size (at least on 64-bit platforms). This commit also gets rid of a few unnecessary debugging messages. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 300

[dpdk-dev] [PATCH v2 11/29] net/mlx4: allocate drop flow resources on demand

2017-10-12 Thread Adrien Mazarguil
. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.h | 3 +- drivers/net/mlx4/mlx4_flow.c | 138 -- 2 files changed, 74 insertions(+), 67 deletions(-) diff --git a/drivers/net/mlx4/mlx4.h b/drivers/net/mlx4/mlx4.h index

[dpdk-dev] [PATCH v2 12/29] net/mlx4: relax check on missing flow rule target

2017-10-12 Thread Adrien Mazarguil
affected ones drop-like, i.e. rules targeting nonexistent queues drop packets instead. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/drivers/net/mlx4

[dpdk-dev] [PATCH v2 14/29] net/mlx4: generalize flow rule priority support

2017-10-12 Thread Adrien Mazarguil
ot;). As a reminder, the outcome of overlapping rules for a given priority level was, and still is, undefined territory according to API documentation. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 34 ++ 1 file chan

[dpdk-dev] [PATCH v2 13/29] net/mlx4: refactor internal flow rules

2017-10-12 Thread Adrien Mazarguil
. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.c | 20 ++--- drivers/net/mlx4/mlx4.h | 1 - drivers/net/mlx4/mlx4_flow.c | 155 +++--- drivers/net/mlx4/mlx4_flow.h | 6 ++ drivers/net/mlx4/mlx4_rxq.c | 117

[dpdk-dev] [PATCH v2 15/29] net/mlx4: simplify trigger code for flow rules

2017-10-12 Thread Adrien Mazarguil
reporting as the inability to start the device due to a problem with a flow rule otherwise results in a nondescript error code. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.c | 25 - drivers/net/mlx4/mlx4_flow.c | 76

[dpdk-dev] [PATCH v2 17/29] net/mlx4: add MAC addresses configuration support

2017-10-12 Thread Adrien Mazarguil
-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- doc/guides/nics/features/mlx4.ini | 1 + drivers/net/mlx4/mlx4.c | 7 ++- drivers/net/mlx4/mlx4.h | 10 +++- drivers/net/mlx4/mlx4_ethdev.c| 87 +++- drivers/net/mlx4/mlx4_flow.c | 90

[dpdk-dev] [PATCH v2 18/29] net/mlx4: add VLAN filter configuration support

2017-10-12 Thread Adrien Mazarguil
filters though. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- doc/guides/nics/features/mlx4.ini | 1 + drivers/net/mlx4/mlx4.c | 1 + drivers/net/mlx4/mlx4.h | 1 + drivers/net/mlx4/mlx4_ethdev.c| 42 + drivers/net/mlx4/mlx4_flow.c

[dpdk-dev] [PATCH v2 16/29] net/mlx4: refactor flow item validation code

2017-10-12 Thread Adrien Mazarguil
st be matched exactly, as matching all VLAN traffic while excluding non-VLAN traffic is not supported. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 576 +++--- drivers/net/mlx4/mlx4_flow.h | 1 + 2 files change

[dpdk-dev] [PATCH v2 19/29] net/mlx4: add flow support for multicast traffic

2017-10-12 Thread Adrien Mazarguil
Give users the ability to create flow rules that match all multicast traffic. Like promiscuous flow rules, they come with restrictions such as not allowing additional matching criteria. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- doc/guides/nics/features/mlx4.ini | 1

[dpdk-dev] [PATCH v2 20/29] net/mlx4: restore promisc and allmulti support

2017-10-12 Thread Adrien Mazarguil
Implement promiscuous and all multicast through internal flow rules automatically generated according to the configured mode. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- doc/guides/nics/features/mlx4.ini | 2 + drivers/net/mlx4/mlx4.c | 4 ++ drivers/net/mlx4

[dpdk-dev] [PATCH v2 21/29] net/mlx4: update Rx/Tx callbacks consistently

2017-10-12 Thread Adrien Mazarguil
nge is not necessary as bringing the netdevice down is normally enough to prevent traffic from flowing in. Fixes: a4951cb98fdf ("net/mlx4: drop scatter/gather support") Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.c| 11 --- drive

[dpdk-dev] [PATCH v2 22/29] net/mlx4: fix invalid errno value sign

2017-10-12 Thread Adrien Mazarguil
Tx queue elements allocation function sets rte_errno properly and returns its negative version. Reassigning this value to rte_errno is thus both invalid and unnecessary. Fixes: c3e1f93cdf88 ("net/mlx4: standardize on negative errno values") Signed-off-by: Adrien Mazarguil Acked

[dpdk-dev] [PATCH v2 23/29] net/mlx4: drop live queue reconfiguration support

2017-10-12 Thread Adrien Mazarguil
simplifies the code as allocation and setup steps and checks can be merged. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_rxq.c | 281 ++ drivers/net/mlx4/mlx4_rxtx.h | 2 - drivers/net/mlx4/mlx4_txq.c | 239

[dpdk-dev] [PATCH v2 24/29] net/mlx4: allocate queues and mbuf rings together

2017-10-12 Thread Adrien Mazarguil
Since live Tx and Rx queues cannot be reused anymore without being destroyed first, mbuf ring sizes are fixed and known from the start. This allows a single allocation for queue data structures and mbuf ring together, saving space and bringing them closer in memory. Signed-off-by: Adrien

[dpdk-dev] [PATCH v2 26/29] net/mlx4: remove unnecessary check

2017-10-12 Thread Adrien Mazarguil
Device operation callbacks are not supposed to handle a missing private data structure. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/mlx4/mlx4_ethdev.c b/drivers/net/mlx4

[dpdk-dev] [PATCH v2 25/29] net/mlx4: convert Rx path to work queues

2017-10-12 Thread Adrien Mazarguil
ks for RSS support brought by subsequent commits, as a single "hash" QP can manage several WQs through an indirection table according to a hash algorithm and other parameters. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.h | 3 ++ drivers/net/m

[dpdk-dev] [PATCH v2 27/29] net/mlx4: add RSS flow rule action support

2017-10-12 Thread Adrien Mazarguil
: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- doc/guides/nics/features/mlx4.ini | 1 + drivers/net/mlx4/Makefile | 2 +- drivers/net/mlx4/mlx4.c | 13 ++ drivers/net/mlx4/mlx4.h | 2 + drivers/net/mlx4/mlx4_ethdev.c| 1 + drivers/net/mlx4/mlx4_flow.c

[dpdk-dev] [PATCH v2 28/29] net/mlx4: disable UDP support in RSS flow rules

2017-10-12 Thread Adrien Mazarguil
When part of the RSS hash calculation, UDP packets are discarded (not received on any queue) likely due to an issue with the kernel implementation. Temporarily disable UDP RSS support until this issue is resolved. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4

[dpdk-dev] [PATCH v2 29/29] net/mlx4: add RSS support outside flow API

2017-10-12 Thread Adrien Mazarguil
configured queues is rounded down to its previous power of two; extra queues are silently discarded. This does not prevent dedicated flow rules from targeting them. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 24 1 file

[dpdk-dev] [PATCH v6 1/5] net/mlx4: add Tx bypassing Verbs

2017-10-12 Thread Adrien Mazarguil
when setting the report-completion flag of the chip. Signed-off-by: Moti Haimovsky Signed-off-by: Ophir Munk Acked-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4_prm.h | 120 drivers/net/mlx4/mlx4_rxtx.c | 398 -- drivers/net/mlx4/mlx4_rxtx.h

[dpdk-dev] [PATCH v6 2/5] net/mlx4: add Rx bypassing Verbs

2017-10-12 Thread Adrien Mazarguil
Philipov Signed-off-by: Moti Haimovsky Signed-off-by: Ophir Munk Acked-by: Adrien Mazarguil --- doc/guides/nics/features/mlx4.ini | 1 + drivers/net/mlx4/mlx4_rxq.c | 151 +++--- drivers/net/mlx4/mlx4_rxtx.c | 226 +++-- drivers/net/mlx4

[dpdk-dev] [PATCH v6 3/5] net/mlx4: restore Tx checksum offloads

2017-10-12 Thread Adrien Mazarguil
From: Moti Haimovsky This patch adds hardware offloading support for IPv4, UDP and TCP checksum calculation, including inner/outer checksums on supported tunnel types. Signed-off-by: Moti Haimovsky Acked-by: Adrien Mazarguil --- doc/guides/nics/features/mlx4.ini | 4 drivers/net/mlx4

[dpdk-dev] [PATCH v6 0/5] new mlx4 datapath bypassing ibverbs

2017-10-12 Thread Adrien Mazarguil
Hopefully the last iteration for this series. v6 (Adrien): - Updated features documentation (mlx4.ini) in the relevant patches. - Rebased on the latest changes brought by RSS support v2 series. v5 (Ophir & Adrien): - Merged Rx scatter/Tx gather code back into individual Rx/Tx commits for consis

[dpdk-dev] [PATCH v6 5/5] net/mlx4: add loopback Tx from VF

2017-10-12 Thread Adrien Mazarguil
From: Moti Haimovsky This patch adds loopback functionality used when the chip is a VF in order to enable packet transmission between VFs and PF. Signed-off-by: Moti Haimovsky Acked-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4_rxtx.c | 33 + drivers/net/mlx4

[dpdk-dev] [PATCH v6 4/5] net/mlx4: restore Rx offloads

2017-10-12 Thread Adrien Mazarguil
: Adrien Mazarguil --- doc/guides/nics/features/mlx4.ini | 1 + drivers/net/mlx4/mlx4_ethdev.c| 6 +- drivers/net/mlx4/mlx4_prm.h | 29 drivers/net/mlx4/mlx4_rxq.c | 5 ++ drivers/net/mlx4/mlx4_rxtx.c | 118 - drivers/net/mlx4

Re: [dpdk-dev] [PATCH v1 0/7] Flow API helpers enhancements

2017-10-12 Thread Adrien Mazarguil
On Wed, Oct 11, 2017 at 07:07:29PM +0100, Ferruh Yigit wrote: > On 10/11/2017 10:57 AM, Adrien Mazarguil wrote: > > On Tue, Oct 10, 2017 at 07:05:30PM +0100, Ferruh Yigit wrote: > >> After above said, API changes one week before integration deadline, a > >> new

Re: [dpdk-dev] [PATCH v1 1/7] ethdev: expose flow API error helper

2017-10-12 Thread Adrien Mazarguil
On Wed, Oct 11, 2017 at 03:05:47PM -0400, Aaron Conole wrote: > Adrien Mazarguil writes: > > > On Wed, Oct 11, 2017 at 11:23:12AM +0200, Thomas Monjalon wrote: > >> 05/10/2017 11:49, Adrien Mazarguil: > >> > rte_flow_error_set() is a convenient h

Re: [dpdk-dev] [PATCH v5 1/4] ethdev: add support for raw flow type for flow director

2017-10-12 Thread Adrien Mazarguil
urious about the reasons that made it hard to implement as a RTE_FLOW_ITEM_RAW thing? (e.g. a rule with a pattern that only contains one or several such items) Please have a look at the rte_flow_item_raw structure in rte_flow.h, tell me what's missing in there and I'll take it into account during the next overhaul. Thanks in advance for your feedback. -- Adrien Mazarguil 6WIND

[dpdk-dev] [PATCH] net/mlx4: fix missing initializers for old GCCs

2017-10-13 Thread Adrien Mazarguil
ld-initializers] [...]/mlx4_txq.c: In function `mlx4_tx_queue_setup': [...]/mlx4_txq.c:265:3: error: missing initializer for field `opackets' of `struct mlx4_txq_stats' [-Werror=missing-field-initializers] Fixes: 79770826499b ("net/mlx4: drop live queue reconfiguration support")

Re: [dpdk-dev] [PATCH v1 0/7] Flow API helpers enhancements

2017-10-13 Thread Adrien Mazarguil
On Thu, Oct 12, 2017 at 05:37:41PM +0100, Ferruh Yigit wrote: > On 10/12/2017 1:53 PM, Adrien Mazarguil wrote: > > On Wed, Oct 11, 2017 at 07:07:29PM +0100, Ferruh Yigit wrote: > >> On 10/11/2017 10:57 AM, Adrien Mazarguil wrote: > >>> On Tue, Oct 10, 2017 at 07:05:

[dpdk-dev] [PATCH v1 0/4] net/mlx4: RSS fixes

2017-10-19 Thread Adrien Mazarguil
This series enforces WQ creation order to make sure WQNs are assigned sequentially to Rx queues and fixes a few minor issues related to initialization code. This addresses l3fwd-power startup issues. Adrien Mazarguil (4): net/mlx4: use dedicated list iterator net/mlx4: fix useless flow rules

[dpdk-dev] [PATCH v1 1/4] net/mlx4: use dedicated list iterator

2017-10-19 Thread Adrien Mazarguil
Dumb unconditional iteration on flow rules should be performed using the dedicated macro. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_flow.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/mlx4/mlx4_flow.c b/drivers

[dpdk-dev] [PATCH v1 2/4] net/mlx4: fix useless flow rules synchronization

2017-10-19 Thread Adrien Mazarguil
ned-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_rxq.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/net/mlx4/mlx4_rxq.c b/drivers/net/mlx4/mlx4_rxq.c index 6fa48bc..65cf123 100644 --- a/drivers/net/mlx4/mlx4_r

[dpdk-dev] [PATCH v1 3/4] net/mlx4: fix indirection table error rollback

2017-10-19 Thread Adrien Mazarguil
ssing. Fixes: 078b8b452e6b ("net/mlx4: add RSS flow rule action support") Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4_rxq.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx4/mlx4_rxq.c b/d

[dpdk-dev] [PATCH v1 4/4] net/mlx4: relax Rx queue configuration order

2017-10-19 Thread Adrien Mazarguil
configured in order to address this issue. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- drivers/net/mlx4/mlx4.c | 23 +-- drivers/net/mlx4/mlx4_rxq.c | 357 +- drivers/net/mlx4/mlx4_rxtx.h | 5 + 3 files changed, 288 insertions(+), 97

[dpdk-dev] [PATCH] net/mlx4: fix restriction on TCP/UDP flow rules

2017-10-20 Thread Adrien Mazarguil
code") Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4_flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx4/mlx4_flow.c b/drivers/net/mlx4/mlx4_flow.c index 5af6efb..a0f431b 100644 --- a/drivers/net/mlx4/mlx4_flow.c +++ b/driver

Re: [dpdk-dev] [PATCH v2 4/4] ethdev: Add metadata flow and action items support

2018-04-06 Thread Adrien Mazarguil
't be statically initialized. Both can be overcome by relying on compiler extensions, however their use should be restricted to a minimum in public APIs for portability reasons. [1] http://dpdk.org/ml/archives/dev/2018-April/095307.html -- Adrien Mazarguil 6WIND

[dpdk-dev] [PATCH v3 00/11] Bunch of flow API-related fixes

2018-04-06 Thread Adrien Mazarguil
build", handled by prior commit d9736a248785 ("ethdev: fix library version in meson build"). v2 changes: - mlx5 fix (patch #3). - bnxt fix (patch #4). - sfc fix (patch #6). - Missing include (patch #13). Adrien Mazarguil (11): net/mlx4: fix RSS resource leak in case of error

[dpdk-dev] [PATCH v3 01/11] net/mlx4: fix RSS resource leak in case of error

2018-04-06 Thread Adrien Mazarguil
When memory cannot be allocated for a flow rule, its RSS context reference is not dropped. Fixes: 078b8b452e6b ("net/mlx4: add RSS flow rule action support") Cc: sta...@dpdk.org Signed-off-by: Adrien Mazarguil Cc: Shahaf Shuler --- drivers/net/mlx4/mlx4_flow.c | 5 - 1 file

[dpdk-dev] [PATCH v3 02/11] net/mlx4: fix ignored RSS hash types

2018-04-06 Thread Adrien Mazarguil
d RSS flow rule action support") Cc: sta...@dpdk.org Signed-off-by: Adrien Mazarguil Cc: Shahaf Shuler --- drivers/net/mlx4/mlx4_flow.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx4/mlx4_flow.c b/drivers/net/mlx4/mlx4_flow.c index a3b4480b4.

[dpdk-dev] [PATCH v3 03/11] net/mlx5: fix RSS flow action bounds check

2018-04-06 Thread Adrien Mazarguil
The number of queues provided by the application is not checked against parser's supported maximum. Fixes: 3d821d6fea40 ("net/mlx5: support RSS action flow rule") Cc: sta...@dpdk.org Cc: Nelio Laranjeiro Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- d

[dpdk-dev] [PATCH v3 04/11] net/bnxt: fix matching of flow API item masks

2018-04-06 Thread Adrien Mazarguil
Some values are interpreted without endian conversion and/or without taking the proper mask into account. Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops") Cc: sta...@dpdk.org Cc: Ajit Khaparde Signed-off-by: Adrien Mazarguil --- drivers/net/bnxt/bnxt_filter.c | 14 +++

[dpdk-dev] [PATCH v3 05/11] app/testpmd: fix flow completion for RSS queues

2018-04-06 Thread Adrien Mazarguil
The lack of a working completion for RSS queues was overlooked during development; until now only "end" was displayed as a valid token. Fixes: 05d34c6e9d2c ("app/testpmd: add queue actions to flow command") Cc: sta...@dpdk.org Signed-off-by: Adrien Mazarguil Cc: Wenzhuo

<    1   2   3   4   5   6   7   8   9   10   >