[dpdk-dev] [PATCH 1/2] net/mlx5: query HCA for enabled FLEX parser protos

2019-10-16 Thread Moti Haimovsky
This commit add querying the HCA which FLEX protocols are already enabled. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_devx_cmds.c | 2 ++ drivers/net/mlx5/mlx5_prm.h | 12 3 files changed, 15 insertions(+) diff --git a

[dpdk-dev] [PATCH 2/2] net/mlx5: add flow match on GENEVE item

2019-10-16 Thread Moti Haimovsky
This commit adds support for matching flows on Geneve headers. Signed-off-by: Moti Haimovsky --- doc/guides/nics/mlx5.rst | 10 +++- doc/guides/rel_notes/release_19_11.rst | 1 + drivers/net/mlx5/mlx5.h| 2 + drivers/net/mlx5/mlx5_devx_cmds.c | 6

[dpdk-dev] [PATCH v2] net/mlx5: retry when link update fails

2019-10-16 Thread Moti Haimovsky
allow retrieving the link status. Signed-off-by: Moti Haimovsky --- V2: * Code rebase --- drivers/net/mlx5/mlx5_defs.h | 3 +++ drivers/net/mlx5/mlx5_ethdev.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h

[dpdk-dev] [PATCH v5 6/7] net/mlx5: supp modify VLAN ID on new VLAN header

2019-09-09 Thread Moti Haimovsky
This commit adds support for modifying the VLAN ID (VID) field in an about-to-be-pushed VLAN header. This feature can only modify the VID field of a new VLAN header yet to be pushed. It does not support modifying an existing or already pushed VLAN headers. Signed-off-by: Moti Haimovsky --- v4

[dpdk-dev] [PATCH v5 4/7] net/mlx5: support push flow action on VLAN header

2019-09-09 Thread Moti Haimovsky
. Signed-off-by: Moti Haimovsky --- v5: - Fixed bug in retrieving VLAN VID and PCP from the existing VLAN flow item. --- doc/guides/nics/mlx5.rst | 6 +- doc/guides/rel_notes/release_19_11.rst | 1 + drivers/net/mlx5/mlx5.h| 2 + drivers/net/mlx5/mlx5_flow.h

[dpdk-dev] [PATCH v5 5/7] net/mlx5: support modify VLAN priority on VLAN hdr

2019-09-09 Thread Moti Haimovsky
This commit adds support for modifying the VLAN priority (PCP) field in about-to-be-pushed VLAN header. This feature can only modify the PCP field of a new VLAN header yet to be pushed. It does not support modifying an existing or already pushed VLAN headers. Signed-off-by: Moti Haimovsky --- v4

[dpdk-dev] [PATCH v5 7/7] net/mlx5: supp modify VLAN ID on existing VLAN hdr

2019-09-09 Thread Moti Haimovsky
This commit adds support for modifying the VID of the outermost VLAN header already present in the packet. Signed-off-by: Moti Haimovsky --- doc/guides/nics/mlx5.rst| 20 - drivers/net/mlx5/mlx5_flow.h| 3 +- drivers/net/mlx5/mlx5_flow_dv.c | 89

[dpdk-dev] [PATCH v5 1/7] net/mlx5: support for an action search in a list

2019-09-09 Thread Moti Haimovsky
This commit adds a helper routine that supports searching for a specific action in a list of actions. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5_flow.c | 23 +++ drivers/net/mlx5/mlx5_flow.h | 3 +++ 2 files changed, 26 insertions(+) diff --git a/drivers/net

[dpdk-dev] [PATCH v5 2/7] net/mlx5: add VLAN push/pop DR commands to glue

2019-09-09 Thread Moti Haimovsky
This commit adds the mlx5dv VLAN push and pop commands to mlx5_glue interface. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/Makefile| 5 + drivers/net/mlx5/meson.build | 2 ++ drivers/net/mlx5/mlx5_glue.c | 29 + drivers/net/mlx5/mlx5_glue.h | 6

[dpdk-dev] [PATCH v5 0/7] net/mlx5: support for flow action on VLAN header

2019-09-09 Thread Moti Haimovsky
release notes. Moti Haimovsky (7): net/mlx5: support for an action search in a list net/mlx5: add VLAN push/pop DR commands to glue net/mlx5: support pop flow action on VLAN header net/mlx5: support push flow action on VLAN header net/mlx5: support modify VLAN priority on VLAN hdr net/mlx5

[dpdk-dev] [PATCH v5 3/7] net/mlx5: support pop flow action on VLAN header

2019-09-09 Thread Moti Haimovsky
This commit adds support for RTE_FLOW_ACTION_TYPE_OF_POP_VLAN via direct verbs flow rules. Signed-off-by: Moti Haimovsky --- doc/guides/nics/mlx5.rst | 10 + doc/guides/rel_notes/release_19_11.rst | 6 +++ drivers/net/mlx5/mlx5.c| 9 drivers/net/mlx5

[dpdk-dev] [PATCH] net/mlx5: retry when link update fails

