Re: [dpdk-dev] [PATCH v2 14/18] net/ixgbe: parse L2 tunnel filter

2017-01-03 Thread Adrien Mazarguil
s its own item as shown in this testpmd flow command example: flow create 0 ingress pattern eth / e_tag in_ecid_base is 42 / end actions drop / end Note, all multibyte values are in network order like other protocol header definitions. [1] http://dpdk.org/ml/archives/dev/2016-December/053181.html Message ID: 20161223081310.gh10...@6wind.com -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH v2 15/18] net/ixgbe: parse flow director filter

2017-01-03 Thread Adrien Mazarguil
; /**< Flow ID. */ }; Like for E-Tag, applications are responsibile for breaking down and filling individual fields properly. [1] http://dpdk.org/ml/archives/dev/2016-December/053181.html Message ID: 20161223081310.gh10...@6wind.com -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH] mk: disable ICC warning 188

2017-01-03 Thread Adrien Mazarguil
> +WERROR_FLAGS += -diag-disable 188 > > ifeq ($(RTE_DEVEL_BUILD),y) > WERROR_FLAGS += -Werror-all > -- > 2.9.3 I also think this warning may be useful but is not worth the trouble in many cases, thus: Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH v2 00/25] Generic flow API (rte_flow)

2017-01-04 Thread Adrien Mazarguil
On Wed, Jan 04, 2017 at 10:53:50AM +0100, Simon Horman wrote: > On Thu, Dec 22, 2016 at 01:48:04PM +0100, Adrien Mazarguil wrote: > > On Wed, Dec 21, 2016 at 05:19:16PM +0100, Simon Horman wrote: > > > On Fri, Dec 16, 2016 at 05:24:57PM +0100, Adrien Mazarguil wrote: [...] >

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

2017-01-04 Thread Adrien Mazarguil
> VLAN, VXLAN are still not supported. > > > > Signed-off-by: Nelio Laranjeiro > > Acked-by: Adrien Mazarguil > > <...> > > > +static int > > +priv_flow_validate(struct priv *priv, > > + const struct rte_flow_attr *a

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-05 Thread Adrien Mazarguil
ents. Well, I do not agree with Konstantin (no one saw this coming eh?) and do not think you need to update your series again. PMD-specific symbols have nothing to do in the global namespace in my opinion, they are not versioned and may evolve without notice. Neither applications nor the bonding PMD can rely on them. That's the trade-off. Therefore until APIs are made global, the safe compromise is to define neutral, reserved symbols that any PMD can use to implement their own temporary APIs for testing purposes. These can be renamed later without changing their value as long as a single PMD uses them. -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH v2 14/18] net/ixgbe: parse L2 tunnel filter

2017-01-05 Thread Adrien Mazarguil
On Thu, Jan 05, 2017 at 03:12:01AM +, Zhao1, Wei wrote: > Hi, adrien > > > -Original Message- > > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > > Sent: Tuesday, January 3, 2017 10:08 PM > > To: Zhao1, Wei > > Cc: dev@dpdk.org; Lu,

Re: [dpdk-dev] [PATCH] net/mlx5: add support for ConnectX-5 NICs

2017-01-05 Thread Adrien Mazarguil
nnectX-5 must appear somewhere (you can use past release notes as a template). -- Adrien Mazarguil 6WIND

[dpdk-dev] [PATCH] net/mlx: update C compliance standard

2017-06-30 Thread Adrien Mazarguil
ibc. Doing so is supported on the DPDK side since includes have been cleaned up. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/Makefile | 2 +- drivers/net/mlx5/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makef

[dpdk-dev] [PATCH] net/mlx5: fix compilation issue in debug mode

2017-07-03 Thread Adrien Mazarguil
keyword addresses it. Fixes: 143c03925695 ("net/mlx: update C compliance standard") Signed-off-by: Adrien Mazarguil Tested-by: Yongseok Koh --- Ferruh, squashing this commit with the previous one and discarding its log is fine if you want. Thanks. --- drivers/net/mlx5/mlx5_rxtx.h | 2

Re: [dpdk-dev] [PATCH v7 1/4] app/testpmd: add isolated mode parameter

2017-07-04 Thread Adrien Mazarguil
ot support this mode are automatically discarded. > > Signed-off-by: Vasily Philipov Thanks for reordering the series. For this commit: Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH v7 2/4] net/mlx4: implement isolated mode from flow API

2017-07-04 Thread Adrien Mazarguil
On Tue, Jul 04, 2017 at 11:22:49AM +, Vasily Philipov wrote: > The user must request isolated mode before device configuration. > > Signed-off-by: Vasily Philipov Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH v7 3/4] net/mlx4: refactor RSS parent queue allocation

2017-07-04 Thread Adrien Mazarguil
ing a flow in isolated mode causes a crash due to RX QPs not being allocated. You should temporarily make priv_flow_create_action_queue() call rxq_create_qp() when the target QP does not exist. Patch looks otherwise fine. -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH v7 4/4] net/mlx4: support flow API RSS action

2017-07-04 Thread Adrien Mazarguil
gned-off-by: Vasily Philipov Looks good, assuming crash from patch 3/4 is addressed: Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH] net/mlx4: fix mbuf poisoning in debug code

