aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-11-06Merge ODP v1.42.1.0v1.42.1.0_DPDK_22.11Matias Elo
Merge ODP linux-generic v1.42.1.0 into linux-dpdk.
2023-11-06test: performance: sync application tests with linux-genericMatias Elo
Now when DPDK alternate timer API based timer implementation is the default, the same test applications and options can be run than with ODP linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06linux-dpdk: timer: use alternate dpdk timer API by defaultMatias Elo
Change alternate DPDK timer API to be the default as this API matches better to the ODP timer API. For example, threads can process timers stared by any other thread. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06linux-dpdk: timer: print dpdk timer statistics in odp_timer_pool_print()Matias Elo
Print DPDK global timer statistics in odp_timer_pool_print() implementation. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06linux-dpdk: shm: print dpdk memzones in odp_shm_print_all()Matias Elo
Print DPDK memzones in odp_shm_print_all() implementation. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06linux-dpdk: crypto: implement the null_crypto crypto op paramJanne Peltonen
Add support for the null_crypto crypto operation parameter. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06m4: dpdk: detect dpdk pcap driver availability when using pkg-configMatias Elo
Previously, rte_net_pcap driver was not detected when using pkg-config with DPDK library. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06test: packet_gen: remove memory preallocation from test scriptMatias Elo
Remove DPDK memory preallocation option from packet_gen test script to fix running the application in process mode in the CI. The amount of preallocated memory is configured using 'process_mode_memory_mb' config option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06example: switch: start pktio devices before creating workersMatias Elo
As a workaround, start pktio devices before creating workers in odp_switch example application to enable limited DPDK process mode support. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06build: merge differences to linux-genericMatias Elo
Sync missing changes from odp-linux repository. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06Port 319bb5981 "linux-gen: queue: implement odp_queue_destroy_multi() function"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06Port 9eef10280 "linux-gen: queue: implement odp_queue_create_multi() function"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06Port 1eacb4743 "linux-gen: timer: implement odp_timeout_free_multi() function"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06Port 189f0258d "linux-gen: timer: implement odp_timeout_alloc_multi() function"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06Port e2e487619 "linux-gen: packet: implement TX completion poll mode"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06Port 4cf41a56e "linux-gen: pktio: implement TX completion poll mode"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06Port 926a4cbc0 "linux-gen: packet: add fields for TX completion poll mode"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06Port a18fd930f "linux-gen: pool: fix odp_pool_ext_capability() return value"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06Port edc008440 "test: dmafwd: add CI integration"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06Port 9dd86d494 "linux-gen: cpu: optimize aarch64 odp_cpu_cycles() ↵Matias Elo
implementation" Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-11-06Port 30c50f461 "linux-gen: fix typos"Matias Elo
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2023-10-30Merge ODP v1.42.1.0Matias Elo
Merge ODP linux-generic v1.42.1.0 into linux-dpdk. Signed-off-by: Matias Elo <matias.elo@nokia.com>
2023-10-27linux-dpdk: crypto: reject all unsupported op typesJanne Peltonen
Reverse the logic of operation type checking at session creation so that session creation fails if the operation type is not one of the supported types. After this the OOP op type continues to be rejected but also new types defined in future API versions will get rejected until support for them is added. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2023-10-23api: increment ODP API version to 1.42.1Matias Elo
Increment API version number to reflect the following changes: Backward compatible: - cls: add odp_cls_pmr_create_multi() function - cls: add odp_cls_pmr_destroy_multi() function - cls: add odp_cls_cos_create_multi() function - cls: add odp_cos_destroy_multi() function - crypto: clarify packet ordering of async crypto ops - crypto: add null_crypto crypto op flag for skipping crypto - crypto: allow both basic and out-of-place ops in one session - pktio: add ODP_PKTIO_MAX_INDEX define - queue: add odp_queue_create_multi() function - queue: add odp_queue_destroy_multi() function - queue: clarify odp_queue_param_t default value specification - system: add new ARMv8 and v9 enumerations - timer: clean up odp_timer_pool_param_t.num_timers description - timer: add odp_timeout_alloc_multi() function - timer: add odp_timeout_free_multi() function Helper library (1.4.0): Backward incompatible: - protocols: rename ODP_GTP_HLEN define to ODPH_GTP_HLEN - protocols: rename ODP_IGMP_HLEN define to ODPH_IGMP_HLEN - protocols: remove unused ICMP defines and add missing ODPH_ prefix to the remaining defines Backward compatible: - macros: add ODPH_MIN() and ODPH_MAX() helper macros - macros: add ODPH_ARRAY_SIZE() helper macro - macros: add ODPH_ABS() helper macro Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23example: timer_accuracy: use new ODPH_ABS macroMatias Elo
Utilize new ODPH_ABS() macro in timer accuracy example application. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23helper: macros: add test for ODPH_ABS()Matias Elo
Add simple tests for new ODPH_ABS() macro. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23helper: macros: add new macro for absolute valueMatias Elo
Add new ODPH_ABS() helper macro for calculating the absolute value of a signed variable. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23helper: macros: add test for ODPH_ARRAY_SIZE()Matias Elo
Add simple tests for new ODPH_ARRAY_SIZE() macro. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23checkpatch: stop ignoring ARRAY_SIZE warningMatias Elo
ODPH_ARRAY_SIZE() macro (or _ODP_ARRAY_SIZE() inside implementation) should now be used, so remove ignore rule for checkpatch array size warnings. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23test: validation: use new ODPH_ARRAY_SIZE macroMatias Elo
Utilize new ODPH_ARRAY_SIZE() macro in validation test applications. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23test: performance: use new ODPH_ARRAY_SIZE macroMatias Elo
Utilize new ODPH_ARRAY_SIZE() macro in performance test applications. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23helper: macros: add new macro for array size calculationMatias Elo
Add new ODPH_ARRAY_SIZE() helper macro for calculating array size. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23validation: use new ODPH_MIN and ODPH_MAX macrosMatias Elo
Utilize new ODPH_MIN() and ODPH_MAX() macros in validation tests. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23test: performance: use new ODPH_MIN and ODPH_MAX macrosMatias Elo
Utilize new ODPH_MIN() and ODPH_MAX() macros in performance test applications. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23example: use new ODPH_MIN and ODPH_MAX macrosMatias Elo
Utilize new ODPH_MIN() and ODPH_MAX() macros in example applications. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23helper: macros: add test applicationMatias Elo
Add test application for new ODPH_MIN() and ODPH_MAX() macros. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23helper: macros: add new macros for min/max comparison operationsMatias Elo
Add new ODPH_MIN() and ODPH_MAX() helper macros. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23helper: icmp: remove and rename definesMatias Elo
Remove unused ICMP defines and add missing ODPH_ prefix to the remaining ones. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23helper: igmp: use correct prefix for IGMP header lengthMatias Elo
Rename ODP_IGMP_HLEN define to ODPH_IGMP_HLEN. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-23helper: gtp: use correct prefix for GTP header lengthMatias Elo
Rename ODP_GTP_HLEN define to ODPH_GTP_HLEN. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-20validation: queue: add test for queue create/destroy multi functionsMatias Elo
Add validation tests for new odp_queue_create_multi() and odp_queue_destroy_multi() APIs. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-20linux-gen: queue: implement odp_queue_destroy_multi() functionMatias Elo
Implement new odp_queue_destroy_multi() function for destroying multiple queues with a single call. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-20api: queue: add odp_queue_destroy_multi() functionMatias Elo
Add new odp_queue_destroy_multi() function for destroying multiple queues with a single call. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Jerin Jacob <jerinj@marvell.com>
2023-10-20linux-gen: queue: implement odp_queue_create_multi() functionMatias Elo
Implement new odp_queue_create_multi() function for creating multiple queues with a single call. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-20api: queue: add odp_queue_create_multi() functionMatias Elo
Add new odp_queue_create_multi() function for creating multiple queues with a single call. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Jerin Jacob <jerinj@marvell.com>
2023-10-20validation: cls: add tests for create/destroy pmr multi variantsMatias Elo
Add validation tests for new odp_cls_pmr_create_multi() and odp_cls_pmr_destroy_multi() APIs. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-20validation: cls: add tests for create/destroy cos multi variantsMatias Elo
Add validation tests for new odp_cls_cos_create_multi() and odp_cos_destroy_multi() APIs. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-20linux-gen: cls: implement odp_cls_pmr_destroy_multi() functionMatias Elo
Implement new odp_cls_pmr_destroy_multi() function for destroying multiple PMRs with a single call. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2023-10-20api: cls: add odp_cls_pmr_destroy_multi() functionMatias Elo
Add new odp_cls_pmr_destroy_multi() function for destroying multiple PMRs with a single call. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Kiran Kumar K <kirankumark@marvell.com>
2023-10-20linux-gen: cls: implement odp_cos_destroy_multi() functionMatias Elo
Implement new odp_cos_destroy_multi() function for destroying multiple CoSes with a single call. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>