[PATCH V3] examples/pipeline: simplify the L2 forwarding examples

2024-02-15 Thread Cristian Dumitrescu
Simplified the L2 forwarding examples by removing all tables and actions, as they are not really needed for these simple use-cases. Signed-off-by: Cristian Dumitrescu --- examples/pipeline/examples/l2fwd.spec| 34 +- examples/pipeline/examples/l2fwd_macswp.spec | 36

[PATCH V2] pipeline: remove limitation on number of input ports

2024-02-14 Thread Cristian Dumitrescu
Removed the requirement that the number of pipeline input ports be a power of 2, which is problematic for many real life use-cases. Also adding checks for the output port validity used for sending the current packet. Signed-off-by: Cristian Dumitrescu --- lib/pipeline/rte_swx_pipeline.c

[PATCH] pipeline: remove limitation on number of input ports

2024-02-14 Thread Cristian Dumitrescu
Removed the requirement that the number of pipeline input ports be a power of 2, which is problematic for many real life use-cases. Also adding checks for the output port validity used for sending the current packet. Signed-off-by: Cristian Dumitrescu --- lib/pipeline/rte_swx_pipeline.c

[PATCH V2] examples/pipeline: fix include path for rte_log.h

2024-02-13 Thread Cristian Dumitrescu
When rte_log.h was moved to a new directory, the include path was not updated for the generated C code produced by the pipeline library, which results in build failure for this code. Fixes: 09ce41310930 ("log: separate logging functions out of EAL") Cc: sta...@dpdk.org Signed-off-by

[PATCH 0/3] pipeline: extend the IPv6 support

2024-02-13 Thread Cristian Dumitrescu
handle the required operations. We are still not supporting the following operations on IPv6 addresses, as they seem of very little practical use: addition, subtraction, multiplication and division. Cristian Dumitrescu (3): pipeline: add new instruction for upper half of IPv6 address pipeline:

[PATCH 1/3] pipeline: add new instruction for upper half of IPv6 address

2024-02-13 Thread Cristian Dumitrescu
Added new instruction called "movh" to read/write the upper half of an IPv6 address, i.e. bits 127-64 of a 128-bit field. Signed-off-by: Cristian Dumitrescu --- lib/pipeline/rte_swx_pipeline.c | 99 lib/pipeline/rte_swx_pipeline_internal.h | 52 ++

[PATCH 3/3] examples/pipeline: add example for IPv6 address swap

2024-02-13 Thread Cristian Dumitrescu
Add example for swapping the two halves of the IPv6 source address. Signed-off-by: Cristian Dumitrescu --- examples/pipeline/examples/ipv6_addr_swap.cli | 35 .../pipeline/examples/ipv6_addr_swap.spec | 83 +++ 2 files changed, 118 insertions(+) create mode 100644

[PATCH 2/3] pipeline: optimize conversion between IPv4 and IPv6 addresses

2024-02-13 Thread Cristian Dumitrescu
Enhanced the move instruction to detect and optimize the conversion between 128-bit numbers (IPv6 addresses) and 64-bit (upper or lower part of IPv6 addresses) or 32-bit numbers (IPv4 addresses). Signed-off-by: Cristian Dumitrescu --- lib/pipeline/rte_swx_pipeline.c | 56

[PATCH] examples/pipeline: fix include path for rte_log.h

2024-02-13 Thread Cristian Dumitrescu
When rte_log.h was moved to a new directory, the include path was not updated for the generated C code produced by the pipeline library, which results in build failure for this code. Fixes: 09ce41310930 ("log: separate logging functions out of EAL") Cc: sta...@dpdk.org Signed-off-by

[PATCH V2] examples/pipeline: simplify the L2 forwarding example

2024-02-13 Thread Cristian Dumitrescu
Simplified the L2 forwarding examples by removing all tables and actions, as they are not really needed for this simplest use-case. Signed-off-by: Cristian Dumitrescu --- examples/pipeline/examples/l2fwd.spec | 34 +++ 1 file changed, 8 insertions(+), 26 deletions