2017-07-05 Thread Adrien Mazarguil
t; returning mbufs to the pool to avoid crashing. > > Fixes: 7fae69eeff13 ("mlx4: new poll mode driver") > CC: sta...@dpdk.org > > Signed-off-by: Vasily Philipov Thanks Vasily, except for the minor nit below, Acked-by: Adrien Mazarguil > --- > drivers/net/m

Re: [dpdk-dev] [PATCH v8 1/4] app/testpmd: add isolated mode parameter

2017-07-05 Thread Adrien Mazarguil
ot support this mode are automatically discarded. > > Signed-off-by: Vasily Philipov Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH v8 2/4] net/mlx4: implement isolated mode from flow API

2017-07-05 Thread Adrien Mazarguil
On Wed, Jul 05, 2017 at 11:14:09AM +0300, Vasily Philipov wrote: > The user must request isolated mode before device configuration. > > Signed-off-by: Vasily Philipov Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH v8 3/4] net/mlx4: refactor RSS parent queue allocation

2017-07-05 Thread Adrien Mazarguil
d > in this case. > > Refactor RSS parent queue allocations (currently limited to a single > parent) in preparation for flow API RSS action support. > > Signed-off-by: Vasily Philipov Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH v8 4/4] net/mlx4: support flow API RSS action

2017-07-05 Thread Adrien Mazarguil
gned-off-by: Vasily Philipov Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH] ethdev: fix document for fuzzy match

2017-07-06 Thread Adrien Mazarguil
_gre > rte_flow_item_gre_mask = { > * Matching accuracy level can be configure by threshold. > * Driver can divide the range of threshold and map to different > * accuracy levels that device support. > + * > + * Threshold 0 means perfect match(no fuzziness), while threshol

Re: [dpdk-dev] [PATCH v2] ethdev: fix document for flow API

2017-07-06 Thread Adrien Mazarguil
g > --- > v2: > - minor fix Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

[dpdk-dev] [PATCH v3] ethdev: add flow API rule copy function

2017-07-06 Thread Adrien Mazarguil
From: Gaetan Rivet This allows PMDs and applications to save flow rules in their generic format for later processing. This is useful when rules cannot be applied immediately, such as when the device is not properly initialized. Signed-off-by: Gaetan Rivet Signed-off-by: Adrien Mazarguil

Re: [dpdk-dev] [pull-request] next-tm 17.08 pre-rc1

2017-07-10 Thread Adrien Mazarguil
seems a mistake. Why? It was done on purpose, I think exposing through Doxygen internal APIs implemented by drivers must be a requirement, even if the exposed symbols are not necessarily versioned. -- Adrien Mazarguil 6WIND

[dpdk-dev] [PATCH v3 0/3] librte_cmdline: fix parsing initialisation

2017-07-10 Thread Adrien Mazarguil
ases since 17.02. [1] http://dpdk.org/ml/archives/dev/2017-June/068605.html Adrien Mazarguil (3): cmdline: fix dynamic tokens initialization cmdline: fix dynamic tokens interface app/testpmd: fix token matching in flow command app/test-pmd/cmdline_flow.c| 36 +++--- lib/libr

[dpdk-dev] [PATCH v3 1/3] cmdline: fix dynamic tokens initialization

2017-07-10 Thread Adrien Mazarguil
. Doing so is also less expensive than a full memset() at each iteration. Fixes: 4fffc05a2b2c ("cmdline: support dynamic tokens") Cc: sta...@dpdk.org Signed-off-by: Bernard Iremonger Signed-off-by: Adrien Mazarguil Acked-by: Olivier Matz --- lib/librte_cmdline/cmdline_pa

[dpdk-dev] [PATCH v3 3/3] app/testpmd: fix token matching in flow command

2017-07-10 Thread Adrien Mazarguil
9d2c ("app/testpmd: add queue actions to flow command") Cc: sta...@dpdk.org Signed-off-by: Adrien Mazarguil --- app/test-pmd/cmdline_flow.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow

[dpdk-dev] [PATCH v3 2/3] cmdline: fix dynamic tokens interface

2017-07-10 Thread Adrien Mazarguil
. Fixes: 4fffc05a2b2c ("cmdline: support dynamic tokens") Fixes: 19c90af6285c ("app/testpmd: add flow command") Cc: sta...@dpdk.org Signed-off-by: Adrien Mazarguil Acked-by: Olivier Matz Cc: Bernard Iremonger --- app/test-pmd/cmdline_flow.c| 15 ++-- lib/librte_cmd

Re: [dpdk-dev] [PATCH] app/testpmd: add flow isolate all parameter

2017-07-10 Thread Adrien Mazarguil
ot support this mode are automatically discarded. > > Signed-off-by: Vasily Philipov Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [RFC 3/3] rte_flow: add new action for traffic metering and policing

2017-07-10 Thread Adrien Mazarguil
; -Original Message- > > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > > Sent: Thursday, June 1, 2017 4:14 PM > > To: Dumitrescu, Cristian > > Cc: dev@dpdk.org; tho...@monjalon.net; > > jerin.ja...@caviumnetworks.com; hemant.agra...@nxp.com; Doherty,

Re: [dpdk-dev] [PATCH 0/2] fix flow rules copy functions

2017-07-24 Thread Adrien Mazarguil
and the RSS action. Both had to be handled through special functions which I messed up. Unfortunately I didn't catch it in testpmd because it doesn't do anything with the copied data unlike the fail-safe PMD. Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH] doc: add author on cc to git fixline alias

