[dpdk-dev] [PATCH 1/2] net/mlx4: get back RX flow functionality

2017-08-03 Thread Vasily Philipov
Getting hw directly on RX fast path without verbs call. Now the number of scatters is calculating on the fly, according to the maximum expected packet size. Signed-off-by: Vasily Philipov --- The series depends on: http://dpdk.org/dev/patchwork/patch/27313/ --- drivers/net/mlx4/mlx4.h

[dpdk-dev] [PATCH 2/2] net/mlx4: get back RX offloads

2017-08-03 Thread Vasily Philipov
Adding support for RX checksum and packet type HW offloads. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c| 11 drivers/net/mlx4/mlx4.h| 2 + drivers/net/mlx4/mlx4_ethdev.c | 7 ++- drivers/net/mlx4/mlx4_prm.h| 9 drivers/net/mlx4/mlx4_rxq.c

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

2017-07-09 Thread Vasily Philipov
Providing this parameter requests flow API isolated mode on all ports at initialization time. It ensures all traffic is received through the configured flow rules only (see flow command). Ports that do not support this mode are automatically discarded. Signed-off-by: Vasily Philipov --- app

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

2017-07-05 Thread Vasily Philipov
Yes sure, I will send it > -Original Message- > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Wednesday, July 05, 2017 18:32 > To: Vasily Philipov ; dev@dpdk.org > Cc: Adrien Mazarguil ; Nélio Laranjeiro > > Subject: Re: [dpdk-dev] [PATCH v8 1/4] app/

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

2017-07-05 Thread Vasily Philipov
poll mode driver") CC: sta...@dpdk.org Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index 16cafae..03c5c98 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/m

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

2017-07-05 Thread Vasily Philipov
or flow API RSS action support. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 382 +-- drivers/net/mlx4/mlx4.h | 17 +- drivers/net/mlx4/mlx4_flow.c | 15 ++ 3 files changed, 291 insertions(+), 123 deletions(-) diff --git a/d

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

2017-07-05 Thread Vasily Philipov
configuration (rte_flow_action_rss.queue[]). - Because a queue can be associated with a single RSS context, it cannot be targeted by multiple RSS actions simultaneously. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 6 +- drivers/net/mlx4/mlx4.h | 5 ++ drivers/net

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

2017-07-05 Thread Vasily Philipov
The user must request isolated mode before device configuration. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 57 +++- drivers/net/mlx4/mlx4.h | 1 + drivers/net/mlx4/mlx4_flow.c | 37 drivers/net

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

2017-07-05 Thread Vasily Philipov
Providing this parameter requests flow API isolated mode on all ports at initialization time. It ensures all traffic is received through the configured flow rules only (see flow command). Ports that do not support this mode are automatically discarded. Signed-off-by: Vasily Philipov --- app

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

2017-07-04 Thread Vasily Philipov
The user must request isolated mode before device configuration. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 57 +++- drivers/net/mlx4/mlx4.h | 1 + drivers/net/mlx4/mlx4_flow.c | 37 drivers/net

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

2017-07-04 Thread Vasily Philipov
configuration (rte_flow_action_rss.queue[]). - Because a queue can be associated with a single RSS context, it cannot be targeted by multiple RSS actions simultaneously. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 2 +- drivers/net/mlx4/mlx4.h | 5 ++ drivers/net

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

2017-07-04 Thread Vasily Philipov
or flow API RSS action support. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 380 drivers/net/mlx4/mlx4.h | 17 ++- 2 files changed, 274 insertions(+), 123 deletions(-) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.

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

2017-07-04 Thread Vasily Philipov
Providing this parameter requests flow API isolated mode on all ports at initialization time. It ensures all traffic is received through the configured flow rules only (see flow command). Ports that do not support this mode are automatically discarded. Signed-off-by: Vasily Philipov --- app

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

2017-07-02 Thread Vasily Philipov
configuration (rte_flow_action_rss.queue[]). - Because a queue can be associated with a single RSS context, it cannot be targeted by multiple RSS actions simultaneously. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 21 +++-- drivers/net/mlx4/mlx4.h | 5 ++ drivers

[dpdk-dev] [PATCH v6 2/4] net/mlx4: refactor RSS parent queue allocation

2017-07-02 Thread Vasily Philipov
ent set of queues, the PMD must have the ability to dynamically allocate several parent queues, one per RSS group. Refactor RSS parent queue allocations (currently limited to a single parent) in preparation for flow API RSS action support. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/ml