[PATCH] examples/pipeline: simplify the L2 forwarding example

2024-02-13 Thread Cristian Dumitrescu
Simplified the L2 forwarding examples by removing all tables and actions, as they are not really needed for this simplest use-case. --- examples/pipeline/examples/l2fwd.spec | 34 +++ 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/examples/pipeline/examples/

[PATCH V2] ethdev: add flow API support for P4-programmable devices

2023-09-25 Thread Cristian Dumitrescu
, which is typically compiled into firmware that is loaded on the device at init time. These flow items and actions are then used during the run-time phase to add flows on the device. Signed-off-by: Cristian Dumitrescu Signed-off-by: Qi Zhang --- Change log: V2: -Adjusted field names and imp

[PATCH] ethdev: add flow API support for P4-programmable devices

2023-09-15 Thread Cristian Dumitrescu
, which is typically compiled into firmware that is loaded on the device at init time. These flow items and actions are then used during the run-time phase to add flows on the device. Signed-off-by: Cristian Dumitrescu Signed-off-by: Qi Zhang --- Change log: V1: -Incorporated the feedback fro

[PATCH] doc: postpone deprecation of pipeline legacy API

2023-07-19 Thread Cristian Dumitrescu
Postpone the deprecation of the legacy pipeline, table and port library API and gradual stabilization of the new API. Signed-off-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/doc/guides

[PATCH V3] doc: announce the pipeline legacy API deprecation

2023-03-09 Thread Cristian Dumitrescu
Announce the deprecation of the legacy pipeline, table and port library API and gradual stabilization of the new API. Signed-off-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 18 ++ 1 file changed, 18 insertions(+) diff --git a/doc/guides/rel_notes

[PATCH V2] doc: announce the pipeline legacy API deprecation

2023-03-09 Thread Cristian Dumitrescu
Announce the deprecation of the legacy pipeline, table and port library API and gradual stabilization of the new API. Signed-off-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 18 ++ 1 file changed, 18 insertions(+) diff --git a/doc/guides/rel_notes

[PATCH] pipeline: support conversion between big and small fields

2023-02-10 Thread Cristian Dumitrescu
ze) or a small header field, so in either case both destination and source are in the network byte order. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- Depends-on: patch-26863 ("[V4] pipeline: add RSS support") lib/pipeline/rte_swx_pipeline.c | 33

[PATCH] pipeline: fix IPsec crypto session leak

2023-02-07 Thread Cristian Dumitrescu
In case of rte_ipsec_session_prepare() error, the crypto session was not freed, leading to its leakage. Fixes: 20777eb5f913 ("pipeline: add IPsec") Coverity issue: 383139 Signed-off-by: Cristian Dumitrescu --- lib/pipeline/rte_swx_ipsec.c | 6 +- 1 file changed, 5 insertions(+),

[PATCH V4] pipeline: add RSS support

2023-02-07 Thread Cristian Dumitrescu
Add pipeline support for the Receive Side Scaling (RSS) hashing. While the pipeline already supports the stateless hashing schemes, the RSS scheme uses a key configured by the control plane and preserved between successive RSS hash invocations. Signed-off-by: Cristian Dumitrescu Signed-off-by

[PATCH V3] pipeline: add RSS support

2023-02-07 Thread Cristian Dumitrescu
Add pipeline support for the Receive Side Scaling (RSS) hashing. While the pipeline already supports the stateless hashing schemes, the RSS scheme uses a key configured by the control plane and preserved between successive RSS hash invocations. Signed-off-by: Cristian Dumitrescu Signed-off-by

[PATCH V2] pipeline: add RSS support

2023-02-07 Thread Cristian Dumitrescu
Add pipeline support for the Receive Side Scaling (RSS) hashing. While the pipeline already supports the stateless hashing schemes, the RSS scheme uses a key configured by the control plane and preserved between successive RSS hash invocations. Signed-off-by: Cristian Dumitrescu Signed-off-by