2019-09-04 Thread Moti Haimovsky
allow retrieving the link status. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5_defs.h | 3 +++ drivers/net/mlx5/mlx5_ethdev.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h index d7440fd..06eb192

[dpdk-dev] [PATCH v4 6/7] net/mlx5: supp modify VLAN ID on new VLAN header

2019-09-03 Thread Moti Haimovsky
This commit adds support for modifying the VLAN ID (VID) field in an about-to-be-pushed VLAN header. This feature can only modify the VID field of a new VLAN header yet to be pushed. It does not support modifying an existing or already pushed VLAN headers. Signed-off-by: Moti Haimovsky --- v4

[dpdk-dev] [PATCH v4 7/7] net/mlx5: supp modify VLAN ID on existing VLAN hdr

2019-09-03 Thread Moti Haimovsky
This commit adds support for modifying the VID of the outermost VLAN header already present in the packet. Signed-off-by: Moti Haimovsky --- doc/guides/nics/mlx5.rst| 20 - drivers/net/mlx5/mlx5_flow.h| 3 +- drivers/net/mlx5/mlx5_flow_dv.c | 90

[dpdk-dev] [PATCH v4 2/7] net/mlx5: add VLAN push/pop DR commands to glue

2019-09-03 Thread Moti Haimovsky
This commit adds the mlx5dv VLAN push and pop commands to mlx5_glue interface. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/Makefile| 5 + drivers/net/mlx5/meson.build | 2 ++ drivers/net/mlx5/mlx5_glue.c | 29 + drivers/net/mlx5/mlx5_glue.h | 6

[dpdk-dev] [PATCH v4 4/7] net/mlx5: support push flow action on VLAN header

2019-09-03 Thread Moti Haimovsky
. Signed-off-by: Moti Haimovsky --- doc/guides/nics/mlx5.rst | 6 +- doc/guides/rel_notes/release_19_11.rst | 1 + drivers/net/mlx5/mlx5.h| 2 + drivers/net/mlx5/mlx5_flow.h | 18 ++- drivers/net/mlx5/mlx5_flow_dv.c| 264

[dpdk-dev] [PATCH v4 5/7] net/mlx5: support modify VLAN priority on VLAN hdr

2019-09-03 Thread Moti Haimovsky
This commit adds support for modifying the VLAN priority (PCP) field in about-to-be-pushed VLAN header. This feature can only modify the PCP field of a new VLAN header yet to be pushed. It does not support modifying an existing or already pushed VLAN headers. Signed-off-by: Moti Haimovsky --- v4

[dpdk-dev] [PATCH v4 1/7] net/mlx5: support for an action search in a list

2019-09-03 Thread Moti Haimovsky
This commit adds a helper routine that supports searching for a specific action in a list of actions. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5_flow.c | 23 +++ drivers/net/mlx5/mlx5_flow.h | 3 +++ 2 files changed, 26 insertions(+) diff --git a/drivers/net

[dpdk-dev] [PATCH v4 3/7] net/mlx5: support pop flow action on VLAN header

2019-09-03 Thread Moti Haimovsky
This commit adds support for RTE_FLOW_ACTION_TYPE_OF_POP_VLAN via direct verbs flow rules. Signed-off-by: Moti Haimovsky --- doc/guides/nics/mlx5.rst | 9 doc/guides/rel_notes/release_19_11.rst | 6 +++ drivers/net/mlx5/mlx5.c| 9 drivers/net/mlx5/mlx5

[dpdk-dev] [PATCH v4 0/7] net/mlx5: support for flow action on VLAN header

2019-09-03 Thread Moti Haimovsky
PMD using the Direct Verbs interface. v2: - Code rebase on latest commits. v3: - mlx5 documentation update. v4: - Update the release notes with new the new features. - Minor bug fixes. Moti Haimovsky (7): net/mlx5: support for an action search in a list net/mlx5: add VLAN push/pop DR commands

[dpdk-dev] [PATCH v3 6/7] net/mlx5: supp modify VLAN ID on new VLAN header

2019-09-02 Thread Moti Haimovsky
This commit adds support for modifying the VLAN ID (VID) field in an about-to-be-pushed VLAN header. This feature can only modify the VID field of a new VLAN header yet to be pushed. It does not support modifying an existing or already pushed VLAN headers. Signed-off-by: Moti Haimovsky --- doc

[dpdk-dev] [PATCH v3 7/7] net/mlx5: supp modify VLAN ID on existing VLAN hdr

2019-09-02 Thread Moti Haimovsky
This commit adds support for modifying the VID of the outermost VLAN header already present in the packet. Signed-off-by: Moti Haimovsky --- doc/guides/nics/mlx5.rst| 20 - drivers/net/mlx5/mlx5_flow.h| 3 +- drivers/net/mlx5/mlx5_flow_dv.c | 90

[dpdk-dev] [PATCH v3 5/7] net/mlx5: support modify VLAN priority on VLAN hdr