[dpdk-dev] [PATCH v6 3/4] net/mlx4: implement isolated mode from flow API

2017-07-02 Thread Vasily Philipov
The user must request isolated mode before device configuration, the default RSS ring isn't created in this case. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 58 +++- drivers/net/mlx4/mlx4.h | 1 + drivers/net/mlx4/mlx4_f

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

2017-07-02 Thread Vasily Philipov
Providing this parameter requests flow API isolated mode on all ports at initialization time. It ensures all traffic is received through the configured flow rules only (see flow command). Ports that do not support this mode are automatically discarded. Signed-off-by: Vasily Philipov --- app

[dpdk-dev] [PATCH v5 1/4] net/mlx4: RSS parent queues new method maintenance

2017-06-28 Thread Vasily Philipov
Insert just created parent queue in a list, keep the list in private structure. Signed-off-by: Vasily Philipov --- The series depends on: http://dpdk.org/ml/archives/dev/2017-April/064327.html http://dpdk.org/dev/patchwork/patch/23741/ --- drivers/net/mlx4/mlx4.c | 377

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

2017-06-28 Thread Vasily Philipov
The user must request isolated mode before device configuration, the default RSS ring isn't created in this case. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 58 +++- drivers/net/mlx4/mlx4.h | 1 + drivers/net/mlx4/mlx4_f

[dpdk-dev] [PATCH v5 4/4] app/testpmd: add isolated mode parameter

2017-06-28 Thread Vasily Philipov
In case if --isolated-mode parameter was added to the command line the rte flow isolate action will be applied on each port before the device configuring. Signed-off-by: Vasily Philipov --- app/test-pmd/parameters.c | 3 +++ app/test-pmd/testpmd.c| 14 ++ app/test-pmd/testpmd.h

[dpdk-dev] [PATCH v5 3/4] net/mlx4: support for the RSS flow action

2017-06-28 Thread Vasily Philipov
The isolated mode should be enabled. The number of queues in RSS ring must be power of 2. The sharing a queue between several RSS rings is impossible. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 21 +++-- drivers/net/mlx4/mlx4.h | 5 ++ drivers/net/mlx4/mlx4_flow.c

[dpdk-dev] [PATCH] mbuf: fix debug checks for headroom and tailroom

2017-06-28 Thread Vasily Philipov
rte_pktmbuf_headroom() and rte_pktmbuf_tailroom() should be usable with any segment, not only with headered ones, so is_header should be 0 when we call for sanity check inside them. Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Vasily Philipov

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

2017-06-25 Thread Vasily Philipov
> -Original Message- > From: Wu, Jingjing [mailto:jingjing...@intel.com] > Sent: Thursday, June 22, 2017 04:13 > To: Vasily Philipov ; dev@dpdk.org > Cc: Adrien Mazarguil ; Nélio Laranjeiro > > Subject: RE: [dpdk-dev] [PATCH v4 4/4] app/testpmd: add isol

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

2017-06-21 Thread Vasily Philipov
> -Original Message- > From: Wu, Jingjing [mailto:jingjing...@intel.com] > Sent: Tuesday, June 20, 2017 04:27 > To: Vasily Philipov ; dev@dpdk.org > Cc: Adrien Mazarguil ; Nélio Laranjeiro > > Subject: RE: [dpdk-dev] [PATCH v4 4/4] app/testpmd: add isol

[dpdk-dev] [PATCH v4 3/4] net/mlx4: support for the RSS flow action

2017-06-04 Thread Vasily Philipov
The isolated mode should be enabled. The number of queues in RSS ring must be power of 2. The sharing a queue between several RSS rings is impossible. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 21 +++-- drivers/net/mlx4/mlx4.h | 5 ++ drivers/net/mlx4/mlx4_flow.c

[dpdk-dev] [PATCH v4 4/4] app/testpmd: add isolated mode parameter

2017-06-04 Thread Vasily Philipov
received through the configured flow rules only (see flow command). This automatically discards ports that do not support this mode. Signed-off-by: Vasily Philipov --- app/test-pmd/parameters.c | 3 +++ app/test-pmd/testpmd.c| 14 ++ app/test-pmd/testpmd.h| 1 + 3 files

[dpdk-dev] [PATCH v4 1/4] net/mlx4: RSS parent queues new method maintenance