2017-07-24 Thread Adrien Mazarguil
that the original author (now on Cc:) might not actually review, > there is no value in keeping the Cc: in git commit history. If the > original author performs a review, their Reviewed-by: or Acked-by: is > stored in git history (same as now). > > Signed-off-by: Harry van Haa

Re: [dpdk-dev] [PATCH 3/3] doc: update mlx guides

2017-07-25 Thread Adrien Mazarguil
gt; either "virtual machines" of "VMs", I think the reader understands what they are at this point. > + and NUMA node are pinned for the VM according to the above. Run And you should remove "for the VM". > + > + .. code-block:: console > + > +lstopo-no-graphics > + > + to identify the NUMA node to which the PCIe adapter is connected. > + > +4. If more than one adapter is used, and root complex capabilities enables > + to put both adapters on the same NUMA node without PCI bandwidth > degredation, degredation => degradation > + it is recommended to locate both adapters on the same NUMA node. > + This in order to forward packets from one to the other without > + NUMA performance penalty. > + > +5. Disable pause frames Missing period or colon. > + > + .. code-block:: console > + > +ethtool -A rx off tx off > + > +6. Verify IO non-posted prefetch is disabled by default. This can be checked > + via the BIOS configuration. Please contact you server provider for more > + information about the settings. > + > +.. hint:: > + > +On Some machines, depends on the machine intergrator, it is > beneficial Some => some intergrator => integrator > +to set the PCI max read request parameter to 1K. This can be > +done in the following way: > + > +To query the read request size use: > + > +.. code-block:: console > + > +setpci -s 68.w > + > +If the output is different than 3XXX, set it by: > + > +.. code-block:: console > + > +setpci -s 68.w=3XXX > + > +The XXX can be different on different systems. Make sure to configure > +according to the setpci output. > + > Notes for testpmd > - > > -- > 2.12.0 > -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH] net/mlx5: fix verification of device context

2017-07-26 Thread Adrien Mazarguil
> dir = opendir(path); > -- > 1.8.3.1 > I think this patch is not necessary unless proved otherwise, have you actually observed a crash addressed by it? -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH] net/mlx4: fix drop action setting before start

2017-07-26 Thread Adrien Mazarguil
; > } > if (action->drop) { > - qp = priv->flow_drop_queue->qp; > + qp = priv->flow_drop_queue.qp; > } else { > int ret; > unsigned int i; > @@ -1307,7 +1289,7 @@ struct rte_flow * > for (flow = LIST_FIRST(&priv->flows); >flow; >flow = LIST_NEXT(flow, next)) { > - qp = flow->qp ? flow->qp : priv->flow_drop_queue->qp; > + qp = flow->qp ? flow->qp : priv->flow_drop_queue.qp; > flow->ibv_flow = ibv_create_flow(qp, flow->ibv_attr); > if (!flow->ibv_flow) { > DEBUG("Flow %p cannot be applied", (void *)flow); > -- > 1.8.3.1 > -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [disscussion] mlx4 driver MLX4_PMD_TX_MP_CACHE default vaule

2017-07-28 Thread Adrien Mazarguil
a larger MP cache need to also increase CONFIG_RTE_LIBRTE_MLX4_TX_MP_CACHE like you did. Because updating the default value cannot possibly satisfy all use cases, I think it's better to leave it as is for the time being in order to not affect existing applications. [1] http://dpdk.org/ml/archives/dev/2017-July/071405.html -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [disscussion] mlx4 driver MLX4_PMD_TX_MP_CACHE default vaule

2017-07-28 Thread Adrien Mazarguil
that depend on the application or the host system, if for instance DPDK memory is spread across NUMA nodes. Make sure it's not the case. -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH v2 0/6] fix ethdev device detach

2017-07-31 Thread Adrien Mazarguil
API change for detach flag > > app/test-pmd/testpmd.c | 9 ++--- > doc/guides/rel_notes/deprecation.rst | 6 ++ > drivers/net/mlx4/mlx4.c | 1 + > drivers/net/mlx5/mlx5.c | 1 + > lib/librte_ether/rte_ethdev.c| 11 +-- > 5 files changed, 15 insertions(+), 13 deletions(-) > > -- > 2.1.4 > Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH] net/mlx4: workaround to verbs wrong error return

2017-07-31 Thread Adrien Mazarguil
w->ibv_flow)); > + /* Current verbs does not allow to check real > + * errors when the device was plugged out. > + */ > + ibv_destroy_flow(flow->ibv_flow); > flow->ibv_flow = NULL; > DEBUG("Flow %p removed", (void *)flow); > } > -- > 1.8.3.1 > This approach looks way too intrusive. How about making the claim_zero() definition not fail but still complain when compiled against a broken Verbs version instead? #include "mlx4_autoconf.h" [...] #ifndef HAVE_BROKEN_VERBS #define claim_zero(...) assert((__VA_ARGS__) == 0) #else /* HAVE_BROKEN_VERBS */ #define claim_zero(...) \ (void)(((__VA_ARGS__) == 0) || \ DEBUG("Assertion `" # __VA_ARGS__ "' failed (IGNORED)")) #endif /* HAVE_BROKEN_VERBS */ You could use auto-config-h.sh to generate the HAVE_BROKEN_VERBS definition in mlx4_autoconf.h (see mlx4 Makefile) based on some symbol, macro or type that only exists or doesn't exist yet in problematic releases for instance. -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH] net/mlx4: workaround to verbs wrong error return

