aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-10api: ipsec: add bit field usage clarificationMatias Elo
Add comments about bit fields’ ‘all’ member intended usage. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-11-10linux-gen: pool: add pool type checks to alloc functionsMatias Elo
Add asserts for checking that buffers are allocated from the right type of pool. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Carl Wallen <carl.wallen@nokia.com>
2021-11-10linux-gen: packet_vector: use internal functions for vector alloc/freeMatias Elo
Use implementation internal _odp_buffer_alloc_multi() and _odp_buffer_free_multi() functions to alloc/free packet vectors. This enables adding pool type checks to odp_buffer_alloc() implementation. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Carl Wallen <carl.wallen@nokia.com>
2021-11-10linux-gen: timer: use internal functions for timeout alloc/freeMatias Elo
Use implementation internal _odp_buffer_alloc_multi() and _odp_buffer_free_multi() functions to alloc/free timeouts. This enables adding pool type checks to odp_buffer_alloc() implementation. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Carl Wallen <carl.wallen@nokia.com>
2021-11-10linux-gen: packet: add missing asserts for invalid event definesMatias Elo
Add missing asserts for invalid event defines and add explanation why this is required. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-11-08linux-dpdk: pktio: add additional eal args using config fileVijay Ram Inavolu
Implementation to support adding additional eal args using config file for linux dpdk Signed-off-by: Vijay Ram Inavolu <vinavolu@marvell.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-11-08linux-gen: config: add string lookup functionVijay Ram Inavolu
Adds a new function to get a string from config Signed-off-by: Vijay Ram Inavolu <vinavolu@marvell.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-11-08linux-gen: sysinfo: dump aarch64 cpu hardware flagsMalvika Gupta
CPU specific hardware/software features are exposed by the kernel to the userspace through a set of flags called hwcaps, exposed in the auxiliary vector. Userspace software can test for features by acquiring the AT_HWCAP and AT_HWCAP2 entry of the auxiliary vector. These hwcaps are defined in terms of architected system register fields and those exposed in AT_HWCAP and AT_HWCAP2 typically have feature flags associated with them. These mapped feature flags are printed. Signed-off-by: Malvika Gupta <Malvika.Gupta@arm.com> Reviewed-by: Govindarajan <govindarajan.mohandoss@arm.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-11-08linux-gen: sysinfo: add compile-time cpu flagsMalvika Gupta
More compile-time CPU flags have been added to test the support for newer AArch64 features. Signed-off-by: Malvika Gupta <Malvika.Gupta@arm.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-11-08linux-gen: sysinfo: move compile-time cpu flags to cpu_flags.cMalvika Gupta
Detection and printing of compile-flags has been moved to a new file, cpu_flags.c in preparation for dumping the CPU hardware flags. Signed-off-by: Malvika Gupta <Malvika.Gupta@arm.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-11-05linux-gen: ipsec: optimize ipsec_sa_err_stats_update()Matias Elo
Copy read-only 'status' struct into local memory. Removes a load instruction from each if-branch on aarch64. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2021-11-05linux-gen: config: add string lookup functionVijay Ram Inavolu
Adds a new function to get a string from config Signed-off-by: Vijay Ram Inavolu <vinavolu@marvell.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-11-02doc: user-guide: fix DOT image formatMatias Elo
Remove 'size' option from DOT images, which was causing SVG images to be rendered incorrectly. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Reported-by: Baofeng Wang <baofeng.wang@nokia.com>
2021-11-02linux-gen: ipsec: add esn feature supportMahipal Challa
Add support for extended sequence numbers, except with the AES-GMAC algorithm. Signed-off-by: Mahipal Challa <mchalla@marvell.com> Signed-off-by: Sachin Yaligar <syaligar@marvell.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2021-11-01linux-dpdk: align: use RTE_CACHE_LINE_SIZE as ODP_CACHE_LINE_SIZEMatias Elo
Define ODP_CACHE_LINE_SIZE using RTE_CACHE_LINE_SIZE. Previously, the values could differ due to configuration differences. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-11-01linux-dpdk: link to arch specific source files individuallyMatias Elo
Add individual symbolic links to arch specific source files under linux-generic platform. This enables adding linux-dpdk specific implementations for selected files. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-11-01linux-dpdk: build: add missing cpu cycles source file to arm buildMatias Elo
odp_global_time.c file was missing from arm sources. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-11-01test: sched_perf: measure queue fairnessJere Leppänen
Measure and display the number of events dequeued from each queue as a percentage of average. Add new command line option -a. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-27validation: ipsec: remove packet parsing bug workaroundJanne Peltonen
Check the return value of odp_packet_parse() now that it has been fixed to no longer incorrectly report a failure. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-10-27linux-gen: packet: fix false packet parsing errorJanne Peltonen
Layer 4 packet parsing may fail for no reason if the packet has flags that are not error flags. Fix the problem by making the code check only error flags instead of all flags when reporting parsing success. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-10-27linux-gen: ipsec: fix ICV calculation with AES-CCMJanne Peltonen
ICV calculation with AES-CCM is supposed to include SPI and sequence number through AAD, but the current code passes zero length AAD to the algorithm. Fix the AAD length when using AES-CCM. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-10-27linux-gen: pool: improve possible pool starvation detectionMatias Elo
Since giving 'params' argument to odp_init_global() is optional, the value of 'num_threads' may end up being zero, which disables possible pool starvation warning print below. Fix this by fetching the number of current threads and using the larger value. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reported-by: Ashwin Sekhar T K <asekhar@marvell.com>
2021-10-27validation: crypto: add more aes-xcbc-mac test vectorsJanne Peltonen
Current AES-XCBC-MAC test vectors appear to come from RFC 3566. Add comments about the source and add the test vectors that were not yet included. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-10-27validation: crypto: define near-duplicate test vectors conciselyJanne Peltonen
Many auth test vectors have two near-duplicate versions that only differ in the digest length: One test vector tests the full digest length and the other a truncated variant. Reduce unnecessary repetition in the test vectors by making it possible to define a test vector as a copy of the previous test vector, apart from the digest length. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2021-10-21github_ci: add pedantic build testsMatias Elo
Add x86 and arm64 pedantic build only tests. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21linux-gen: configure: ignore gnu-variable-sized-type-not-at-end errorsMatias Elo
Ignore Clang specific errors about fields with variable sized type not at the end of a struct. This style is used for example by odp_packet_hdr_t and odp_timeout_hdr_t structures. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21example: ipfragreass: fix unsupported types build errorsMatias Elo
Fix "ISO C does not support '__int128' types" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21example: tm: fix range expression build errorsMatias Elo
Fix "ISO C forbids specifying range of elements to initialize" and "range expressions in switch statements are non-standard" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21example: timer: fix extra semicolon build errorsMatias Elo
Fix "ISO C does not allow extra ';' outside of a function" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21example: ipsec_crypto: tm: fix zero-size array build errorsMatias Elo
Fix "ISO C forbids zero-size array" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21example: generator: fix braced-groups within expressions build errorsMatias Elo
Fix "ISO C forbids braced-groups within expressions" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21example: ipsec_crypto: fix sscanf format build errorsMatias Elo
Fix "format '%x' expects argument of type 'unsigned int *'" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21validation: fix print format build errorsMatias Elo
Fix "format '%p' expects argument of type 'void *'" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21validation: tm: fix zero-size array build errorsMatias Elo
Fix "ISO C forbids zero-size array" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21validation: fix braced-group build errorMatias Elo
Fix "ISO C forbids braced-groups within expressions" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21test: performance: fix variadic macro build errorsMatias Elo
Fix "ISO C99 requires at least one argument for the "..." in a variadic macro" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21test: cunit: fix named variadic macro build errorMatias Elo
Fix "ISO C does not permit named variadic macros" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21helper: fix zero-size array build errorsMatias Elo
Fix "ISO C forbids zero-size array" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21helper: debug: fix variadic macro build errorsMatias Elo
Fix "ISO C99 requires at least one argument for the "..." in a variadic macro" and "token pasting of ',' and __VA_ARGS__ is a GNU extension" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21linux-gen: llsc: fix casts to union type build errorsMatias Elo
Fix "ISO C forbids casts to union type" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21linux-gen: queue_scalable: fix inline function build errorMatias Elo
Fix "static function is used in an inline function with external linkage" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21linux-gen: packet: fix static assert integer constant build errorsMatias Elo
Avoid "expression in static assertion is not an integer constant expression" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21linux-gen: debug: fix variadic macro build errorsMatias Elo
Avoid "ISO C99 requires at least one argument for the "..." in a variadic macro" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21linux-gen: fix invalid use of structure with flexible array member errorsMatias Elo
Fix "invalid use of structure with flexible array member" errors when building with 'pedantic' option. Internal queue_num_tbl_t struct was not used, so it has been removed. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21linux-gen: use common debug print macroMatias Elo
Use common implementation internal debug macro ODP_DBG_LVL() to avoid "ISO C99 requires at least one argument for the "..." in a variadic macro" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21linux-gen: fix zero-size array build errorsMatias Elo
Fix "ISO C forbids zero-size array" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21linux-gen: fix print format build errorsMatias Elo
Fix "format '%p' expects argument of type 'void *'" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21linux-gen: fix braced-groups within expressions build errorsMatias Elo
Fix "ISO C forbids braced-groups within expressions" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21linux-gen: fix unsupported types build errorsMatias Elo
Fix "ISO C does not support '__int128' types" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2021-10-21linux-gen: fix extra semicolon build errorsMatias Elo
Fix "ISO C does not allow extra ';' outside of a function" errors when building with 'pedantic' option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>