2019-09-02 Thread Moti Haimovsky
This commit adds support for modifying the VLAN priority (PCP) field in about-to-be-pushed VLAN header. This feature can only modify the PCP field of a new VLAN header yet to be pushed. It does not support modifying an existing or already pushed VLAN headers. Signed-off-by: Moti Haimovsky

[dpdk-dev] [PATCH v3 1/7] net/mlx5: support for an action search in a list

2019-09-02 Thread Moti Haimovsky
This commit adds a helper routine that supports searching for a specific action in a list of actions. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5_flow.c | 23 +++ drivers/net/mlx5/mlx5_flow.h | 3 +++ 2 files changed, 26 insertions(+) diff --git a/drivers/net

[dpdk-dev] [PATCH v3 4/7] net/mlx5: support push flow action on VLAN header

2019-09-02 Thread Moti Haimovsky
. Signed-off-by: Moti Haimovsky --- doc/guides/nics/mlx5.rst| 6 +- drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow.h| 18 ++- drivers/net/mlx5/mlx5_flow_dv.c | 264 4 files changed, 286 insertions(+), 4 deletions(-) diff --git

[dpdk-dev] [PATCH v3 2/7] net/mlx5: add VLAN push/pop DR commands to glue

2019-09-02 Thread Moti Haimovsky
This commit adds the mlx5dv VLAN push and pop commands to mlx5_glue interface. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/Makefile| 5 + drivers/net/mlx5/meson.build | 2 ++ drivers/net/mlx5/mlx5_glue.c | 29 + drivers/net/mlx5/mlx5_glue.h | 6

[dpdk-dev] [PATCH v3 3/7] net/mlx5: support pop flow action on VLAN header

2019-09-02 Thread Moti Haimovsky
This commit adds support for RTE_FLOW_ACTION_TYPE_OF_POP_VLAN via direct verbs flow rules. Signed-off-by: Moti Haimovsky --- doc/guides/nics/mlx5.rst| 6 drivers/net/mlx5/mlx5.c | 9 + drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_flow.h| 5

[dpdk-dev] [PATCH v3 0/7] net/mlx5: support for flow action on VLAN header

2019-09-02 Thread Moti Haimovsky
PMD using the Direct Verbs interface. v2: - Code rebase on latest commits. v3: - mlx5 documentation update. Moti Haimovsky (7): net/mlx5: support for an action search in a list net/mlx5: add VLAN push/pop DR commands to glue net/mlx5: support pop flow action on VLAN header net/mlx5

[dpdk-dev] [PATCH v2 2/7] net/mlx5: add VLAN push/pop DR commands to glue

2019-09-01 Thread Moti Haimovsky
This commit adds the mlx5dv VLAN push and pop commands to mlx5_glue interface. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/Makefile| 5 + drivers/net/mlx5/meson.build | 2 ++ drivers/net/mlx5/mlx5_glue.c | 29 + drivers/net/mlx5/mlx5_glue.h | 6

[dpdk-dev] [PATCH v2 4/7] net/mlx5: support push flow action on VLAN header

2019-09-01 Thread Moti Haimovsky
. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow.h| 18 ++- drivers/net/mlx5/mlx5_flow_dv.c | 264 3 files changed, 282 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net

[dpdk-dev] [PATCH v2 7/7] net/mlx5: supp modify VLAN ID on existing VLAN hdr

2019-09-01 Thread Moti Haimovsky
This commit adds support for modifying the VID of the outermost VLAN header already present in the packet. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5_flow.h| 3 +- drivers/net/mlx5/mlx5_flow_dv.c | 90 +++-- drivers/net/mlx5/mlx5_prm.h

[dpdk-dev] [PATCH v2 5/7] net/mlx5: support modify VLAN priority on VLAN hdr

2019-09-01 Thread Moti Haimovsky
This commit adds support for modifying the VLAN priority (PCP) field in about-to-be-pushed VLAN header. This feature can only modify the PCP field of a new VLAN header yet to be pushed. It does not support modifying an existing or already pushed VLAN headers. Signed-off-by: Moti Haimovsky

[dpdk-dev] [PATCH v2 1/7] net/mlx5: support for an action search in a list

2019-09-01 Thread Moti Haimovsky
This commit adds a helper routine that supports searching for a specific action in a list of actions. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5_flow.c | 23 +++ drivers/net/mlx5/mlx5_flow.h | 3 +++ 2 files changed, 26 insertions(+) diff --git a/drivers/net

[dpdk-dev] [PATCH v2 6/7] net/mlx5: supp modify VLAN ID on new VLAN header

2019-09-01 Thread Moti Haimovsky
This commit adds support for modifying the VLAN ID (VID) field in an about-to-be-pushed VLAN header. This feature can only modify the VID field of a new VLAN header yet to be pushed. It does not support modifying an existing or already pushed VLAN headers. Signed-off-by: Moti Haimovsky

[dpdk-dev] [PATCH v2 3/7] net/mlx5: support pop flow action on VLAN header