2017-08-01 Thread Adrien Mazarguil
Hi Matan, On Mon, Jul 31, 2017 at 04:56:33PM +, Matan Azrad wrote: > Hi Adrien > > > -Original Message- > > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > > Sent: Monday, July 31, 2017 5:17 PM > > To: Matan Azrad > > Cc: dev@dp

Re: [dpdk-dev] [PATCH] net/mlx5: fix MTU update

2017-08-01 Thread Adrien Mazarguil
support") > Cc: sta...@dpdk.org > > Signed-off-by: Nelio Laranjeiro > Acked-by: Yongseok Koh Acked-by: Adrien Mazarguil Shouldn't this fix target an even older commit? cf37ca9563d5 ("mlx5: support MTU configuration") -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH] net/mlx4: workaround to verbs wrong error return

2017-08-01 Thread Adrien Mazarguil
Hi Matan, (snipping a bit of unnecessary context) On Tue, Aug 01, 2017 at 10:12:29AM +, Matan Azrad wrote: [...] > > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] [...] > > On Mon, Jul 31, 2017 at 04:56:33PM +, Matan Azrad wrote: [...] > > > >

[dpdk-dev] [PATCH v1 00/48] net/mlx4: trim and refactor entire PMD

2017-08-01 Thread Adrien Mazarguil
, as in mlx5. This rework targets DPDK 17.11. Adrien Mazarguil (48): net/mlx4: add consistency to copyright notices net/mlx4: remove limitation on number of instances net/mlx4: check max number of ports dynamically net/mlx4: remove useless compilation checks net/mlx4: remove secondary

[dpdk-dev] [PATCH v1 01/48] net/mlx4: add consistency to copyright notices

2017-08-01 Thread Adrien Mazarguil
owner. Signed-off-by: Adrien Mazarguil --- doc/guides/nics/mlx4.rst | 2 +- drivers/net/mlx4/Makefile| 4 ++-- drivers/net/mlx4/mlx4.c | 4 ++-- drivers/net/mlx4/mlx4.h | 4 ++-- drivers/net/mlx4/mlx4_flow.c | 2 +- drivers/net/mlx4/mlx4_flow.h | 2 +- 6 files changed, 9

[dpdk-dev] [PATCH v1 02/48] net/mlx4: remove limitation on number of instances

2017-08-01 Thread Adrien Mazarguil
an Ethernet device driver instead of a PCI driver spawning Ethernet devices. Getting rid of it simplifies device initialization. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 57 +++- 1 file changed, 3 insertions(+), 54 deletions(-) diff

[dpdk-dev] [PATCH v1 03/48] net/mlx4: check max number of ports dynamically

2017-08-01 Thread Adrien Mazarguil
Use maximum number reported by hardware capabilities as replacement for the static check on MLX4_PMD_MAX_PHYS_PORTS. Cc: Gaƫtan Rivet Cc: Allain Legacy Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 43 +-- drivers/net/mlx4/mlx4.h | 3

[dpdk-dev] [PATCH v1 04/48] net/mlx4: remove useless compilation checks

2017-08-01 Thread Adrien Mazarguil
to remove a few useless data path debugging messages behind compilation checks on never defined macros. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/Makefile| 12 drivers/net/mlx4/mlx4.c | 35 --- drivers/net/mlx4/mlx4.h | 2

[dpdk-dev] [PATCH v1 05/48] net/mlx4: remove secondary process support

2017-08-01 Thread Adrien Mazarguil
Current implementation is partial (Tx only), not convenient to use and not of primary concern. Remove this feature before refactoring the PMD. Signed-off-by: Adrien Mazarguil --- doc/guides/nics/features/mlx4.ini | 1 - doc/guides/nics/mlx4.rst | 2 - drivers/net/mlx4/mlx4.c

[dpdk-dev] [PATCH v1 06/48] net/mlx4: remove useless code

2017-08-01 Thread Adrien Mazarguil
Less code makes refactoring easier. No impact on functionality. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 17 + drivers/net/mlx4/mlx4.h | 12 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net

[dpdk-dev] [PATCH v1 07/48] net/mlx4: remove soft counters compilation option

2017-08-01 Thread Adrien Mazarguil
Software counters are mandatory since hardware counters are not implemented. Signed-off-by: Adrien Mazarguil --- config/common_base| 1 - doc/guides/nics/mlx4.rst | 6 -- drivers/net/mlx4/Makefile | 4 drivers/net/mlx4/mlx4.c | 37

[dpdk-dev] [PATCH v1 08/48] net/mlx4: remove scatter mode compilation option

2017-08-01 Thread Adrien Mazarguil
This option both sets the maximum number of segments for Rx/Tx packets and whether scattered mode is supported at all. This commit removes the latter as well as configuration file exposure since the most appropriate value should be decided at run-time. Signed-off-by: Adrien Mazarguil --- config