2017-06-04 Thread Vasily Philipov
Insert just created parent queue in a list, keep the list in private structure. Signed-off-by: Vasily Philipov --- The series depends on: http://dpdk.org/ml/archives/dev/2017-April/064327.html http://dpdk.org/dev/patchwork/patch/23741/ --- drivers/net/mlx4/mlx4.c | 375

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

2017-06-04 Thread Vasily Philipov
The user must request isolated mode before device configuration, the default RSS ring isn't created in this case. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 58 +++- drivers/net/mlx4/mlx4.h | 1 + drivers/net/mlx4/mlx4_f

[dpdk-dev] [PATCH v3 3/3] app/testpmd: add isolated mode parameter

2017-05-25 Thread Vasily Philipov
In case if --isolated-mode parameter was added to the command line the rte flow isolate action will be applied on each port before the device configuring. Signed-off-by: Vasily Philipov --- app/test-pmd/parameters.c | 3 +++ app/test-pmd/testpmd.c| 14 ++ app/test-pmd/testpmd.h

[dpdk-dev] [PATCH v3 1/3] net/mlx4: implement isolated mode from flow API

2017-05-25 Thread Vasily Philipov
The user must request isolated mode before device configuration, the default RSS ring isn't created in this case. Signed-off-by: Vasily Philipov --- The series depends on: http://dpdk.org/ml/archives/dev/2017-April/064327.html http://dpdk.org/dev/patchwork/patch/23741/ --- drivers/net

[dpdk-dev] [PATCH v3 2/3] net/mlx4: support for the RSS flow action

2017-05-25 Thread Vasily Philipov
The isolated mode should be enabled. The number of queues in RSS ring must be power of 2. The sharing a queue between several RSS rings is impossible. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 2 +- drivers/net/mlx4/mlx4.h | 5 ++ drivers/net/mlx4/mlx4_flow.c

[dpdk-dev] [PATCH v2 2/3] net/mlx4: support for the RSS flow action

2017-05-25 Thread Vasily Philipov
The isolated mode should be enabled. The number of queues in RSS ring must be power of 2. The sharing a queue between several RSS rings is impossible. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 2 +- drivers/net/mlx4/mlx4.h | 5 ++ drivers/net/mlx4/mlx4_flow.c

[dpdk-dev] [PATCH v2 3/3] app/testpmd: add isolated mode parameter

2017-05-25 Thread Vasily Philipov
In case if --isolated-mode parameter was added to the command line the rte flow isolate action will be applied on each port before the device configuring. Signed-off-by: Vasily Philipov --- app/test-pmd/parameters.c | 3 +++ app/test-pmd/testpmd.c| 14 ++ app/test-pmd/testpmd.h

[dpdk-dev] [PATCH v2 1/3] net/mlx4: implement isolated mode from flow API

2017-05-25 Thread Vasily Philipov
The user must request isolated mode before device configuration, the default RSS ring isn't created in this case. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 431 ++- drivers/net/mlx4/mlx4.h | 18 +- drivers/net

[dpdk-dev] [PATCH 3/3] app/testpmd: add isolated mode parameter

2017-05-25 Thread Vasily Philipov
In case if --isolated-mode parameter was added to the command line the rte flow isolate action will be applied on each port before the device configuring. Signed-off-by: Vasily Philipov --- app/test-pmd/parameters.c | 3 +++ app/test-pmd/testpmd.c| 14 ++ app/test-pmd/testpmd.h

[dpdk-dev] [PATCH 2/3] net/mlx4: support for the RSS flow action

2017-05-25 Thread Vasily Philipov
The isolated mode should be enabled. The number of queues in RSS ring must be power of 2. The sharing a queue between several RSS rings is impossible. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 2 +- drivers/net/mlx4/mlx4.h | 5 ++ drivers/net/mlx4/mlx4_flow.c

[dpdk-dev] [PATCH 1/3] net/mlx4: implement isolated mode from flow API

2017-05-25 Thread Vasily Philipov
The user must request isolated mode before device configuration, the default RSS ring isn't created in this case. Signed-off-by: Vasily Philipov --- The series depends on: http://dpdk.org/ml/archives/dev/2017-April/064327.html http://dpdk.org/dev/patchwork/patch/23741/ --- drivers/net

[dpdk-dev] [PATCH] net/mlx4: use a single drop queue for all drop flows