[PATCH] pipeline: add RSS support

2023-02-03 Thread Cristian Dumitrescu
Add pipeline support for the Receive Side Scaling (RSS) hashing. While the pipeline already supports the stateless hashing schemes, the RSS scheme uses a key configured by the control plane and preserved between successive RSS hash invocations. Signed-off-by: Cristian Dumitrescu Signed-off-by

[PATCH V6 10/11] examples/pipeline: add block enable/disable CLI commands

2023-01-26 Thread Cristian Dumitrescu
Add CLI commands to enable/disable block execution on data plane threads. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 154 1 file changed, 154 insertions(+) diff --git a/examples/pipeline/cli.c b

[PATCH V6 11/11] examples/pipeline: add IPsec example

2023-01-26 Thread Cristian Dumitrescu
Add example files to illustrate the pipeline IPsec support. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/examples/ipsec.cli| 57 +++ examples/pipeline/examples/ipsec.io | 23 +++ examples/pipeline/examples/ipsec.spec | 138

[PATCH V6 09/11] examples/pipeline: support blocks other than pipelines

2023-01-26 Thread Cristian Dumitrescu
Previously, the data plane threads only supported the execution of pipelines assigned to them through configuration updates. Now, the data plane threads also support running blocks such as IPsec. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/thread.c

[PATCH V6 08/11] examples/pipeline: rework the thread configuration updates

2023-01-26 Thread Cristian Dumitrescu
Previously, the configuration updates for the data plane threads were performed through message queues. Now, this mechanism is replaced by the control thread updating the mirror copy of the data plane thread configuration followed by pointer swapping. Signed-off-by: Cristian Dumitrescu Signed

[PATCH V6 07/11] examples/pipeline: add IPsec CLI commands

2023-01-26 Thread Cristian Dumitrescu
Add CLI commands for IPsec block configuration. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 298 1 file changed, 298 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c index

[PATCH V6 06/11] examples/pipeline: add CLI command for crypto device

2023-01-26 Thread Cristian Dumitrescu
Add CLI command for the configuration of crypto devices. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 63 + 1 file changed, 63 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c

[PATCH V6 05/11] examples/pipeline: support crypto devices

2023-01-26 Thread Cristian Dumitrescu
Add support for crypto devices in the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/obj.c | 62 + examples/pipeline/obj.h | 11 2 files changed, 73 insertions(+) diff --git a/examples

[PATCH V6 04/11] examples/pipeline: streamline the Ethernet device support

2023-01-26 Thread Cristian Dumitrescu
Streamline the Ethernet device support code and remove redundant code. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 172 ++-- examples/pipeline/main.c | 12 +-- examples/pipeline/obj.c | 186

[PATCH V6 03/11] examples/pipeline: streamline ring support

2023-01-26 Thread Cristian Dumitrescu
Remove redundant ring related code. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 24 ++-- examples/pipeline/obj.c | 63 - examples/pipeline/obj.h | 21 -- 3 files changed, 15

[PATCH V6 02/11] examples/pipeline: rework memory pool support

2023-01-26 Thread Cristian Dumitrescu
Rework the memory pool CLI command to accommodate the MBUF private meta-data area size parameter. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 72 ++--- examples/pipeline/examples/fib.cli| 2

[PATCH V6 01/11] pipeline: add IPsec support

2023-01-26 Thread Cristian Dumitrescu
This block is providing IPsec support to the SWX pipeline. The IPsec block is external to the pipeline, so it needs to be explicitly instantiated and connected to a pipeline through the I/O ports. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- lib/pipeline/meson.build

[PATCH V6 00/11] pipeline: add IPsec support

2023-01-26 Thread Cristian Dumitrescu
packet. The SA ID field is typically written by the pipeline before sending the packet to the IPsec block. Change log: V6: Fixed more build issues for gcc 4.8.5. V5: Fixed build issue for gcc 4.8.5. V4: Fixed Doxygen issues. V3: Rebased on top of main latest. V2: Fixed minor style issues. Cr