[dpdk-dev] [PATCH v1 09/48] net/mlx4: remove Tx inline compilation option

2017-08-01 Thread Adrien Mazarguil
This should be a run-time parameter. Signed-off-by: Adrien Mazarguil --- config/common_base| 1 - drivers/net/mlx4/Makefile | 4 drivers/net/mlx4/mlx4.c | 6 -- drivers/net/mlx4/mlx4.h | 4 4 files changed, 15 deletions(-) diff --git a/config/common_base b/config

[dpdk-dev] [PATCH v1 10/48] net/mlx4: remove allmulti and promisc support

2017-08-01 Thread Adrien Mazarguil
This is done in preparation for a major refactoring. Signed-off-by: Adrien Mazarguil --- doc/guides/nics/features/mlx4.ini | 2 - doc/guides/nics/mlx4.rst | 2 - drivers/net/mlx4/mlx4.c | 311 - drivers/net/mlx4/mlx4.h | 4 - 4

[dpdk-dev] [PATCH v1 11/48] net/mlx4: remove VLAN filter support

2017-08-01 Thread Adrien Mazarguil
This is done in preparation for a major refactoring. Signed-off-by: Adrien Mazarguil --- doc/guides/nics/features/mlx4.ini | 1 - doc/guides/nics/mlx4.rst | 1 - drivers/net/mlx4/mlx4.c | 206 +++-- drivers/net/mlx4/mlx4.h | 13

[dpdk-dev] [PATCH v1 12/48] net/mlx4: remove MAC address configuration support

2017-08-01 Thread Adrien Mazarguil
Only the default port MAC address remains and is not configurable. This is done in preparation for a major refactoring. Signed-off-by: Adrien Mazarguil --- doc/guides/nics/features/mlx4.ini | 2 - doc/guides/nics/mlx4.rst | 1 - drivers/net/mlx4/mlx4.c | 322

[dpdk-dev] [PATCH v1 14/48] net/mlx4: revert flow API RSS support

2017-08-01 Thread Adrien Mazarguil
. Removing support for the RSS flow rule action is the first step toward this goal. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 6 +- drivers/net/mlx4/mlx4.h | 5 - drivers/net/mlx4/mlx4_flow.c | 206 +++--- drivers/net/mlx4

[dpdk-dev] [PATCH v1 15/48] net/mlx4: revert RSS parent queue refactoring

2017-08-01 Thread Adrien Mazarguil
This reverts commit ff00a0dc5600dbb0a29e4aa7fa4b078f98c7a360. Support for several RSS parent queues was necessary to implement the RSS flow rule action, dropped in a prior commit. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 332

[dpdk-dev] [PATCH v1 16/48] net/mlx4: drop RSS support

2017-08-01 Thread Adrien Mazarguil
specific flow rules. There is no need for "ignored" Rx queues anymore since their number is no longer limited to powers of two. Signed-off-by: Adrien Mazarguil --- doc/guides/nics/features/mlx4.ini | 1 - doc/guides/nics/mlx4.rst | 13 -- drivers/net/mlx4/mlx4.c

[dpdk-dev] [PATCH v1 13/48] net/mlx4: drop MAC flows affecting all Rx queues

2017-08-01 Thread Adrien Mazarguil
it belongs. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 215 +++ drivers/net/mlx4/mlx4.h | 2 +- 2 files changed, 57 insertions(+), 160 deletions(-) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index dd42c96..c11e789

[dpdk-dev] [PATCH v1 17/48] net/mlx4: drop checksum offloads support

2017-08-01 Thread Adrien Mazarguil
The Verbs API used to implement Tx and Rx checksum offloads is deprecated. Support for these will be added back after refactoring the PMD. Signed-off-by: Adrien Mazarguil --- doc/guides/nics/features/mlx4.ini | 4 -- doc/guides/nics/mlx4.rst | 2 - drivers/net/mlx4/mlx4.c

[dpdk-dev] [PATCH v1 18/48] net/mlx4: drop packet type recognition support

2017-08-01 Thread Adrien Mazarguil
The Verbs API used to implement packet type recognition is deprecated. Support will be added back after refactoring the PMD. Signed-off-by: Adrien Mazarguil --- doc/guides/nics/features/mlx4.ini | 1 - drivers/net/mlx4/mlx4.c | 70 +- 2 files changed

[dpdk-dev] [PATCH v1 20/48] net/mlx4: drop inline receive support

2017-08-01 Thread Adrien Mazarguil
The Verbs API used to implement inline receive is deprecated. Support will be added back after refactoring the PMD. Signed-off-by: Moti Haimovsky Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 52 drivers/net/mlx4/mlx4.h | 1 - 2

[dpdk-dev] [PATCH v1 19/48] net/mlx4: drop scatter/gather support

2017-08-01 Thread Adrien Mazarguil
The Verbs API used to implement Tx and Rx burst functions is deprecated. Drop scatter/gather support to ease refactoring while maintaining basic single-segment Rx/Tx functionality in the meantime. Signed-off-by: Adrien Mazarguil --- doc/guides/nics/features/mlx4.ini | 1 - doc/guides/nics

[dpdk-dev] [PATCH v1 21/48] net/mlx4: use standard QP attributes

