resources management in Windows will remain
the same with some stub function when needed.
Fixes: dc7c5e0aa905 ("net/mlx5: fix flow workspace destruction")
Cc: getel...@nvidia.com
Cc: d...@stable.org
Signed-off-by: Bing Zhao
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/m
resources management in Windows will remain
the same with some stub function when needed.
Fixes: dc7c5e0aa905 ("net/mlx5: fix flow workspace destruction")
Cc: getel...@nvidia.com
Cc: sta...@dpdk.org
Signed-off-by: Bing Zhao
Acked-by: Matan Azrad
---
drivers/net/mlx5/linux/m
will help to get
rid of this complain.
Fixes: e848218741ea ("net/mlx5: check delay drop settings in kernel driver")
Cc: sta...@dpdk.org
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/linux/mlx5_ethdev_os.c | 22 +-
1 file changed, 13 insertions(+), 9 deletions(-)
The patch set includes:
1. API changes
2. testpmd adaption and guide update
3. driver update (only net/mlx5 is impacted)
4. rte_flow documentation update
---
v2: add adaptions of testpmd and driver part
v3: squash all patches into one and update rte_flow doc
---
Bing Zhao (1
d_action*" to the new
"rte_flow_action_handle*" and the "update" interface's 3rd input
parameter is changed to generic pointer, the mlx5 PMD that uses these
APIs needs to do the adaption to the new APIs as well.
Signed-off-by: Bing Zhao
Acked-by: Andrey Vesnovaty
Depends-on: series-16419 ("Change shared action API to action handle API")
This patch set includes the conntrack action and item definitions as
well as the testpmd CLI proposal.
---
v2: add testpmd CLI proposal
---
Bing Zhao (2):
ethdev: introduce conntrack flow action and item
a
ot pass.
Naming and definition:
https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/nf_conntrack_tcp.h
https://elixir.bootlin.com/linux/latest/source/net/netfilter/nf_conntrack_proto_tcp.c
Other reference:
https://www.usenix.org/legacy/events/sec01/invitedtalks/rooij.pdf
Sign
packet should jump
to the next flow for the result checking with conntrack item. The
state is defined with bits and a valid combination could be
supported.
Signed-off-by: Bing Zhao
---
app/test-pmd/cmdline.c | 354
app/test-pmd/cmdline_flow.c | 92 +
Hi Ori,
> -Original Message-
> From: Ori Kam
> Sent: Friday, April 16, 2021 12:25 AM
> To: Bing Zhao ; NBU-Contact-Thomas Monjalon
> ; ferruh.yi...@intel.com;
> andrew.rybche...@oktetlabs.ru
> Cc: dev@dpdk.org; ajit.khapa...@broadcom.com
> Subject: RE: [PATCH] eth
Hi Ajit,
> -Original Message-
> From: Ajit Khaparde
> Sent: Friday, April 16, 2021 2:00 AM
> To: Bing Zhao
> Cc: Ori Kam ; NBU-Contact-Thomas Monjalon
> ; Ferruh Yigit ; Andrew
> Rybchenko ; Matan Azrad
> ; Slava Ovsiienko ; dpdk-
> dev ; Gregory Etelson ; An
error
---
Bing Zhao (1):
ethdev: introduce indirect action APIs
app/test-pmd/cmdline.c | 24 +-
app/test-pmd/cmdline_flow.c | 252 ++--
app/test-pmd/config.c | 160 ++---
app/test-pmd/testpmd.h
d_action*" to the new
"rte_flow_action_handle*" and the "update" interface's 3rd input
parameter is changed to generic pointer, the mlx5 PMD that uses these
APIs needs to do the adaption to the new APIs as well.
Signed-off-by: Bing Zhao
Acked-by: Andrey Vesnovaty
Acked
Depends-on: series-16451 ("Change shared action API to action handle API")
This patch set includes the conntrack action and item definitions as
well as the testpmd CLI proposal.
Documents of release notes and guides are also updated.
---
v2: add testpmd CLI proposal
v3: add doc update
x/netfilter/nf_conntrack_tcp.h
https://elixir.bootlin.com/linux/latest/source/net/netfilter/nf_conntrack_proto_tcp.c
Other reference:
https://www.usenix.org/legacy/events/sec01/invitedtalks/rooij.pdf
Signed-off-by: Bing Zhao
---
lib/librte_ethdev/rte_flow.c | 2 +
lib/
packet should jump
to the next flow for the result checking with conntrack item. The
state is defined with bits and a valid combination could be
supported.
Signed-off-by: Bing Zhao
---
app/test-pmd/cmdline.c | 354
app/test-pmd/cmdline_flow.c | 92 +
The updated documentations include:
1. Release notes
2. rte_flow.rst
3. testpmd user guide
Signed-off-by: Bing Zhao
---
doc/guides/prog_guide/rte_flow.rst | 113
doc/guides/rel_notes/release_21_05.rst | 4 +
doc/guides/testpmd_app_ug/testpmd_funcs.rst
Hi Ori,
My comments are inline, PSB.
> -Original Message-
> From: Ori Kam
> Sent: Friday, April 16, 2021 8:42 PM
> To: Bing Zhao ; NBU-Contact-Thomas Monjalon
> ; ferruh.yi...@intel.com;
> andrew.rybche...@oktetlabs.ru
> Cc: dev@dpdk.org; ajit.khapa...@broadcom.com
Hi Thomas,
Thanks for your comments. Almost all the comments are addressed.
PSB.
> -Original Message-
> From: Thomas Monjalon
> Sent: Friday, April 16, 2021 6:50 PM
> To: Bing Zhao
> Cc: Ori Kam ; ferruh.yi...@intel.com;
> andrew.rybche...@oktetlabs.ru; dev@dpdk
Hi Ori,
> -Original Message-
> From: Ori Kam
> Sent: Friday, April 16, 2021 4:47 PM
> To: Bing Zhao ; NBU-Contact-Thomas Monjalon
> ; ferruh.yi...@intel.com;
> andrew.rybche...@oktetlabs.ru
> Cc: dev@dpdk.org; ajit.khapa...@broadcom.com
> Subject: RE: [PATCH v2 2
Hi Ajit,
> -Original Message-
> From: Ajit Khaparde
> Sent: Saturday, April 17, 2021 5:47 AM
> To: Bing Zhao
> Cc: Ori Kam ; NBU-Contact-Thomas Monjalon
> ; ferruh.yi...@intel.com;
> andrew.rybche...@oktetlabs.ru; dev@dpdk.org
> Subject: Re: [PATCH v2 1/2] eth
error
v5: deprecate "RTE_FLOW_ACTION_TYPE_SHARED" and update description
---
Bing Zhao (1):
ethdev: introduce indirect action APIs
app/test-pmd/cmdline.c | 24 +--
app/test-pmd/cmdline_flow.c | 252 ++--
app/test-pm
d_action*" to the new
"rte_flow_action_handle*" and the "update" interface's 3rd input
parameter is changed to generic pointer, the mlx5 PMD that uses these
APIs needs to do the adaption to the new APIs as well.
Signed-off-by: Bing Zhao
Acked-by: Andrey Vesnovaty
Acked-
d_action*" to the new
"rte_flow_action_handle*" and the "update" interface's 3rd input
parameter is changed to generic pointer, the mlx5 PMD that uses these
APIs needs to do the adaption to the new APIs as well.
Signed-off-by: Bing Zhao
Acked-by: Andrey Vesnovaty
Acked
error
v5: deprecate "RTE_FLOW_ACTION_TYPE_SHARED" and update description
---
Bing Zhao (1):
ethdev: introduce indirect action APIs
app/test-pmd/cmdline.c | 24 +-
app/test-pmd/cmdline_flow.c | 252 ++--
app/test-pm
Hi Thomas,
All the comments were addressed in the v5.
Many thanks.
> -Original Message-
> From: Thomas Monjalon
> Sent: Monday, April 19, 2021 8:26 PM
> To: Ori Kam ; Bing Zhao
> Cc: ferruh.yi...@intel.com; andrew.rybche...@oktetlabs.ru; Matan
> Azrad ; Slava Ovsiienk
Hi Thomas,
> -Original Message-
> From: Thomas Monjalon
> Sent: Monday, April 19, 2021 10:06 PM
> To: Bing Zhao
> Cc: Ori Kam ; ferruh.yi...@intel.com;
> andrew.rybche...@oktetlabs.ru; dev@dpdk.org;
> ajit.khapa...@broadcom.com; xiaoyun...@intel.com
> Subject: Re
Hi,
> -Original Message-
> From: Thomas Monjalon
> Sent: Monday, April 19, 2021 10:08 PM
> To: Bing Zhao ; Ajit Khaparde
>
> Cc: dev@dpdk.org; Ori Kam ; Ferruh Yigit
> ; Andrew Rybchenko
> ; dpdk-dev ; Xiaoyun Li
>
> Subject: Re: [dpdk-dev] [PATCH v3 1/
This patch set includes the conntrack action and item definitions as
well as the testpmd CLI proposal.
Documents of release notes and guides are also updated.
---
v2: add testpmd CLI proposal
v3: add doc update
v4: fix building and address comments for doc and header file
---
Bing Zhao (3
netfilter/nf_conntrack_tcp.h
https://elixir.bootlin.com/linux/latest/source/net/netfilter/
nf_conntrack_proto_tcp.c
Other reference:
https://www.usenix.org/legacy/events/sec01/invitedtalks/rooij.pdf
Signed-off-by: Bing Zhao
---
lib/librte_ethdev/rte_flow.c | 2 +
lib/
The updated documentations include:
1. Release notes
2. rte_flow.rst
3. testpmd user guide
Signed-off-by: Bing Zhao
---
doc/guides/prog_guide/rte_flow.rst | 118
doc/guides/rel_notes/release_21_05.rst | 4 +
doc/guides/testpmd_app_ug/testpmd_funcs.rst
packet should jump
to the next flow for the result checking with conntrack item. The
state is defined with bits and a valid combination could be
supported.
Signed-off-by: Bing Zhao
---
app/test-pmd/cmdline.c | 355
app/test-pmd/cmdline_flow.c | 92 +
Hi Ajit,
> -Original Message-
> From: Ajit Khaparde
> Sent: Saturday, April 17, 2021 2:30 AM
> To: Bing Zhao
> Cc: Ori Kam ; NBU-Contact-Thomas Monjalon
> ; Ferruh Yigit ; Andrew
> Rybchenko ; dpdk-dev ;
> Xiaoyun Li
> Subject: Re: [PATCH v3 3/3] doc: updat
netfilter/nf_conntrack_tcp.h
https://elixir.bootlin.com/linux/latest/source/net/netfilter/
nf_conntrack_proto_tcp.c
Other reference:
https://www.usenix.org/legacy/events/sec01/invitedtalks/rooij.pdf
Signed-off-by: Bing Zhao
Acked-by: Ori Kam
---
doc/guides/prog_guide/rte_flow.rst
packet should jump
to the next flow for the result checking with conntrack item. The
state is defined with bits and a valid combination could be
supported.
Signed-off-by: Bing Zhao
Acked-by: Ori Kam
---
app/test-pmd/cmdline.c | 355
app/test-pmd/cmdline
into ethdev and testpmd separately
---
Bing Zhao (2):
ethdev: introduce conntrack flow action and item
app/testpmd: add CLI for conntrack
app/test-pmd/cmdline.c | 355
app/test-pmd/cmdline_flow.c | 92 +
app/test-pmd/config.c
Hi Lingyu,
> -Original Message-
> From: dev On Behalf Of Liu, Lingyu
> Sent: Tuesday, April 20, 2021 10:17 AM
> To: Olivier Matz
> Cc: dev@dpdk.org; Zhang, Qi Z ; NBU-Contact-
> Thomas Monjalon ; david.march...@redhat.com;
> Hemant Agrawal
> Subject: Re: [dpdk-dev] [PATCH v2] mbuf: supp
Hi,
> -Original Message-
> From: Ferruh Yigit
> Sent: Saturday, April 24, 2021 12:30 AM
> To: Xiaoyun Li ; Ori Kam ;
> Bing Zhao
> Cc: Ferruh Yigit ; dev@dpdk.org; Ajit
> Khaparde
> Subject: [PATCH v2] doc: fix formatting in testpmd user guide
>
> Exter
This patch set adds the connection tracking offload support in the
mlx5 driver.
Bing Zhao (17):
common/mlx5: add connection tracking object definition
common/mlx5: add CT offload capability checking
net/mlx5: use meter color reg for CT
net/mlx5: initialization of CT management
common
and update, as well as the query.
The capabilities 2 (HCA_CAP_2) layout is also added. The connection
tracking related capabilities could be queried via the HCA_CAP_2.
Signed-off-by: Bing Zhao
---
drivers/common/mlx5/mlx5_prm.h | 85 ++
1 file changed, 85
The following CT creation should also check this capability. With
the old driver, the pre-processing macro should be used in order to
make the compiling pass.
Signed-off-by: Bing Zhao
---
drivers/common/mlx5/linux/meson.build | 2 ++
drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++
drivers/common
Based on the capacity, 3 registers could be used. Due to the register
allocation, only the one REG_C_3 for meter color could be reused
right now.
Then in the same flow, no more than one ASO action can be supported.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.c | 4 +++-
drivers/net
each bulk for a better management purpose.
The ASO QP for CT is initialized, the SQ will be used for both
modify and query command.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/linux/mlx5_os.c | 13 +++
drivers/net/mlx5/mlx5.c | 36 +
drivers/net/mlx5
Adding support for connection tracking ASO creation via Devx command.
Right now only bulk creation is supported.
By default, the objects with zero contents will be created. Before
using a single object, the modification via posting a WQE to the ASO
CT SQ is needed.
Signed-off-by: Bing Zhao
e CQE to be generated.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 6 +
drivers/net/mlx5/mlx5_flow.h | 3 +
drivers/net/mlx5/mlx5_flow_aso.c | 288 +++
3 files changed, 297 insertions(+)
diff --git a/drivers/net/mlx5/mlx5.h b/driver
connection tracking context associated with these actions
need to be updated via WQE before using for steering.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 4 +
drivers/net/mlx5/mlx5_flow.h| 27 -
drivers/net/mlx5/mlx5_flow_dv.c | 261
memory region for query should also be
deregistered and then freed.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.c | 56
drivers/net/mlx5/mlx5_flow_aso.c | 4 +++
2 files changed, 60 insertions(+)
diff --git a/drivers/net/mlx5/mlx5.c b
-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 9 +-
drivers/net/mlx5/mlx5_flow_aso.c | 205 +++
drivers/net/mlx5/mlx5_flow_dv.c | 10 ++
3 files changed, 223 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5
system and
will be reused directly from the free list.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow_dv.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 9093142..f4fa3a0 100644
--- a/drivers/net/mlx5
use in the hardware.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 3 ++-
drivers/net/mlx5/mlx5_flow.c | 9 +
drivers/net/mlx5/mlx5_flow.h | 1 +
drivers/net/mlx5/mlx5_flow_aso.c | 40
drivers/net/mlx5/mlx5_flow_dv.c
until the hardware status
is updated and ready for the next flow creation.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow_dv.c | 47 +
1 file changed, 47 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.h| 7 +
drivers/net/mlx5/mlx5_flow_dv.c | 62 +
2 files changed, 69 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h
index ddfc517..c52468c 100644
--- a
. Currently, only
the TCP protocol support connection tracking.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 4 +++
drivers/net/mlx5/mlx5_flow.c| 31 +++
drivers/net/mlx5/mlx5_flow_dv.c | 68 +
3 files changed, 103 insertions
the state bits conflict
should be checked.
It is assumed that the flow with CT item will always work on the
TCP traffic.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.h| 3 +++
drivers/net/mlx5/mlx5_flow_dv.c | 52 +
2 files changed, 55
, if the context type is CT and the index valid.
The release process should be handled.
By default, the handling will fall back to release the age.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.h| 6 +-
drivers/net/mlx5/mlx5_flow_dv.c | 7 ++-
2 files changed, 11 insertions
or query it right now.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.h| 57 --
drivers/net/mlx5/mlx5_flow_dv.c | 69 +++--
2 files changed, 108 insertions(+), 18 deletions(-)
diff --git a/drivers/net/mlx5
This patch set adds the connection tracking offload support in the
mlx5 driver, as well as the documents update.
---
v2: code bug fixes, commits clean up and doc update.
---
Bing Zhao (17):
common/mlx5: add connection tracking object definition
common/mlx5: add CT offload capability checking
The following CT creation should also check this capability. With
the old driver, the pre-processing macro should be used in order to
make the compiling pass.
Signed-off-by: Bing Zhao
---
drivers/common/mlx5/linux/meson.build | 2 ++
drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++
drivers/common
and update, as well as for the query.
The capabilities 2 (HCA_CAP_2) layout is also added. The connection
tracking related capabilities could be queried via the HCA_CAP_2.
Signed-off-by: Bing Zhao
---
drivers/common/mlx5/mlx5_prm.h | 85 ++
1 file changed, 85
Based on the capacity, 3 registers could be used. Due to the register
allocation, only the one REG_C_3 for meter color could be reused
right now.
Then in the same flow, no more than one ASO action can be supported.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.c | 4 +++-
drivers/net
each bulk for a better management purpose.
The ASO QP for CT is initialized, the SQ will be used for both
modify and query command.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/linux/mlx5_os.c | 13 +
drivers/net/mlx5/mlx5.c | 36 +++
drivers/net/mlx5/mlx5.h
Adding support for connection tracking ASO creation via Devx command.
Right now only bulk creation is supported.
By default, the objects with zero contents will be created. Before
using a single object, the modification via posting a WQE to the ASO
CT SQ is needed.
Signed-off-by: Bing Zhao
busy waiting for the CQE to be generated.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 8 +
drivers/net/mlx5/mlx5_flow.h | 3 +
drivers/net/mlx5/mlx5_flow_aso.c | 252 +++
3 files changed, 263 insertions(+)
diff --git a/drivers/net/mlx5/mlx
connection tracking context associated with these actions
need to be updated via WQE before using for steering.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 4 +
drivers/net/mlx5/mlx5_flow.h| 29 +++-
drivers/net/mlx5/mlx5_flow_dv.c | 263
3
memory region for query should also be
deregistered and then freed.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.c | 56
drivers/net/mlx5/mlx5_flow_aso.c | 4 +++
2 files changed, 60 insertions(+)
diff --git a/drivers/net/mlx5/mlx5.c b/drivers
-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 10 +-
drivers/net/mlx5/mlx5_flow_aso.c | 245 +++
drivers/net/mlx5/mlx5_flow_dv.c | 19 +++
3 files changed, 273 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
system and
will be reused directly from the free list.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow_dv.c | 16 +++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 84e7f0b3d3..0fa0671ace
rule, if the context type is CT and
the index is valid (non-zero), the release process should be
handled. By default, the handling will fall back to try to release
the ASO age if any.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 2 ++
drivers/net/mlx5/mlx5_flow.c | 9
.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.h| 7
drivers/net/mlx5/mlx5_flow_dv.c | 62 +
2 files changed, 69 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h
index 286e3fb6a4..eb0bb42161 100644
--- a/drivers
until the hardware status
is updated and ready for the next flow creation.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow_dv.c | 56 +
1 file changed, 56 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index
the state bits conflict
should be checked.
It is assumed that the flow with CT item will always work on the
TCP traffic.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.h| 3 ++
drivers/net/mlx5/mlx5_flow_dv.c | 51 +
2 files changed, 54 insertions
context or query it in current implementation.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.h| 57 +-
drivers/net/mlx5/mlx5_flow_dv.c | 71 +
2 files changed, 110 insertions(+), 18 deletions(-)
diff --git a/drivers/net/mlx5
. Currently, only
the TCP protocol support connection tracking.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 4 ++
drivers/net/mlx5/mlx5_flow.c| 31 +++
drivers/net/mlx5/mlx5_flow_dv.c | 69 +
3 files changed, 104 insertions(+)
diff
In the release notes and mlx5 NIC document, the support and
limitation of connection tracking are added.
Signed-off-by: Bing Zhao
---
doc/guides/nics/features/default.ini | 1 +
doc/guides/nics/features/mlx5.ini | 1 +
doc/guides/nics/mlx5.rst | 14 ++
doc
This patch set adds the connection tracking offload support in the
mlx5 driver, as well as the documents update.
---
v2: code bug fixes, commits clean up and doc update.
v3: fix error input pointer for CT MR registering
---
Acked-by: Viacheslav Ovsiienko
Bing Zhao (17):
common/mlx5: add
and update, as well as for the query.
The capabilities 2 (HCA_CAP_2) layout is also added. The connection
tracking related capabilities could be queried via the HCA_CAP_2.
Signed-off-by: Bing Zhao
---
drivers/common/mlx5/mlx5_prm.h | 85 ++
1 file changed, 85
The following CT creation should also check this capability. With
the old driver, the pre-processing macro should be used in order to
make the compiling pass.
Signed-off-by: Bing Zhao
---
drivers/common/mlx5/linux/meson.build | 2 ++
drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++
drivers/common
Based on the capacity, 3 registers could be used. Due to the register
allocation, only the one REG_C_3 for meter color could be reused
right now.
Then in the same flow, no more than one ASO action can be supported.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.c | 4 +++-
drivers/net
each bulk for a better management purpose.
The ASO QP for CT is initialized, the SQ will be used for both
modify and query command.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/linux/mlx5_os.c | 13 +
drivers/net/mlx5/mlx5.c | 36 +++
drivers/net/mlx5/mlx5.h
Adding support for connection tracking ASO creation via Devx command.
Right now only bulk creation is supported.
By default, the objects with zero contents will be created. Before
using a single object, the modification via posting a WQE to the ASO
CT SQ is needed.
Signed-off-by: Bing Zhao
busy waiting for the CQE to be generated.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 8 +
drivers/net/mlx5/mlx5_flow.h | 3 +
drivers/net/mlx5/mlx5_flow_aso.c | 252 +++
3 files changed, 263 insertions(+)
diff --git a/drivers/net/mlx5/mlx
connection tracking context associated with these actions
need to be updated via WQE before using for steering.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 4 +
drivers/net/mlx5/mlx5_flow.h| 29 +++-
drivers/net/mlx5/mlx5_flow_dv.c | 263
3
-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 10 +-
drivers/net/mlx5/mlx5_flow_aso.c | 245 +++
drivers/net/mlx5/mlx5_flow_dv.c | 19 +++
3 files changed, 273 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
system and
will be reused directly from the free list.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow_dv.c | 16 +++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 84e7f0b3d3..0fa0671ace
memory region for query should also be
deregistered and then freed.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.c | 56
drivers/net/mlx5/mlx5_flow_aso.c | 4 +++
2 files changed, 60 insertions(+)
diff --git a/drivers/net/mlx5/mlx5.c b/drivers
rule, if the context type is CT and
the index is valid (non-zero), the release process should be
handled. By default, the handling will fall back to try to release
the ASO age if any.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 2 ++
drivers/net/mlx5/mlx5_flow.c | 9
.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.h| 7
drivers/net/mlx5/mlx5_flow_dv.c | 62 +
2 files changed, 69 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h
index 286e3fb6a4..eb0bb42161 100644
--- a/drivers
until the hardware status
is updated and ready for the next flow creation.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow_dv.c | 56 +
1 file changed, 56 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index
. Currently, only
the TCP protocol support connection tracking.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 4 ++
drivers/net/mlx5/mlx5_flow.c| 31 +++
drivers/net/mlx5/mlx5_flow_dv.c | 69 +
3 files changed, 104 insertions(+)
diff
the state bits conflict
should be checked.
It is assumed that the flow with CT item will always work on the
TCP traffic.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.h| 3 ++
drivers/net/mlx5/mlx5_flow_dv.c | 51 +
2 files changed, 54 insertions
context or query it in current implementation.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.h| 57 +-
drivers/net/mlx5/mlx5_flow_dv.c | 71 +
2 files changed, 110 insertions(+), 18 deletions(-)
diff --git a/drivers/net/mlx5
This patch set adds the connection tracking offload support in the
mlx5 driver, as well as the documents update.
---
v2: code bug fixes, commits clean up and doc update.
v3: fix error input pointer for CT MR registering
---
Acked-by: Viacheslav Ovsiienko
Bing Zhao (17):
common/mlx5: add
The following CT creation should also check this capability. With
the old driver, the pre-processing macro should be used in order to
make the compiling pass.
Signed-off-by: Bing Zhao
---
drivers/common/mlx5/linux/meson.build | 2 ++
drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++
drivers/common
and update, as well as for the query.
The capabilities 2 (HCA_CAP_2) layout is also added. The connection
tracking related capabilities could be queried via the HCA_CAP_2.
Signed-off-by: Bing Zhao
---
drivers/common/mlx5/mlx5_prm.h | 85 ++
1 file changed, 85
Based on the capacity, 3 registers could be used. Due to the register
allocation, only the one REG_C_3 for meter color could be reused
right now.
Then in the same flow, no more than one ASO action can be supported.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5_flow.c | 4 +++-
drivers/net
each bulk for a better management purpose.
The ASO QP for CT is initialized, the SQ will be used for both
modify and query command.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/linux/mlx5_os.c | 13 +
drivers/net/mlx5/mlx5.c | 36 +++
drivers/net/mlx5/mlx5.h
Adding support for connection tracking ASO creation via Devx command.
Right now only bulk creation is supported.
By default, the objects with zero contents will be created. Before
using a single object, the modification via posting a WQE to the ASO
CT SQ is needed.
Signed-off-by: Bing Zhao
busy waiting for the CQE to be generated.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 8 +
drivers/net/mlx5/mlx5_flow.h | 3 +
drivers/net/mlx5/mlx5_flow_aso.c | 252 +++
3 files changed, 263 insertions(+)
diff --git a/drivers/net/mlx5/mlx
connection tracking context associated with these actions
need to be updated via WQE before using for steering.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 4 +
drivers/net/mlx5/mlx5_flow.h| 29 +++-
drivers/net/mlx5/mlx5_flow_dv.c | 263
3
memory region for query should also be
deregistered and then freed.
Signed-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.c | 56
drivers/net/mlx5/mlx5_flow_aso.c | 4 +++
2 files changed, 60 insertions(+)
diff --git a/drivers/net/mlx5/mlx5.c b/drivers
-off-by: Bing Zhao
---
drivers/net/mlx5/mlx5.h | 10 +-
drivers/net/mlx5/mlx5_flow_aso.c | 245 +++
drivers/net/mlx5/mlx5_flow_dv.c | 19 +++
3 files changed, 273 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
1 - 100 of 681 matches
Mail list logo