[PATCH V5 11/11] examples/pipeline: add IPsec example

2023-01-26 Thread Cristian Dumitrescu
Add example files to illustrate the pipeline IPsec support. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/examples/ipsec.cli| 57 +++ examples/pipeline/examples/ipsec.io | 23 +++ examples/pipeline/examples/ipsec.spec | 138

[PATCH V5 10/11] examples/pipeline: add block enable/disable CLI commands

2023-01-26 Thread Cristian Dumitrescu
Add CLI commands to enable/disable block execution on data plane threads. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 154 1 file changed, 154 insertions(+) diff --git a/examples/pipeline/cli.c b

[PATCH V5 09/11] examples/pipeline: support blocks other than pipelines

2023-01-26 Thread Cristian Dumitrescu
Previously, the data plane threads only supported the execution of pipelines assigned to them through configuration updates. Now, the data plane threads also support running blocks such as IPsec. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/thread.c

[PATCH V5 08/11] examples/pipeline: rework the thread configuration updates

2023-01-26 Thread Cristian Dumitrescu
Previously, the configuration updates for the data plane threads were performed through message queues. Now, this mechanism is replaced by the control thread updating the mirror copy of the data plane thread configuration followed by pointer swapping. Signed-off-by: Cristian Dumitrescu Signed

[PATCH V5 07/11] examples/pipeline: add IPsec CLI commands

2023-01-26 Thread Cristian Dumitrescu
Add CLI commands for IPsec block configuration. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 298 1 file changed, 298 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c index

[PATCH V5 06/11] examples/pipeline: add CLI command for crypto device

2023-01-26 Thread Cristian Dumitrescu
Add CLI command for the configuration of crypto devices. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 63 + 1 file changed, 63 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c

[PATCH V5 05/11] examples/pipeline: support crypto devices

2023-01-26 Thread Cristian Dumitrescu
Add support for crypto devices in the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/obj.c | 62 + examples/pipeline/obj.h | 11 2 files changed, 73 insertions(+) diff --git a/examples

[PATCH V5 04/11] examples/pipeline: streamline the Ethernet device support

2023-01-26 Thread Cristian Dumitrescu
Streamline the Ethernet device support code and remove redundant code. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 175 ++-- examples/pipeline/main.c | 12 +-- examples/pipeline/obj.c | 186

[PATCH V5 03/11] examples/pipeline: streamline ring support

2023-01-26 Thread Cristian Dumitrescu
Remove redundant ring related code. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 24 ++-- examples/pipeline/obj.c | 63 - examples/pipeline/obj.h | 21 -- 3 files changed, 15

[PATCH V5 01/11] pipeline: add IPsec support

2023-01-26 Thread Cristian Dumitrescu
This block is providing IPsec support to the SWX pipeline. The IPsec block is external to the pipeline, so it needs to be explicitly instantiated and connected to a pipeline through the I/O ports. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- lib/pipeline/meson.build

[PATCH V5 02/11] examples/pipeline: rework memory pool support

2023-01-26 Thread Cristian Dumitrescu
Rework the memory pool CLI command to accommodate the MBUF private meta-data area size parameter. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 72 ++--- examples/pipeline/examples/fib.cli| 2

[PATCH V5 00/11] pipeline: add IPsec support

2023-01-26 Thread Cristian Dumitrescu
packet. The SA ID field is typically written by the pipeline before sending the packet to the IPsec block. Change log: V5: Fixed build issue for gcc 4.8.5. V4: Fixed Doxygen issues. V3: Rebased on top of main latest. V2: Fixed minor style issues. Cristian Dumitrescu (11): pipeline: add IPsec s

[PATCH V4 11/11] examples/pipeline: add IPsec example

2023-01-12 Thread Cristian Dumitrescu
Add example files to illustrate the pipeline IPsec support. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/examples/ipsec.cli| 57 +++ examples/pipeline/examples/ipsec.io | 23 +++ examples/pipeline/examples/ipsec.spec | 138