2017-08-01 Thread Adrien Mazarguil
The Verbs API used to set QP attributes is deprecated. Revert to the standard API since it actually supports the remaining ones. Signed-off-by: Moti Haimovsky Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 25 +++-- 1 file changed, 11 insertions(+), 14

[dpdk-dev] [PATCH v1 23/48] net/mlx4: revert multicast echo prevention

2017-08-01 Thread Adrien Mazarguil
This reverts commit 8b3ffe95e75d6d305992505005cbb95969874a15. Multicast loopback prevention is not part of the standard Verbs interface. Remove it temporarily. Signed-off-by: Moti Haimovsky Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/Makefile | 6 +- drivers/net/mlx4/mlx4.c | 7

[dpdk-dev] [PATCH v1 22/48] net/mlx4: revert resource domain support

2017-08-01 Thread Adrien Mazarguil
allocation interface. Signed-off-by: Moti Haimovsky Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 88 --- drivers/net/mlx4/mlx4.h | 2 - drivers/net/mlx4/mlx4_flow.c | 30 + 3 files changed, 20 insertions(+), 100 deletions

[dpdk-dev] [PATCH v1 24/48] net/mlx4: revert fast Verbs interface for Tx

2017-08-01 Thread Adrien Mazarguil
data path implementation. This one focuses on maintaining basic functionality in the meantime. Signed-off-by: Moti Haimovsky Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 120 ++- drivers/net/mlx4/mlx4.h | 4 +- 2 files changed, 52 inserti

[dpdk-dev] [PATCH v1 25/48] net/mlx4: revert fast Verbs interface for Rx

2017-08-01 Thread Adrien Mazarguil
data path implementation. This one focuses on maintaining basic functionality in the meantime. Signed-off-by: Moti Haimovsky Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 127 +++ drivers/net/mlx4/mlx4.h | 2 - 2 files changed, 33 insertions(+), 96

[dpdk-dev] [PATCH v1 27/48] net/mlx4: standardize on negative errno values

2017-08-01 Thread Adrien Mazarguil
). Standardize on negative errno values and rely on rte_errno instead of errno in all functions. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 485 --- 1 file changed, 274 insertions(+), 211 deletions(-) diff --git a/drivers/net/mlx4/mlx4.c b

[dpdk-dev] [PATCH v1 26/48] net/mlx4: simplify link update function

2017-08-01 Thread Adrien Mazarguil
Returning a different value when the current link status differs from the previous one was probably useful at some point in the past but is now meaningless; this value is ignored both internally (mlx4 PMD) and externally (ethdev wrapper). Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4

[dpdk-dev] [PATCH v1 29/48] net/mlx4: remove control path locks

2017-08-01 Thread Adrien Mazarguil
. This adds unnecessary complexity. Leave this role to wrapper functions in ethdev. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 90 +++ drivers/net/mlx4/mlx4.h | 4 -- drivers/net/mlx4/mlx4_flow.c | 15 +-- 3 files changed, 6

[dpdk-dev] [PATCH v1 28/48] net/mlx4: clean up coding style inconsistencies

2017-08-01 Thread Adrien Mazarguil
This addresses badly formatted comments and needless empty lines before refactoring functions into different files. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 89 --- drivers/net/mlx4/mlx4_flow.c | 1 - 2 files changed, 36 insertions

[dpdk-dev] [PATCH v1 30/48] net/mlx4: remove unnecessary wrapper functions

2017-08-01 Thread Adrien Mazarguil
Wrapper functions whose main purpose was to take a lock on the private structure are no longer needed since this lock does not exist anymore. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 61 -- drivers/net/mlx4/mlx4_flow.c | 106

[dpdk-dev] [PATCH v1 32/48] net/mlx4: use standard macro to get array size

2017-08-01 Thread Adrien Mazarguil
Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 11 ++- drivers/net/mlx4/mlx4.h | 3 --- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index 0f1169c..f4dc67f 100644 --- a/drivers/net/mlx4/mlx4.c +++ b

[dpdk-dev] [PATCH v1 31/48] net/mlx4: remove mbuf macro definitions

2017-08-01 Thread Adrien Mazarguil
These were originally used for compatibility between DPDK releases when this PMD was built out of tree. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 29 ++--- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/drivers/net/mlx4/mlx4.c b

[dpdk-dev] [PATCH v1 34/48] net/mlx4: use a single interrupt handle

2017-08-01 Thread Adrien Mazarguil
-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 32 drivers/net/mlx4/mlx4.h | 3 +-- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index 07a47ea..7fc9b4c 100644 --- a/drivers/net/mlx4/mlx4.c

[dpdk-dev] [PATCH v1 38/48] net/mlx4: compact interrupt functions

2017-08-01 Thread Adrien Mazarguil
interrupts (priv->intr_conf). This complexity can be avoided entirely since the PMD does not disable interrupts configuration parameters in case of error anymore. With this commit, only two functions are necessary to toggle interrupts (including Rx) during start/stop cycles. Signed-off-by: Adr

[dpdk-dev] [PATCH v1 37/48] net/mlx4: clean up interrupt functions prototypes

2017-08-01 Thread Adrien Mazarguil
emoves the unnecessary dev argument which can be retrieved through the private structure where needed. Documentation is updated accordingly. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 145 --- 1 file changed, 55 insertions(+), 90 deletions(-)