2019-09-01 Thread Moti Haimovsky
This commit adds support for RTE_FLOW_ACTION_TYPE_OF_POP_VLAN via direct verbs flow rules. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5.c | 9 + drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_flow.h| 5 ++- drivers/net/mlx5/mlx5_flow_dv.c | 78

[dpdk-dev] [PATCH v2 0/7] net/mlx5: support for flow action on VLAN header

2019-09-01 Thread Moti Haimovsky
PMD using the Direct Verbs interface. v2: - Code rebase on latest commits. Moti Haimovsky (7): net/mlx5: support for an action search in a list net/mlx5: add VLAN push/pop DR commands to glue net/mlx5: support pop flow action on VLAN header net/mlx5: support push flow action on VLAN header

[dpdk-dev] [PATCH 5/7] net/mlx5: support modify VLAN priority on VLAN hdr

2019-08-06 Thread Moti Haimovsky
This commit adds support for modifying the VLAN priority (PCP) field in about-to-be-pushed VLAN header. This feature can only modify the PCP field of a new VLAN header yet to be pushed. It does not support modifying an existing or already pushed VLAN headers. Signed-off-by: Moti Haimovsky

[dpdk-dev] [PATCH 3/7] net/mlx5: support pop flow action on VLAN header

2019-08-06 Thread Moti Haimovsky
This commit adds support for RTE_FLOW_ACTION_TYPE_OF_POP_VLAN via direct verbs flow rules. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5.c | 9 + drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_flow.h| 5 ++- drivers/net/mlx5/mlx5_flow_dv.c | 78

[dpdk-dev] [PATCH 6/7] net/mlx5: supp modify VLAN ID on new VLAN header

2019-08-06 Thread Moti Haimovsky
This commit adds support for modifying the VLAN ID (VID) field in an about-to-be-pushed VLAN header. This feature can only modify the VID field of a new VLAN header yet to be pushed. It does not support modifying an existing or already pushed VLAN headers. Signed-off-by: Moti Haimovsky

[dpdk-dev] [PATCH 4/7] net/mlx5: support push flow action on VLAN header

2019-08-06 Thread Moti Haimovsky
. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow.h| 18 ++- drivers/net/mlx5/mlx5_flow_dv.c | 264 3 files changed, 282 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net

[dpdk-dev] [PATCH 7/7] net/mlx5: supp modify VLAN ID on existing VLAN hdr

2019-08-06 Thread Moti Haimovsky
This commit adds support for modifying the VID of the outermost VLAN header already present in the packet. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5_flow.h| 3 +- drivers/net/mlx5/mlx5_flow_dv.c | 90 +++-- drivers/net/mlx5/mlx5_prm.h

[dpdk-dev] [PATCH 2/7] net/mlx5: add VLAN push/pop DR commands to glue

2019-08-06 Thread Moti Haimovsky
This commit adds the mlx5dv VLAN push and pop commands to mlx5_glue interface. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/Makefile| 5 + drivers/net/mlx5/meson.build | 2 ++ drivers/net/mlx5/mlx5_glue.c | 29 + drivers/net/mlx5/mlx5_glue.h | 6

[dpdk-dev] [PATCH 1/7] net/mlx5: support for an action search in a list

2019-08-06 Thread Moti Haimovsky
This commit adds a helper routine that supports searching for a specific action in a list of actions. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5_flow.c | 23 +++ drivers/net/mlx5/mlx5_flow.h | 3 +++ 2 files changed, 26 insertions(+) diff --git a/drivers/net

[dpdk-dev] [PATCH 0/7] net/mlx5: support for flow action on VLAN header

2019-08-06 Thread Moti Haimovsky
PMD using the Direct Verbs interface. Moti Haimovsky (7): net/mlx5: support for an action search in a list net/mlx5: add VLAN push/pop DR commands to glue net/mlx5: support pop flow action on VLAN header net/mlx5: support push flow action on VLAN header net/mlx5: support modify VLAN

Re: [dpdk-dev] [PATCH 2/2] app/testpmd: add bits per second to statistics

2019-07-30 Thread Moti Haimovsky
statistics is very useful for performance testing. > > Add bits per second statistics for Rx and Tx. > > Signed-off-by: Matan Azrad Acked-by: Moti Haimovsky > --- > app/test-pmd/config.c | 24 > 1 file changed, 20 insertions(+), 4 deletions(-) > > d

Re: [dpdk-dev] [PATCH 1/2] app/testpmd: fix scatter offload configuration

2019-07-30 Thread Moti Haimovsky
; > > > Enable the Rx scatter offload in the above case. > > > > Fixes: 33f9630fc23d ("app/testpmd: create mbuf based on max supported > > segments") > > Cc: sta...@dpdk.org > > > > Signed-off-by: Matan Azrad Acked-by: Moti Haimovsky > >

[dpdk-dev] [PATCH v6 0/2] net/mlx5: remove TCF support from PMD

2019-07-01 Thread Moti Haimovsky
ring the E-switch flow filtering using DR, to remove the TCF support from the PMD and to remove the dependency of the PMD in libmnl. As for today VLAN insertion or removal is not supported in DR, this support will be added in separate commits. Moti Haimovsky (2): net/mlx5: fix crashing testpmd o