[PATCH V4 10/11] examples/pipeline: add block enable/disable CLI commands

2023-01-12 Thread Cristian Dumitrescu
Add CLI commands to enable/disable block execution on data plane threads. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 154 1 file changed, 154 insertions(+) diff --git a/examples/pipeline/cli.c b

[PATCH V4 09/11] examples/pipeline: support blocks other than pipelines

2023-01-12 Thread Cristian Dumitrescu
Previously, the data plane threads only supported the execution of pipelines assigned to them through configuration updates. Now, the data plane threads also support running blocks such as IPsec. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/thread.c

[PATCH V4 08/11] examples/pipeline: rework the thread configuration updates

2023-01-12 Thread Cristian Dumitrescu
Previously, the configuration updates for the data plane threads were performed through message queues. Now, this mechanism is replaced by the control thread updating the mirror copy of the data plane thread configuration followed by pointer swapping. Signed-off-by: Cristian Dumitrescu Signed

[PATCH V4 07/11] examples/pipeline: add IPsec CLI commands

2023-01-12 Thread Cristian Dumitrescu
Add CLI commands for IPsec block configuration. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 298 1 file changed, 298 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c index

[PATCH V4 06/11] examples/pipeline: add CLI command for crypto device

2023-01-12 Thread Cristian Dumitrescu
Add CLI command for the configuration of crypto devices. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 63 + 1 file changed, 63 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c

[PATCH V4 05/11] examples/pipeline: support crypto devices

2023-01-12 Thread Cristian Dumitrescu
Add support for crypto devices in the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/obj.c | 60 + examples/pipeline/obj.h | 11 2 files changed, 71 insertions(+) diff --git a/examples

[PATCH V4 04/11] examples/pipeline: streamline the Ethernet device support

2023-01-12 Thread Cristian Dumitrescu
Streamline the Ethernet device support code and remove redundant code. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 175 ++-- examples/pipeline/main.c | 12 +-- examples/pipeline/obj.c | 186

[PATCH V4 03/11] examples/pipeline: streamline ring support

2023-01-12 Thread Cristian Dumitrescu
Remove redundant ring related code. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 24 ++-- examples/pipeline/obj.c | 63 - examples/pipeline/obj.h | 21 -- 3 files changed, 15

[PATCH V4 02/11] examples/pipeline: rework memory pool support

2023-01-12 Thread Cristian Dumitrescu
Rework the memory pool CLI command to accommodate the MBUF private meta-data area size parameter. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 72 ++--- examples/pipeline/examples/fib.cli| 2

[PATCH V4 01/11] pipeline: add IPsec support

2023-01-12 Thread Cristian Dumitrescu
This block is providing IPsec support to the SWX pipeline. The IPsec block is external to the pipeline, so it needs to be explicitly instantiated and connected to a pipeline through the I/O ports. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- lib/pipeline/meson.build

[PATCH V4 00/11] pipeline: add IPsec support

2023-01-12 Thread Cristian Dumitrescu
packet. The SA ID field is typically written by the pipeline before sending the packet to the IPsec block. Change log: V4: Fixed Doxygen issues. V3: Rebased on top of main latest. V2: Fixed minor style issues. Cristian Dumitrescu (11): pipeline: add IPsec support examples/pipeline: rework memor

[PATCH V3 11/11] examples/pipeline: add IPsec example

2023-01-12 Thread Cristian Dumitrescu
Add example files to illustrate the pipeline IPsec support. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/examples/ipsec.cli| 57 +++ examples/pipeline/examples/ipsec.io | 23 +++ examples/pipeline/examples/ipsec.spec | 138

[PATCH V3 10/11] examples/pipeline: add block enable/disable CLI commands

2023-01-12 Thread Cristian Dumitrescu
Add CLI commands to enable/disable block execution on data plane threads. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 154 1 file changed, 154 insertions(+) diff --git a/examples/pipeline/cli.c b