2017-04-03 Thread Vasily Philipov
Signed-off-by: Vasily Philipov Acked-by: Nelio Laranjeiro --- This patch applies on top of [1] [1] http://dpdk.org/dev/patchwork/patch/21415/ drivers/net/mlx4/mlx4.h | 1 + drivers/net/mlx4/mlx4_flow.c | 149 --- drivers/net/mlx4/mlx4_flow.h

[dpdk-dev] [PATCH] net/mlx: enhance Rx scatter mode detection

2017-03-28 Thread Vasily Philipov
Toggle Rx scatter mode based on the scatter_enable flag and the maximum packet size only instead of deriving this information from the jumbo_frame setting and the MTU configuration. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c| 27 +++ drivers/net

[dpdk-dev] [PATCH v3 2/2] net/mlx4: support basic flow items and actions

2017-03-04 Thread Vasily Philipov
Adding support for the next items: eth, vlan, ipv4, udp, tcp and for the next actions: queue, drop Signed-off-by: Vasily Philipov --- drivers/net/mlx4/Makefile|3 +- drivers/net/mlx4/mlx4.c | 91 +++- drivers/net/mlx4/mlx4.h |3 + drivers/net/mlx4/mlx4_flow.c | 1043

[dpdk-dev] [PATCH v3 1/2] net/mlx4: split the definitions to the header file

2017-03-04 Thread Vasily Philipov
Make priv_lock/priv_unlock functions and some other structs/defines visible from different source files by placing them into mlx4.h header. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 193 +--- drivers/net/mlx4/mlx4.h | 187

Re: [dpdk-dev] [PATCH v2 1/2] net/mlx4: split the definitions to the header file

2017-02-23 Thread Vasily Philipov
Hi Ferruh, > -Original Message- > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Wednesday, February 22, 2017 21:05 > To: Vasily Philipov ; dev@dpdk.org > Cc: Adrien Mazarguil ; Nélio Laranjeiro > > Subject: Re: [dpdk-dev] [PATCH v2 1/2] net/mlx4: split t

[dpdk-dev] [PATCH v2 1/2] net/mlx4: split the definitions to the header file

2017-02-22 Thread Vasily Philipov
Make some structs/defines visible from different source files by placing them into mlx4.h header. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 183 ++ drivers/net/mlx4/mlx4.h | 187 +++- 2

[dpdk-dev] [PATCH v2 2/2] net/mlx4: support basic flow items and actions

2017-02-22 Thread Vasily Philipov
Adding support for the next items: eth, vlan, ipv4, udp, tcp and for the next actions: queue, drop --- drivers/net/mlx4/Makefile|3 +- drivers/net/mlx4/mlx4.c | 103 - drivers/net/mlx4/mlx4.h |3 + drivers/net/mlx4/mlx4_flow.c | 1053 +

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

2017-02-21 Thread Vasily Philipov
Adding support for the next items: eth, vlan, ipv4, udp, tcp and for the next actions: queue, drop Signed-off-by: Vasily Philipov --- drivers/net/mlx4/Makefile|3 +- drivers/net/mlx4/mlx4.c | 60 ++- drivers/net/mlx4/mlx4.h |3 + drivers/net/mlx4/mlx4_flow.c | 1053

[dpdk-dev] [PATCH 1/2] net/mlx4: split the definitions to the header file

2017-02-21 Thread Vasily Philipov
Make some structs/defines visible from different source files by placing them into mlx4.h header. Signed-off-by: Vasily Philipov --- drivers/net/mlx4/mlx4.c | 183 ++ drivers/net/mlx4/mlx4.h | 187 +++- 2

Re: [dpdk-dev] [PATCH v11] drivers/net:new TUN/TAP device PMD

2016-12-12 Thread Vasily Philipov
| 765 > > drivers/net/tap/rte_pmd_tap_version.map | 4 + > mk/rte.app.mk | 1 + > 10 files changed, 980 insertions(+) Tested-by: Vasily Philipov

[dpdk-dev] dpdk bonding net driver

2016-09-27 Thread Vasily Philipov
Hi all, I am trying to run testpmd using bonding: I have downloaded DPDK 16.07 and run the following command line: dpdk-install/bin/testpmd -c 0xf -n 4 --vdev 'eth_bond0,mode=0, slave=:08:00.0' -- --port-topology=chained And this is the error I get: EAL: Detected 28 lcore(s