[dpdk-dev] [PATCH v6 1/2] net/mlx5: fix crashing testpmd on null drv opts

2019-07-01 Thread Moti Haimovsky
rte_flow_error parameter in theses routines. Fixes: 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- v6: * Rebased on top of la

[dpdk-dev] [PATCH v5 0/2] net/mlx5: remove TCF support from PMD

2019-06-18 Thread Moti Haimovsky
ring the E-switch flow filtering using DR, to remove the TCF support from the PMD and to remove the dependency of the PMD in libmnl. As for today VLAN insertion or removal is not supported in DR, this support will be added in separate commits. Moti Haimovsky (2): net/mlx5: fix crashing testpmd o

[dpdk-dev] [PATCH v5 1/2] net/mlx5: fix crashing testpmd on null drv opts

2019-06-18 Thread Moti Haimovsky
rte_flow_error parameter in theses routines. Fixes: 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- v4,v5: * Resend the messa

[dpdk-dev] [PATCH v5 0/2] net/mlx5: remove TCF support from PMD

2019-06-18 Thread Moti Haimovsky
ring the E-switch flow filtering using DR, to remove the TCF support from the PMD and to remove the dependency of the PMD in libmnl. As for today VLAN insertion or removal is not supported in DR, this support will be added in separate commits. Moti Haimovsky (2): net/mlx5: fix crashing testpmd o

[dpdk-dev] [PATCH v5 1/2] net/mlx5: fix crashing testpmd on null drv opts

2019-06-18 Thread Moti Haimovsky
rte_flow_error parameter in theses routines. Fixes: 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- v4, v5: * Resend the messa

[dpdk-dev] [PATCH v5 1/2] net/mlx5: fix crashing testpmd on null drv opts

2019-06-18 Thread Moti Haimovsky
rte_flow_error parameter in theses routines. Fixes: 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- v4, v5: * Resend the messa

[dpdk-dev] [PATCH v5 0/2] net/mlx5: remove TCF support from PMD

2019-06-18 Thread Moti Haimovsky
ring the E-switch flow filtering using DR, to remove the TCF support from the PMD and to remove the dependency of the PMD in libmnl. As for today VLAN insertion or removal is not supported in DR, this support will be added in separate commits. Moti Haimovsky (2): net/mlx5: fix crashing testpmd o

[dpdk-dev] [PATCH v5 1/2] net/mlx5: fix crashing testpmd on null drv opts

2019-06-18 Thread Moti Haimovsky
rte_flow_error parameter in theses routines. Fixes: 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- v4, v5: * Resend the messa

[dpdk-dev] [PATCH v5 0/2] net/mlx5: remove TCF support from PMD

2019-06-18 Thread Moti Haimovsky
ring the E-switch flow filtering using DR, to remove the TCF support from the PMD and to remove the dependency of the PMD in libmnl. As for today VLAN insertion or removal is not supported in DR, this support will be added in separate commits. Moti Haimovsky (2): net/mlx5: fix crashing testpmd o

[dpdk-dev] [PATCH v4 0/2] net/mlx5: remove TCF support from PMD

2019-06-18 Thread Moti Haimovsky
ring the E-switch flow filtering using DR, to remove the TCF support from the PMD and to remove the dependency of the PMD in libmnl. As for today VLAN insertion or removal is not supported in DR, this support will be added in separate commits. Moti Haimovsky (2): net/mlx5: fix crashing testpmd o

[dpdk-dev] [PATCH v4 1/2] net/mlx5: fix crashing testpmd on null drv opts

2019-06-18 Thread Moti Haimovsky
rte_flow_error parameter in theses routines. Fixes: 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- v4: * Resend the message from a

[dpdk-dev] [PATCH v4 1/2] net/mlx5: fix crashing testpmd on null drv opts

2019-06-18 Thread Moti Haimovsky
rte_flow_error parameter in theses routines. Fixes: 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- v4: * Resend the message from a

[dpdk-dev] [PATCH v4 0/2] net/mlx5: remove TCF support from PMD

2019-06-18 Thread Moti Haimovsky
ring the E-switch flow filtering using DR, to remove the TCF support from the PMD and to remove the dependency of the PMD in libmnl. As for today VLAN insertion or removal is not supported in DR, this support will be added in separate commits. Moti Haimovsky (2): net/mlx5: fix crashing testpmd o

[dpdk-dev] [PATCH v3 1/2] net/mlx5: fix crashing testpmd on null drv opts

2019-05-28 Thread Moti Haimovsky
rte_flow_error parameter in theses routines. Fixes: 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- v3: * Modified patch su

[dpdk-dev] [PATCH v3 0/2] net/mlx5: remove TCF support from PMD

2019-05-28 Thread Moti Haimovsky
ring the E-switch flow filtering using DR, to remove the TCF support from the PMD and to remove the dependency of the PMD in libmnl. As for today VLAN insertion or removal is not supported in DR, this support will be added in separate commits. Moti Haimovsky (2): net/mlx5: fix crashing testpmd o