[PATCH V3 08/11] examples/pipeline: rework the thread configuration updates

2023-01-12 Thread Cristian Dumitrescu
Previously, the configuration updates for the data plane threads were performed through message queues. Now, this mechanism is replaced by the control thread updating the mirror copy of the data plane thread configuration followed by pointer swapping. Signed-off-by: Cristian Dumitrescu Signed

[PATCH V3 09/11] examples/pipeline: support blocks other than pipelines

2023-01-12 Thread Cristian Dumitrescu
Previously, the data plane threads only supported the execution of pipelines assigned to them through configuration updates. Now, the data plane threads also support running blocks such as IPsec. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/thread.c

[PATCH V3 07/11] examples/pipeline: add IPsec CLI commands

2023-01-12 Thread Cristian Dumitrescu
Add CLI commands for IPsec block configuration. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 298 1 file changed, 298 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c index

[PATCH V3 06/11] examples/pipeline: add CLI command for crypto device

2023-01-12 Thread Cristian Dumitrescu
Add CLI command for the configuration of crypto devices. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 63 + 1 file changed, 63 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c

[PATCH V3 05/11] examples/pipeline: support crypto devices

2023-01-12 Thread Cristian Dumitrescu
Add support for crypto devices in the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/obj.c | 60 + examples/pipeline/obj.h | 11 2 files changed, 71 insertions(+) diff --git a/examples

[PATCH V3 04/11] examples/pipeline: streamline the Ethernet device support

2023-01-12 Thread Cristian Dumitrescu
Streamline the Ethernet device support code and remove redundant code. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 175 ++-- examples/pipeline/main.c | 12 +-- examples/pipeline/obj.c | 186

[PATCH V3 03/11] examples/pipeline: streamline ring support

2023-01-12 Thread Cristian Dumitrescu
Remove redundant ring related code. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 24 ++-- examples/pipeline/obj.c | 63 - examples/pipeline/obj.h | 21 -- 3 files changed, 15

[PATCH V3 02/11] examples/pipeline: rework memory pool support

2023-01-12 Thread Cristian Dumitrescu
Rework the memory pool CLI command to accommodate the MBUF private meta-data area size parameter. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 72 ++--- examples/pipeline/examples/fib.cli| 2

[PATCH V3 01/11] pipeline: add IPsec support

2023-01-12 Thread Cristian Dumitrescu
This block is providing IPsec support to the SWX pipeline. The IPsec block is external to the pipeline, so it needs to be explicitly instantiated and connected to a pipeline through the I/O ports. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- lib/pipeline/meson.build

[PATCH V3 00/11] pipeline: add IPsec support

2023-01-12 Thread Cristian Dumitrescu
packet. The SA ID field is typically written by the pipeline before sending the packet to the IPsec block. Change log: V3: Rebase on top of main latest. V2: Fix minor style issues. Cristian Dumitrescu (11): pipeline: add IPsec support examples/pipeline: rework memory pool support examples/pi

[PATCH V3 11/11] examples/pipeline: add IPsec example

2023-01-12 Thread Cristian Dumitrescu
Add example files to illustrate the pipeline IPsec support. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/examples/ipsec.cli| 57 +++ examples/pipeline/examples/ipsec.io | 23 +++ examples/pipeline/examples/ipsec.spec | 138

[PATCH V3 10/11] examples/pipeline: add block enable/disable CLI commands

2023-01-12 Thread Cristian Dumitrescu
Add CLI commands to enable/disable block execution on data plane threads. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 154 1 file changed, 154 insertions(+) diff --git a/examples/pipeline/cli.c b

[PATCH V3 09/11] examples/pipeline: support blocks other than pipelines

2023-01-12 Thread Cristian Dumitrescu
Previously, the data plane threads only supported the execution of pipelines assigned to them through configuration updates. Now, the data plane threads also support running blocks such as IPsec. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/thread.c

[PATCH V3 08/11] examples/pipeline: rework the thread configuration updates