[dpdk-dev] [PATCH v1 33/48] net/mlx4: separate debugging macros

2017-08-01 Thread Adrien Mazarguil
The new definitions also rely on the existing DPDK logging subsystem instead of using fprintf() directly. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 2 +- drivers/net/mlx4/mlx4.h | 46 --- drivers/net/mlx4/mlx4_flow.c | 1 + drivers/net/mlx4

[dpdk-dev] [PATCH v1 35/48] net/mlx4: rename alarm field

2017-08-01 Thread Adrien Mazarguil
Make clear this field is related to interrupt handling. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 14 +++--- drivers/net/mlx4/mlx4.h | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index

[dpdk-dev] [PATCH v1 36/48] net/mlx4: refactor interrupt FD settings

2017-08-01 Thread Adrien Mazarguil
: Adrien Mazarguil --- drivers/net/mlx4/Makefile | 1 + drivers/net/mlx4/mlx4.c | 63 ++-- drivers/net/mlx4/mlx4.h | 4 +++ drivers/net/mlx4/mlx4_utils.c | 66 ++ drivers/net/mlx4/mlx4_utils.h | 4 +++ 5 files

[dpdk-dev] [PATCH v1 41/48] net/mlx4: separate Rx/Tx functions

2017-08-01 Thread Adrien Mazarguil
This commit groups all data plane functions (Rx/Tx) into a separate file and adjusts header files accordingly. Private functions are now prefixed with "mlx4_" to prevent them from conflicting with their mlx5 PMD counterparts at link time. No impact on functionality. Signed-off-

[dpdk-dev] [PATCH v1 42/48] net/mlx4: separate device control functions

2017-08-01 Thread Adrien Mazarguil
Private functions are now prefixed with "mlx4_" to prevent them from conflicting with their mlx5 PMD counterparts at link time. No impact on functionality. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/Makefile | 1 + drivers/net/mlx4/mlx4.c

[dpdk-dev] [PATCH v1 40/48] net/mlx4: separate Rx/Tx definitions

2017-08-01 Thread Adrien Mazarguil
Except for a minor documentation update on internal structure definitions to make them more Doxygen-friendly, there is no impact on functionality. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 13 +--- drivers/net/mlx4/mlx4.h | 69 +--- drivers/net

[dpdk-dev] [PATCH v1 39/48] net/mlx4: separate interrupt handling

2017-08-01 Thread Adrien Mazarguil
Private functions are now prefixed with "mlx4_" to prevent them from conflicting with their mlx5 PMD counterparts at link time. No impact on functionality. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/Makefile| 1 + drivers/net/mlx4/mlx4.c

[dpdk-dev] [PATCH v1 43/48] net/mlx4: separate Tx configuration functions

2017-08-01 Thread Adrien Mazarguil
Private functions are now prefixed with "mlx4_" to prevent them from conflicting with their mlx5 PMD counterparts at link time. No impact on functionality. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/Makefile| 1 + drivers/net/mlx4/mlx4.c

[dpdk-dev] [PATCH v1 44/48] net/mlx4: separate Rx configuration functions

2017-08-01 Thread Adrien Mazarguil
Private functions are now prefixed with "mlx4_" to prevent them from conflicting with their mlx5 PMD counterparts at link time. No impact on functionality. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/Makefile| 1 + drivers/net/mlx4/mlx4.c

[dpdk-dev] [PATCH v1 45/48] net/mlx4: group flow API handlers in common file

2017-08-01 Thread Adrien Mazarguil
Only the common filter control operation callback needs to be exposed. No impact on functionality. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 48 +- drivers/net/mlx4/mlx4_flow.c | 72 --- drivers/net/mlx4

[dpdk-dev] [PATCH v1 47/48] net/mlx4: separate memory management functions

2017-08-01 Thread Adrien Mazarguil
No impact on functionality. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/Makefile | 1 + drivers/net/mlx4/mlx4.c| 115 - drivers/net/mlx4/mlx4.h| 8 +- drivers/net/mlx4/mlx4_mr.c | 183 4 files changed, 188

[dpdk-dev] [PATCH v1 46/48] net/mlx4: rename private functions in flow API

2017-08-01 Thread Adrien Mazarguil
While internal static functions do not cause link time conflicts, this differentiates them from their mlx5 PMD counterparts while debugging. No impact on functionality. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 4 ++-- drivers/net/mlx4/mlx4_flow.c | 30

[dpdk-dev] [PATCH v1 48/48] net/mlx4: clean up includes and comments

2017-08-01 Thread Adrien Mazarguil
Add missing includes and sort them, then update/remove comments around them for consistency. Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 40 --- drivers/net/mlx4/mlx4.h | 3 +-- drivers/net/mlx4/mlx4_flow.c | 5 + drivers/net

Re: [dpdk-dev] [PATCH v1 03/48] net/mlx4: check max number of ports dynamically