[dpdk-dev] [PATCH v2 1/2] net/mlx5: fix testpmd crash on null-flow drv opts

2019-05-28 Thread Moti Haimovsky
rte_flow_error parameter in theses routines. Fixes: 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- drivers/net/m

[dpdk-dev] [PATCH v2 0/2] net/mlx5: remove TCF support from PMD

2019-05-28 Thread Moti Haimovsky
ring the E-switch flow filtering using DR, to remove the TCF support from the PMD and to remove the dependency of the PMD in libmnl. As for today VLAN insertion or removal is not supported in DR, this support will be added in separate commits. Moti Haimovsky (2): net/mlx5: fix testpmd crash on nul

[dpdk-dev] [PATCH 1/2] net/mlx5: fix testpmd crash on null-flow drv opts

2019-05-28 Thread Moti Haimovsky
rte_flow_error parameter in theses routines. Fixes: 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- drivers/net/m

[dpdk-dev] [PATCH 0/2] net/mlx5: remove TCF support from PMD

2019-05-28 Thread Moti Haimovsky
to propose configuring the E-switch flow filtering using DR, to remove the TCF support from the PMD and to remove the dependency of the PMD in libmnl. As for today VLAN insertion or removal is not supported in DR, this support will be added in separate commits. Moti Haimovsky (2): net/mlx5: f

[dpdk-dev] [PATCH 0/2] net/mlx5: remove TCF support from PMD

2019-05-28 Thread Moti Haimovsky
ring the E-switch flow filtering using DR, to remove the TCF support from the PMD and to remove the dependency of the PMD in libmnl. As for today VLAN insertion or removal is not supported in DR, this support will be added in separate commits. Moti Haimovsky (2): net/mlx5: fix testpmd crash on nul

[dpdk-dev] [PATCH 1/2] net/mlx5: fix testpmd crash on null-flow drv opts

2019-05-28 Thread Moti Haimovsky
rte_flow_error parameter in theses routines. Fixes: 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- drivers/net/m

[dpdk-dev] [RFC] ethdev: enhance metadata as flow rule criteria

2019-05-16 Thread Moti Haimovsky
ions set_meta_data id 1 data 5 / vxlan_decap / jump group 1 / end testpmd> flow create 0 ingress group 1 pattern metadata id is 1 data is 5 / end actions / end Comments are welcome. Signed-off-by: Moti Haimovsky --- app/test-pmd/cmdline_flow.c| 68 +

[dpdk-dev] [RFC] net/mlx5: support for flow action on VLAN header

2019-05-16 Thread Moti Haimovsky
Direct Verbs interface. This RFC proposes adding this missing support to the PMD. Comments are welcome. [1] https://doc.dpdk.org/guides/prog_guide/rte_flow.html [2] https://www.opennetworking.org/wp-content/uploads/2014/10/ openflow-spec-v1.4.0.pdf Signed-off-by: Moti Haimovsky --- drivers

[dpdk-dev] [PATCH v5 4/4] net/mlx5: support e-switch flow count action

2018-10-18 Thread Moti Haimovsky
nt' side, the command now uses tc Netlink query command in order to retrieve the values of the flow counters. Signed-off-by: Moti Haimovsky --- v5: * Limited tc-flower message parsing to only the range of values requested. * Removed "problematic" define. v4: * Split the patch

[dpdk-dev] [PATCH v5 3/4] net/mlx5: add flow query abstraction interface

2018-10-18 Thread Moti Haimovsky
Flow engine now supports multiple driver paths with each having its own flow query implantation routine. This patch adds an abstraction to the flow query routine in accordance to commit 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") done by Yongseok Koh. Signed-of

[dpdk-dev] [PATCH v5 0/4] support e-switch flow count action

2018-10-18 Thread Moti Haimovsky
The following series of patches adds support for reading the mlx5 e-switch flow counters. Moti Haimovsky (4): net/mlx5: refactor TC-flow infrastructure net/mlx5: tc flow to use the new infrastructure net/mlx5: add flow query abstraction interface net/mlx5: support e-switch flow count

[dpdk-dev] [PATCH v5 1/4] net/mlx5: refactor TC-flow infrastructure

2018-10-18 Thread Moti Haimovsky
This commit refactors tc_flow as a preparation to coming commits that sends different type of messages and expect differ type of replies while still using the same underlying routines. Signed-off-by: Moti Haimovsky --- v5: * Split the patch, this patch introduces the new infrastructure and

[dpdk-dev] [PATCH v5 2/4] net/mlx5: tc flow to use the new infrastructure

2018-10-18 Thread Moti Haimovsky
modified TC-flow code to use the new infrastructure introduced in "net/mlx5: refactor TC-flow infrastructure" commit. Signed-off-by: Moti Haimovsky --- v5: * Initial version of this patch. --- drivers/net/mlx5/mlx5_flow_tcf.c | 24 1 file changed, 12 inserti

