| #
9043f66a |
| 28-Jul-2022 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/pipeline: add command for code generation
Add CLI command for the pipeline code generation operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Kama
examples/pipeline: add command for code generation
Add CLI command for the pipeline code generation operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Kamalakannan R <kamalakannan.r@intel.com>
show more ...
|
| #
68b95704 |
| 28-Jul-2022 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
pipeline: add API for shared library-based pipeline build
Previously, the pipeline build operation was done based on the specification file (typically produced by the P4 compiler), then the C code w
pipeline: add API for shared library-based pipeline build
Previously, the pipeline build operation was done based on the specification file (typically produced by the P4 compiler), then the C code with optimized functions for the pipeline actions and instructions was generated, built into a shared object library, loaded and installed into the pipeline in a completely hardcoded and non-customizable way.
Now, this process is split into three explicit stages: i) code generation (specification file -> C file); ii) code build (C file -> shared object library); iii) code installation (library load into the pipeline).
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Kamalakannan R <kamalakannan.r@intel.com>
show more ...
|
|
Revision tags: v22.07, v22.07-rc4, v22.07-rc3, v22.07-rc2, v22.07-rc1 |
|
| #
77dd857d |
| 02-Jun-2022 |
Ali Alnubani <alialnu@nvidia.com> |
examples/pipeline: fix build
This patch fixes the following build failure seen on Ubuntu 16.04 with gcc 5.4.0 because of uninitialized variable: [..] examples/pipeline/cli.c:2853:9: error: 'sess
examples/pipeline: fix build
This patch fixes the following build failure seen on Ubuntu 16.04 with gcc 5.4.0 because of uninitialized variable: [..] examples/pipeline/cli.c:2853:9: error: 'session_id' may be used uninitialized in this function [-Werror=maybe-uninitialized] [..]
Fixes: 172254555f9f ("examples/pipeline: support packet mirroring")
Signed-off-by: Ali Alnubani <alialnu@nvidia.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
| #
80dd28af |
| 20-May-2022 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/pipeline: improve learner table timers
Added the rearm counter to the statistics. Updated the learner table example to the new learner table timer operation.
Signed-off-by: Cristian Dumitr
examples/pipeline: improve learner table timers
Added the rearm counter to the statistics. Updated the learner table example to the new learner table timer operation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
| #
17225455 |
| 06-Apr-2022 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/pipeline: support packet mirroring
Add CLI commands for packet mirroring.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Yogesh Jangra <yogesh.jangra@int
examples/pipeline: support packet mirroring
Add CLI commands for packet mirroring.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Yogesh Jangra <yogesh.jangra@intel.com> Signed-off-by: Kamalakannan R <kamalakannan.r@intel.com>
show more ...
|
|
Revision tags: v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2, v22.03-rc1 |
|
| #
a4c1146c |
| 12-Jan-2022 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/pipeline: print table entries to file
Add support for the show CLI command to print table entries to a file instead of standard output.
Signed-off-by: Cristian Dumitrescu <cristian.dumitre
examples/pipeline: print table entries to file
Add support for the show CLI command to print table entries to a file instead of standard output.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Harshad Narayane <harshad.suresh.narayane@intel.com>
show more ...
|
| #
96b37959 |
| 27-Nov-2021 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
pipeline: add drop port for each pipeline
An additional output port is now implicitly created for every pipeline to serve as the packet drop port. Up to now, the drop port had to be explicitly creat
pipeline: add drop port for each pipeline
An additional output port is now implicitly created for every pipeline to serve as the packet drop port. Up to now, the drop port had to be explicitly created for each pipeline.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Yogesh Jangra <yogesh.jangra@intel.com>
show more ...
|
|
Revision tags: v21.11, v21.11-rc4, v21.11-rc3, v21.11-rc2, v21.11-rc1 |
|
| #
0317c452 |
| 17-Sep-2021 |
Yogesh Jangra <yogesh.jangra@intel.com> |
port: configure loop count for source port
Add support for configurable number of loops through the input PCAP file for the source port. Added an additional parameter to source port CLI command.
Si
port: configure loop count for source port
Add support for configurable number of loops through the input PCAP file for the source port. Added an additional parameter to source port CLI command.
Signed-off-by: Yogesh Jangra <yogesh.jangra@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
| #
8bd4862f |
| 20-Sep-2021 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/pipeline: support learner tables
Add application-level support for learner tables.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
|
| #
a7db3afc |
| 25-Aug-2021 |
Aman Deep Singh <aman.deep.singh@intel.com> |
net: add macro to extract MAC address bytes
Added macros to simplify print of MAC address. The six bytes of a MAC address are extracted in a macro here, to improve code readablity.
Signed-off-by: A
net: add macro to extract MAC address bytes
Added macros to simplify print of MAC address. The six bytes of a MAC address are extracted in a macro here, to improve code readablity.
Signed-off-by: Aman Deep Singh <aman.deep.singh@intel.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
| #
c2c4f87b |
| 25-Aug-2021 |
Aman Deep Singh <aman.deep.singh@intel.com> |
net: add macro for MAC address print
Added macro to print six bytes of MAC address. The MAC addresses will be printed in upper case hexadecimal format. In case there is a specific check for lower ca
net: add macro for MAC address print
Added macro to print six bytes of MAC address. The MAC addresses will be printed in upper case hexadecimal format. In case there is a specific check for lower case MAC address, the user may need to make a change in such test case after this patch.
Signed-off-by: Aman Deep Singh <aman.deep.singh@intel.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
show more ...
|
|
Revision tags: v21.08, v21.08-rc4, v21.08-rc3, v21.08-rc2 |
|
| #
cfcc7bf8 |
| 12-Jul-2021 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/pipeline: fix out of bounds array access
Fix the incorrect array out of bounds check within the function pipeline_selector_group_member_read().
Coverity issue: 371911 Fixes: 598fe0dd0d8e3
examples/pipeline: fix out of bounds array access
Fix the incorrect array out of bounds check within the function pipeline_selector_group_member_read().
Coverity issue: 371911 Fixes: 598fe0dd0d8e3 ("examples/pipeline: support selector table")
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
| #
00b67591 |
| 12-Jul-2021 |
Ali Alnubani <alialnu@nvidia.com> |
examples/pipeline: fix build
This patch fixes the following build failures seen on Ubuntu 16.04 with gcc 5.4.0 because of uninitialized variables: ... examples/pipeline/cli.c:1559:11: error: 'weight
examples/pipeline: fix build
This patch fixes the following build failures seen on Ubuntu 16.04 with gcc 5.4.0 because of uninitialized variables: ... examples/pipeline/cli.c:1559:11: error: 'weight_val' may be used uninitialized in this function [-Werror=maybe-uninitialized] ... examples/pipeline/cli.c:1545:13: error: 'member_id_val' may be used uninitialized in this function [-Werror=maybe-uninitialized] ... examples/pipeline/cli.c:1538:12: error: 'group_id_val' may be used uninitialized in this function [-Werror=maybe-uninitialized] ... examples/pipeline/cli.c:2189:2: error: 'idx1' may be used uninitialized in this function [-Werror=maybe-uninitialized] ... examples/pipeline/cli.c:2179:43: error: 'idx0' may be used uninitialized in this function [-Werror=maybe-uninitialized] ... examples/pipeline/cli.c:2265:2: error: 'idx1' may be used uninitialized in this function [-Werror=maybe-uninitialized] ... examples/pipeline/cli.c:2248:43: error: 'idx0' may be used uninitialized in this function [-Werror=maybe-uninitialized] ... examples/pipeline/cli.c:2358:2: error: 'idx1' may be used uninitialized in this function [-Werror=maybe-uninitialized] ... examples/pipeline/cli.c:2325:43: error: 'idx0' may be used uninitialized in this function [-Werror=maybe-uninitialized]
Fixes: 598fe0dd0d8e ("examples/pipeline: support selector table")
Signed-off-by: Ali Alnubani <alialnu@nvidia.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
|
Revision tags: v21.08-rc1 |
|
| #
598fe0dd |
| 10-Jul-2021 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/pipeline: support selector table
Add application-level support for selector tables.
Signed-off-by: Churchill Khangar <churchill.khangar@intel.com> Signed-off-by: Cristian Dumitrescu <crist
examples/pipeline: support selector table
Add application-level support for selector tables.
Signed-off-by: Churchill Khangar <churchill.khangar@intel.com> Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
| #
75129ceb |
| 02-Jul-2021 |
Churchill Khangar <churchill.khangar@intel.com> |
examples/pipeline: improve table update commands
For more flexibility, the single monolithic table update command is split into table entry add, table entry delete, table default entry add, pipeline
examples/pipeline: improve table update commands
For more flexibility, the single monolithic table update command is split into table entry add, table entry delete, table default entry add, pipeline commit and pipeline abort.
Signed-off-by: Churchill Khangar <churchill.khangar@intel.com> Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
|
Revision tags: v21.05, v21.05-rc4, v21.05-rc3, v21.05-rc2, v21.05-rc1 |
|
| #
1c8b6af9 |
| 31-Mar-2021 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/pipeline: add newline to error messages
Add newline to some error messages that were missing it.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
|
| #
742b0a57 |
| 16-Apr-2021 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
pipeline: add table statistics to SWX
Add support for table statistics for the SWX pipeline. For each table, we maintain a counter for lookup hit packets, one for lookup miss packets and one packet
pipeline: add table statistics to SWX
Add support for table statistics for the SWX pipeline. For each table, we maintain a counter for lookup hit packets, one for lookup miss packets and one packet counter for each table action.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Yogesh Jangra <yogesh.jangra@intel.com>
show more ...
|
| #
f38913b7 |
| 16-Mar-2021 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
pipeline: add meter array to SWX
Meter arrays are stateful objects that are updated by the data plane and configured & monitored by the control plane. The meters implement the RFC 2698 Two Rate Thre
pipeline: add meter array to SWX
Meter arrays are stateful objects that are updated by the data plane and configured & monitored by the control plane. The meters implement the RFC 2698 Two Rate Three Color Marker (trTCM) algorithm.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
| #
64cfcebd |
| 16-Mar-2021 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
pipeline: add register array to SWX
Register arrays are stateful objects that can be read & modified by both the data plane and the control plane, as opposed to tables, which are read-only for data
pipeline: add register array to SWX
Register arrays are stateful objects that can be read & modified by both the data plane and the control plane, as opposed to tables, which are read-only for data plane. One key use-case is the implementation of stats counters.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
| #
0d644eb6 |
| 24-Mar-2021 |
Churchill Khangar <churchill.khangar@intel.com> |
examples/pipeline: support hexadecimal argument in CLI
This patch allows specification of integer arguments for the CLI commands in hexadecimal and octal as well as decimal.
Signed-off-by: Churchil
examples/pipeline: support hexadecimal argument in CLI
This patch allows specification of integer arguments for the CLI commands in hexadecimal and octal as well as decimal.
Signed-off-by: Churchill Khangar <churchill.khangar@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
| #
e2b8dc52 |
| 23-Mar-2021 |
Venkata Suresh Kumar P <venkata.suresh.kumar.p@intel.com> |
port: add file descriptor SWX port
Add the file descriptor input/output port type for the SWX pipeline. File descriptor port type provides interface with the kernel network stack. Example file descr
port: add file descriptor SWX port
Add the file descriptor input/output port type for the SWX pipeline. File descriptor port type provides interface with the kernel network stack. Example file descriptor port is TAP device.
Signed-off-by: Venkata Suresh Kumar P <venkata.suresh.kumar.p@intel.com> Signed-off-by: Churchill Khangar <churchill.khangar@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
| #
cff9a717 |
| 16-Feb-2021 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
pipeline: improve table entry parsing
Improve the table entry parsing: better code structure, enable parsing for the key field masks, allow comments and empty lines in the table entry files.
Signed
pipeline: improve table entry parsing
Improve the table entry parsing: better code structure, enable parsing for the key field masks, allow comments and empty lines in the table entry files.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Venkata Suresh Kumar P <venkata.suresh.kumar.p@intel.com> Signed-off-by: Churchill Khangar <churchill.khangar@intel.com>
show more ...
|
|
Revision tags: v21.02, v21.02-rc4, v21.02-rc3, v21.02-rc2 |
|
| #
77a41301 |
| 28-Jan-2021 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
port: add ring SWX port
Add the ring input/output port type for the SWX pipeline.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
|
| #
821848f5 |
| 28-Jan-2021 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/pipeline: fix CLI parsing crash
Cannot dereference pointer for token[1] unless valid.
Fixes: 5074e1d551 ("examples/pipeline: add configuration commands") Cc: stable@dpdk.org
Signed-off-by
examples/pipeline: fix CLI parsing crash
Cannot dereference pointer for token[1] unless valid.
Fixes: 5074e1d551 ("examples/pipeline: add configuration commands") Cc: stable@dpdk.org
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
show more ...
|
|
Revision tags: v21.02-rc1, v20.11, v20.11-rc5, v20.11-rc4, v20.11-rc3, v20.11-rc2 |
|
| #
275ebefe |
| 26-Oct-2020 |
Cristian Dumitrescu <cristian.dumitrescu@intel.com> |
examples/pipeline: fix resource leak
Coverity issue: 363041 Fixes: 5074e1d551 ("examples/pipeline: add configuration commands")
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
|