2017-08-02 Thread Adrien Mazarguil
On Tue, Aug 01, 2017 at 05:35:30PM +, Legacy, Allain wrote: > > -Original Message- > > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > > Sent: Tuesday, August 01, 2017 12:54 PM > <...> > > @@ -5946,12 +5949,11 @@ mlx4_arg_parse(const cha

Re: [dpdk-dev] using rte_flow via tespmd with Intel X552

2017-08-02 Thread Adrien Mazarguil
mmunity or could > > > you just share it with me via an e-mail ?? > > > > > > [1] http://dpdk.org/ml/archives/users/2017-April/001786.html > > > > > > Thanks, > > > > > > Tetsuro > > > > > > # re-sending the e-mail because I failed to submit the e-mail to > > > us...@dpdk.org. > > > > > > -- > > > Tetsuro Nakamura NTT Network Service > > > Systems Laboratories > > > TEL:0422 59 6914(National)/+81 422 59 6914(International) 3-9-11, > > > Midori-Cho Musashino-Shi, Tokyo 180-8585 Japan > > > > -- Adrien Mazarguil 6WIND

[dpdk-dev] [PATCH 1/2] ethdev: fix C11 extensions in exported header

2017-08-04 Thread Adrien Mazarguil
[-Werror,-Wc11-extensions] Fixes: 5d109deffa87 ("ethdev: add traffic management API") Cc: Cristian Dumitrescu Signed-off-by: Adrien Mazarguil --- lib/librte_ether/rte_tm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/librte_ether/rte_tm.h b/lib/librte_ether/rte_tm.h ind

[dpdk-dev] [PATCH 2/2] cryptodev: fix C11 extensions in exported header

2017-08-04 Thread Adrien Mazarguil
AEAD parameters in crypto operation") Cc: Pablo de Lara Signed-off-by: Adrien Mazarguil --- lib/librte_cryptodev/rte_crypto_sym.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_cryptodev/rte_crypto_sym.h b/lib/librte_cryptodev/rte_crypto_sym.h index 58a33b8..0ceaa91 100644

Re: [dpdk-dev] [PATCH 1/1] net/mlx4: add port parameter

2017-03-16 Thread Adrien Mazarguil
des of strtoul() is useless, just that it seems overkill in this specific case. Using atoi() without any error checking would have been perfectly fine as well. Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] FW: Issues with ixgbe and rte_flow

2017-03-17 Thread Adrien Mazarguil
would be more complicated than the current > > approach of leaving the payload type field unspecified or set it to some > > custom value that PMDs may or may not accept depending on their > > capabilities. > > You're right. My comment was based on the misconception that it was mandatory > to correctly specify ether_types / next_protocol_id / ... Well thanks to that you've raised an interesting issue with the VLAN item (TBH Wenzhuo and other people warned me about that, at the time I was certain it would not be a problem.) I'll attempt to address it as soon as possible. Best regards, -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH 1/1] net/mlx4: update link status upon probing with lsc

2017-03-17 Thread Adrien Mazarguil
ced. > > Fixes: c4da6caa426d ("mlx4: handle link status interrupts") > Cc: sta...@dpdk.org > > Signed-off-by: Gaetan Rivet Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH 1/1] net/mlx4: add port parameter

2017-03-20 Thread Adrien Mazarguil
Hi Ferruh, On Mon, Mar 20, 2017 at 01:24:36PM +, Ferruh Yigit wrote: > On 3/16/2017 11:04 AM, Adrien Mazarguil wrote: > > On Fri, Mar 03, 2017 at 04:40:06PM +0100, Gaetan Rivet wrote: > >> Most ConnectX-3 adapters expose two physical ports on a single PCI bus > >> a

Re: [dpdk-dev] [PATCH v2 1/3] app/testpmd: add support for MPLS and GRE items

2017-03-23 Thread Adrien Mazarguil
{ > + /** > + * Lable (20b), TC (3b), Bottom of Stack (1b), TTL (8b). Typo, "Lable". > + */ > + uint32_t label_tc_s_ttl; > +}; > + > +/** Default mask for RTE_FLOW_ITEM_TYPE_MPLS. */ > +static const struct rte_flow_item_mpls rte_flow_item_mpls_mask = { > + .label_tc_s_ttl = 0xf, > +}; This default mask is wrong, it has to be specified in network order (you can include rte_byteorder.h if you need some #ifdef). > + > +/** > + * RTE_FLOW_ITEM_TYPE_GRE. > + * > + * Matches a GRE header. > + */ > +struct rte_flow_item_gre { > + /** > + * Checksum (1b), reserved 0 (12b), version (3b). > + * Refer to RFC 2784. > + */ > + uint16_t c_rsvd0_ver; > + uint16_t protocol; /**< Protocol type. */ > +}; Default mask is missing, you must add one. > + > +/** > * Matching pattern item definition. > * > * A pattern is formed by stacking items starting from the lowest protocol > -- > 2.5.5 > -- Adrien Mazarguil 6WIND

Re: [dpdk-dev] [PATCH 0/1] proposed minor change in rte_flow_validate semantics

2017-03-24 Thread Adrien Mazarguil
t does not allow different rule types. If after initialization, matching TCP, UDP and ICMP is possible, creating a UDP rule might subsequently prevent the creation of otherwise valid TCP and ICMP rules. rte_flow_validate() should (but is not forced to) check for that. What do you think about keeping the defined error codes as is and merging somehow my above statements in the documentation instead? -- Adrien Mazarguil 6WIND

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