[dpdk-dev] [PATCH v4 2/3] net/mlx5: add flow query abstraction interface

2018-10-17 Thread Moti Haimovsky
Flow engine now supports multiple driver paths with each having its own flow query implantation routine. This patch adds an abstraction to the flow query routine in accordance to commit 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers") done by Yongseok Koh. Signed-of

[dpdk-dev] [PATCH v4 1/3] net/mlx5: refactor TC-flow infrastructure

2018-10-17 Thread Moti Haimovsky
This commit refactors tc_flow as a preparation to coming commits that sends different type of messages and expect differ type of replies while still using the same underlying routines. Signed-off-by: Moti Haimovsky --- v3: * Rebase on top of d80c8167c4fe ("net/mlx5: fix compilation iss

[dpdk-dev] [PATCH v4 3/3] net/mlx5: support e-switch flow count action

2018-10-17 Thread Moti Haimovsky
nt' side, the command now uses tc Netlink query command in order to retrieve the values of the flow counters. Signed-off-by: Moti Haimovsky --- v4: * Split the patch in two. This patch now contains only the tcf implementation of count action and query. * Fixed compilatio

[dpdk-dev] [PATCH v4 0/3] support e-switch flow count action

2018-10-17 Thread Moti Haimovsky
The following patches add support in mlx5 PMD for configuring and reading flow counters from the device e-switch. Moti Haimovsky (3): net/mlx5: refactor TC-flow infrastructure net/mlx5: add flow query abstraction interface net/mlx5: support e-switch flow count action drivers/net/mlx5/mlx5

[dpdk-dev] [PATCH] net/mlx5: support e-switch TCP-flags flow filter

2018-09-13 Thread Moti Haimovsky
lx5 driver, or more precisely to the netdev which represent the mlxsw port. The limited set of e-switch flow rules also supports filtering according to the values found in the TCP flags. This patch implements this offload capability in the mlx5 PMD. Signed-off-by: Moti Haimovsky --- Note: This patch

[dpdk-dev] [PATCH] net/mlx5: support e-switch flow count action

2018-09-13 Thread Moti Haimovsky
cial care was taken in order to prevent Netlink messages truncation due to short buffers by using MNL_SOCKET_BUFFER_SIZE buffers which are pre-allocate per port instance. Signed-off-by: Moti Haimovsky --- Note: This patch should be applied on top of the new flow engine commits by orika and yskoh ---

[dpdk-dev] [RFC v1] net/mlx5: support e-switch flow count action

2018-08-22 Thread Moti Haimovsky
(per port instance) rather than use it as a local variable of the routine (hence allocated on the stack). Below is the code implementing the above. NOTE: The code in this proposal depends on another rework not yet committed and therefore may be subject to modifications. Signed-off-by: Moti

[dpdk-dev] [RFC] net/mlx5: support e-switch TCP-flags flow filter

2018-08-22 Thread Moti Haimovsky
he propose enhancement. NOTE: This code is supposed to be applied on top of the flow steering rework not committed yet and therefore may be subject to changes. Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/Makefile | 10 ++ drivers/net/mlx5/mlx5_nl_flow.c | 20 +++

[dpdk-dev] [RFC] net/mlx5: support eswitch flow count action

2018-08-22 Thread Moti Haimovsky
(per port instance) rather than use it as a local variable of the routine (hence allocated on the stack). Below is the code implementing the above. NOTE: The code in this proposal depends on another rework not yet committed and therefore may be subject to modifications. Signed-off-by: Moti Haimov

[dpdk-dev] [PATCH v2] net/mlx5: fix RSS flow configuration crash

2018-08-02 Thread Moti Haimovsky
") Cc: nelio.laranje...@6wind.com Signed-off-by: Moti Haimovsky --- v2: * Modifications according to review by Adrien Mazarguil. in reply to 1533130807-9183-1-git-send-email-mo...@mellanox.com v1: * Added check for zero queues. --- drivers/net/mlx5/mlx5_flow.c | 11 +++ 1 file changed, 11

[dpdk-dev] [PATCH v1] net/mlx5: fix RSS flow configuration crash

2018-08-01 Thread Moti Haimovsky
") Cc: nelio.laranje...@6wind.com Signed-off-by: Moti Haimovsky --- v1: * Added check for zero queues. --- drivers/net/mlx5/mlx5_flow.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 6c3021a..d32b86d 100644 --- a/driver

[dpdk-dev] [PATCH] net/mlx5: fix RSS flow configuration crash

2018-08-01 Thread Moti Haimovsky
io.laranje...@6wind.com Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/mlx5_flow.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 6c3021a..0b55366 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/m

[dpdk-dev] [PATCH] net/mlx4: advertise jumbo frame support in Rx

2018-07-31 Thread Moti Haimovsky
This commit adds the missing Rx jumbo frame support advertisement in Rx offload capabilities. Signed-off-by: Moti Haimovsky --- drivers/net/mlx4/mlx4_rxq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx4/mlx4_rxq.c b/drivers/net/mlx4/mlx4_rxq.c index

[dpdk-dev] [PATCH v3] app/testpmd: removed softnic CLI modifications

2018-07-25 Thread Moti Haimovsky
pmd prompt is presented then the program crashes while presenting the same messages as above. Needless to say that this behavior is not observed when using the previous CLI prompt routine. Fixes: 0ad778b398c6 ("app/testpmd: rework softnic forward mode") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH] net/mlx4: verify RSS supports num Rx Qs being used

