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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
; >
> > 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
> >
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 +
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
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
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
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
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
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
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
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
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
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
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
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
---
(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
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 +++
(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
")
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
")
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
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
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
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:
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
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:
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
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
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
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
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
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
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
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
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 - 100 of 209 matches
Mail list logo