2023-01-12 Thread Cristian Dumitrescu
Previously, the configuration updates for the data plane threads were performed through message queues. Now, this mechanism is replaced by the control thread updating the mirror copy of the data plane thread configuration followed by pointer swapping. Signed-off-by: Cristian Dumitrescu Signed

[PATCH V3 07/11] examples/pipeline: add IPsec CLI commands

2023-01-12 Thread Cristian Dumitrescu
Add CLI commands for IPsec block configuration. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 298 1 file changed, 298 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c index

[PATCH V3 06/11] examples/pipeline: add CLI command for crypto device

2023-01-12 Thread Cristian Dumitrescu
Add CLI command for the configuration of crypto devices. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 63 + 1 file changed, 63 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c

[PATCH V3 05/11] examples/pipeline: support crypto devices

2023-01-12 Thread Cristian Dumitrescu
Add support for crypto devices in the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/obj.c | 60 + examples/pipeline/obj.h | 11 2 files changed, 71 insertions(+) diff --git a/examples

[PATCH V3 04/11] examples/pipeline: streamline the Ethernet device support

2023-01-12 Thread Cristian Dumitrescu
Streamline the Ethernet device support code and remove redundant code. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 175 ++-- examples/pipeline/main.c | 12 +-- examples/pipeline/obj.c | 186

[PATCH V3 03/11] examples/pipeline: streamline ring support

2023-01-12 Thread Cristian Dumitrescu
Remove redundant ring related code. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 24 ++-- examples/pipeline/obj.c | 63 - examples/pipeline/obj.h | 21 -- 3 files changed, 15

[PATCH V3 02/11] examples/pipeline: rework memory pool support

2023-01-12 Thread Cristian Dumitrescu
Rework the memory pool CLI command to accommodate the MBUF private meta-data area size parameter. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 72 ++--- examples/pipeline/examples/fib.cli| 2

[PATCH V3 01/11] pipeline: add IPsec support

2023-01-12 Thread Cristian Dumitrescu
This block is providing IPsec support to the SWX pipeline. The IPsec block is external to the pipeline, so it needs to be explicitly instantiated and connected to a pipeline through the I/O ports. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- lib/pipeline/meson.build

[PATCH V3 00/11] pipeline: add IPsec support

2023-01-12 Thread Cristian Dumitrescu
packet. The SA ID field is typically written by the pipeline before sending the packet to the IPsec block. Change log: V3: Rebase on top of main latest. V2: Fix minor style issues. Cristian Dumitrescu (11): pipeline: add IPsec support examples/pipeline: rework memory pool support examples/pi

[PATCH V2 11/11] examples/pipeline: add IPsec example

2023-01-11 Thread Cristian Dumitrescu
Add example files to illustrate the pipeline IPsec support. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/examples/ipsec.cli| 57 +++ examples/pipeline/examples/ipsec.io | 23 +++ examples/pipeline/examples/ipsec.spec | 138

[PATCH V2 10/11] examples/pipeline: add block enable/disable CLI commands

2023-01-11 Thread Cristian Dumitrescu
Add CLI commands to enable/disable block execution on data plane threads. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 154 1 file changed, 154 insertions(+) diff --git a/examples/pipeline/cli.c b

[PATCH V2 09/11] examples/pipeline: support blocks other than pipelines

2023-01-11 Thread Cristian Dumitrescu
Previously, the data plane threads only supported the execution of pipelines assigned to them through configuration updates. Now, the data plane threads also support running blocks such as IPsec. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/thread.c

[PATCH V2 07/11] examples/pipeline: add IPsec CLI commands

2023-01-11 Thread Cristian Dumitrescu
Add CLI commands for IPsec block configuration. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 298 1 file changed, 298 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c index

[PATCH V2 08/11] examples/pipeline: rework the thread configuration updates

2023-01-11 Thread Cristian Dumitrescu
Previously, the configuration updates for the data plane threads were performed through message queues. Now, this mechanism is replaced by the control thread updating the mirror copy of the data plane thread configuration followed by pointer swapping. Signed-off-by: Cristian Dumitrescu Signed

