aboutsummaryrefslogtreecommitdiff
path: root/helper/include/odp/helper/odph_api.h
AgeCommit message (Collapse)Author
2024-04-26helper: rename debug API header fileMatias Elo
Rename odph_debug.h to debug.h to be consistent with other helper API header files. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2024-04-26helper: remove table interface APIMatias Elo
Remove unused table interface helper API. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2024-04-26helper: remove IP lookup table APIMatias Elo
Remove unused IP lookup table helper API and related files. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2024-04-26helper: remove linear table APIMatias Elo
Remove unused linear table helper API. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2024-04-26helper: remove hash table APIMatias Elo
Remove unused hash table helper API. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2024-04-26helper: remove cuckoo table APIMatias Elo
Remove unused cuckoo table helper API. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
2024-04-26helper: stress: add new CPU stress functionsPetri Savolainen
CPU stress functions may be used in test applications to create dummy CPU load. Functions are not highly optimized but try to stress various parts of CPU instruction set. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2024-04-26helper: add string copy functionJere Leppänen
Both strcpy() and strncpy() are error-prone, and checkpatch suggests using something else. Add odph_strcpy() function, which guarantees termination of the destination string. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@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-09-01helper: update copyright formatMatias Elo
Update all helper files to use the new shorter copyright format: /* SPDX-License-Identifier: BSD-3-Clause * Copyright (c) <YEAR> <COPYRIGHT HOLDER> */ Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2022-09-12Revert "helper: allow cli.h to be included individually"Jere Leppänen
This reverts commit 65a7f559c173ddbe9738c9c03bf9dbfc52279bc0. cli.h is optional, so it cannot be included unconditionally. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2022-09-09helper: allow cli.h to be included individuallyJere Leppänen
Allow application to individually include cli.h, instead of only via odph_api.h. In order to do this, move the conditional to cli.h and include the autoheader there as well. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-11-12helper: implement deprecationJere Leppänen
Implement deprecation in the helper library. Deprecated helper APIs may be enabled with the --enable-helper-deprecated configure option. By default, deprecated helper APIs are not enabled. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-02-23helper: add CLI helper API and implementationJere Leppänen
CLI helper API allows starting and stopping ODP CLI server, which may be connected to using a telnet client. CLI commands may be used to get information from an ODP instance, for debugging purposes. This implementation depends on libcli. If libcli is not available, CLI helper is automatically excluded. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2020-12-21helper: add odph_igmp header descriptionKiran Kumar K
Adds IGMP header description struct odph_igmphdr_t in helper directory. This structure is used for accessing IGMP header information from the packet. Signed-off-by: Kiran Kumar K <kirankumark@marvell.com> Signed-off-by: Satheesh Paul <psatheesh@marvell.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2020-12-21helper: add odph_gtp header descriptionKiran Kumar K
Adds GTP header description struct odph_gtphdr_t in helper directory. This structure is used for accessing GTPU header information from the packet. Signed-off-by: Kiran Kumar K <kirankumark@marvell.com> Signed-off-by: Satheesh Paul <psatheesh@marvell.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2019-08-20helper: debug: move odph_debug.h into helper APIPetri Savolainen
Moved the debug header to be part of the helper API. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2019-05-09helper: add helper version definesPetri Savolainen
Added helper library version defines, so that application can track helper version independent of ODP API version. Added also function for easy print out of the versions number. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Stanislaw Kardach <skardach@marvell.com>
2018-08-22helper: add SCTP protocol headerDmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-02-26update Linaro Copyrights to 2018 yearMaxim Uvarov
Using simple commands: find . -not -path .git -type f -exec \ sed -i -E 's/ (201[0-9]), Linaro/ \1-2018, Linaro/g' {} + find . -not -path .git -type f -exec \ sed -i -E 's/ (201[0-9])(-201[0-9]), Linaro/ \1-2018, Linaro/g' {} + Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
2017-01-25helper: use odph_api.h for test include for unexported filesMike Holmes
Adding the previously missing table functions to the public helper api allows the tests to use just odph_api.h Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-by: Christophe Milard <christophe.milard@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2017-01-25helper: add odph_api.h for existing exported headersMike Holmes
Rather than have all applications include a variable number of helper api files, consolidate them into one include odph_api.h Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-by: Christophe Milard <christophe.milard@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>