2018-07-25 Thread Moti Haimovsky
cause Rx queues creation to fail. Signed-off-by: Moti Haimovsky --- drivers/net/mlx4/mlx4.c | 3 +++ drivers/net/mlx4/mlx4.h | 1 + drivers/net/mlx4/mlx4_rxq.c | 6 ++ 3 files changed, 10 insertions(+) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index c67d2c0

[dpdk-dev] [PATCH v2] app/testpmd: removed softnic CLI modifications

2018-07-25 Thread Moti Haimovsky
pmd prompt is presented then the program crashes while presenting the same messages as above. Needless to say that this behavior is not observed when using the previous CLI prompt routine. Fixes: 0ad778b398c6 ("app/testpmd: rework softnic forward mode") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH] app/testpmd: workaround softnic CLI modifications

2018-07-24 Thread Moti Haimovsky
RTE_LIBRTE_PMD_SOFTNIC Fixes: 0ad778b398c6 ("app/testpmd: rework softnic forward mode") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- app/test-pmd/cmdline.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd

[dpdk-dev] [PATCH] net/mlx5: fix compilation issues on old kernels

2018-07-15 Thread Moti Haimovsky
ile-time sanity checks") Cc: sta...@dpdk.org Signed-off-by: Moti Haimovsky --- drivers/net/mlx5/Makefile | 45 ++ drivers/net/mlx5/mlx5_defs.h | 5 + drivers/net/mlx5/mlx5_ethdev.c | 26 3 files changed, 76 inserti

[dpdk-dev] [PATCH v3] net/mlx5: add support for 32bit systems

2018-07-12 Thread Moti Haimovsky
semaphore) unless an atomic write of 64 bits in a single bus operation is guaranteed. Such a synchronization is not required for when ringing DoorBells on different UAR pages. Signed-off-by: Moti Haimovsky --- v3: * Rebased upon latest changes in mlx5 PMD and rdma-core. v2: * Fixed coding style issues

[dpdk-dev] [PATCH v7] net/mlx4: support hardware TSO

2018-07-10 Thread Moti Haimovsky
Implement support for hardware TSO. Signed-off-by: Moti Haimovsky --- v7: * More optimizations on TSO data-segments creation routine. in reply to 1531153995-26627-1-git-send-email-mo...@mellanox.com v6: * Minor bug fixes from previous commit. * More optimizations on TSO data-segments creation

[dpdk-dev] [PATCH v6] net/mlx4: support hardware TSO

2018-07-09 Thread Moti Haimovsky
Implement support for hardware TSO. Signed-off-by: Moti Haimovsky --- v6: * Minor bug fixes from previous commit. * More optimizations on TSO data-segments creation routine. in reply to 1531132986-5054-1-git-send-email-mo...@mellanox.com v5: * Modification to the code according to review inputs

[dpdk-dev] [PATCH v5] net/mlx4: support hardware TSO

2018-07-09 Thread Moti Haimovsky
Implement support for hardware TSO. Signed-off-by: Moti Haimovsky --- v5: * Modification to the code according to review inputs from Matan Azrad. * Code optimization to the TSO header copy routine. * Rearranged the TSO data-segments creation routine. in reply to 1530715998-15703-1-git-send

[dpdk-dev] [PATCH v4] net/mlx4: support hardware TSO

2018-07-04 Thread Moti Haimovsky
Implement support for hardware TSO. Signed-off-by: Moti Haimovsky --- v4: * Bug fixes in filling TSO data segments. * Modifications according to review inputs from Adrien Mazarguil and Matan Azrad. in reply to 1530190137-17848-1-git-send-email-mo...@mellanox.com v3: * Fixed compilation errors

[dpdk-dev] [PATCH v2] net/mlx5: add support for 32bit systems

2018-07-02 Thread Moti Haimovsky
semaphore) unless an atomic write of 64 bits in a single bus operation is guaranteed. Such a synchronization is not required for when ringing DoorBells on different UAR pages. Signed-off-by: Moti Haimovsky --- v2: * Fixed coding style issues. * Modified documentation according to review inputs. * Fixed

[dpdk-dev] [PATCH v3] net/mlx4: support hardware TSO

2018-06-28 Thread Moti Haimovsky
Implement support for hardware TSO. Signed-off-by: Moti Haimovsky --- v3: * Fixed compilation errors in compilers without GNU C extensions caused by a declaration of zero-length array in the code. in reply to 1530187032-6489-1-git-send-email-mo...@mellanox.com v2: * Fixed coding style warning

  1   2   3   >