[PATCH V2 06/11] examples/pipeline: add CLI command for crypto device

2023-01-11 Thread Cristian Dumitrescu
Add CLI command for the configuration of crypto devices. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 63 + 1 file changed, 63 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c

[PATCH V2 05/11] examples/pipeline: support crypto devices

2023-01-11 Thread Cristian Dumitrescu
Add support for crypto devices in the application. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/obj.c | 61 + examples/pipeline/obj.h | 11 2 files changed, 72 insertions(+) diff --git a/examples

[PATCH V2 04/11] examples/pipeline: streamline the Ethernet device support

2023-01-11 Thread Cristian Dumitrescu
Streamline the Ethernet device support code and remove redundant code. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 175 ++-- examples/pipeline/main.c | 12 +-- examples/pipeline/obj.c | 186

[PATCH V2 03/11] examples/pipeline: streamline ring support

2023-01-11 Thread Cristian Dumitrescu
Remove redundant ring related code. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 24 ++-- examples/pipeline/obj.c | 63 - examples/pipeline/obj.h | 21 -- 3 files changed, 15

[PATCH V2 02/11] examples/pipeline: rework memory pool support

2023-01-11 Thread Cristian Dumitrescu
Rework the memory pool CLI command to accommodate the MBUF private meta-data area size parameter. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 72 ++--- examples/pipeline/examples/fib.cli| 2

[PATCH V2 01/11] pipeline: add IPsec support

2023-01-11 Thread Cristian Dumitrescu
This block is providing IPsec support to the SWX pipeline. The IPsec block is external to the pipeline, so it needs to be explicitly instantiated and connected to a pipeline through the I/O ports. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- lib/pipeline/meson.build

[PATCH V2 00/11] pipeline: add IPsec support

2023-01-11 Thread Cristian Dumitrescu
packet. The SA ID field is typically written by the pipeline before sending the packet to the IPsec block. Cristian Dumitrescu (11): pipeline: add IPsec support examples/pipeline: rework memory pool support examples/pipeline: streamline ring support examples/pipeline: streamline the Ethernet

[PATCH 11/11] examples/pipeline: add IPsec example

2023-01-11 Thread Cristian Dumitrescu
Add example files to illustrate the pipeline IPsec support. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/examples/ipsec.cli| 57 +++ examples/pipeline/examples/ipsec.io | 23 +++ examples/pipeline/examples/ipsec.spec | 138

[PATCH 10/11] examples/pipeline: add block enable/disable CLI commands

2023-01-11 Thread Cristian Dumitrescu
Add CLI commands to enable/disable block execution on data plane threads. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 154 1 file changed, 154 insertions(+) diff --git a/examples/pipeline/cli.c b

[PATCH 09/11] examples/pipeline: support blocks other than pipelines

2023-01-11 Thread Cristian Dumitrescu
Previously, the data plane threads only supported the execution of pipelines assigned to them through configuration updates. Now, the data plane threads also support running blocks such as IPsec. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/thread.c

[PATCH 08/11] examples/pipeline: rework the thread configuration updates

2023-01-11 Thread Cristian Dumitrescu
Previously, the configuration updates for the data plane threads were performed through message queues. Now, this mechanism is replaced by the control thread updating the mirror copy of the data plane thread configuration followed by pointer swapping. Signed-off-by: Cristian Dumitrescu Signed

[PATCH 07/11] examples/pipeline: add IPsec CLI commands

2023-01-11 Thread Cristian Dumitrescu
Add CLI commands for IPsec block configuration. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 298 1 file changed, 298 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c index

[PATCH 06/11] examples/pipeline: add CLI command for crypto device

2023-01-11 Thread Cristian Dumitrescu
Add CLI command for the configuration of crypto devices. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 63 + 1 file changed, 63 insertions(+) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c

  1   2   3   4   5   6   7   8   9   10   >