aboutsummaryrefslogtreecommitdiff
path: root/example
AgeCommit message (Collapse)Author
2014-10-24odp_example.c: fix dead code pathMike Holmes
tot is = i which cannot leave the for loop without being positive unless it exits entirely and never reaches the test statement. Or QUEUE_ROUNDS is #defined to 0 rather than (512*1024) Thus tot is always true and the else cannot execute Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-10-23Rename buffer_from_packet functionPetri Savolainen
Rename odp_buffer_from_packet() to odp_packet_to_buffer(). It's a function of packet API vs buffer API. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Tested-by: Anders Roxel <anders.roxell@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-10-22Rename ODPH_PACKED macroJerin Jacob
Definition of ODPH_PACKED is in include/api/odp_align.h so changing to ODP_PACKED Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com> Reviewed-and-Tested-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-10-21Add crypto and rwlock into odp.hPetri Savolainen
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-10-13Add global_init paramsMike Holmes
Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-by: Ciprian Barbu <ciprian.barbu@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-10-03Rename packet start functionPetri Savolainen
- Unify function naming between packets and segments: xxx_addr(), xxx_data() - Rename odp_packet_start() to odp_packet_data() Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-10-03Rename packet buffer address functionPetri Savolainen
- Unify function naming between packets and segment: xxx_addr(), xxx_data() - Rename odp_packet_buf_addr() to odp_packet_addr() Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-10-03resource leak fixesMaxim Uvarov
Fix Coverity warnings about resource leaks. Coverity CIDs: 56713, 5611, 56707, 56705, 56703. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
2014-10-03Added process mode to example appPetri Savolainen
- Added an option to run odp_example as Linux processes (vs. pthreads) - Removed thread dependency from odp_local_init - Added Linux helpers for forking processes - modified odp_thread.c to allocate global variables from shared memory Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-10-02Remove pktio type awarenessCiprian Barbu
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-10-01git split: delete netmapMaxim Uvarov
netmap will be developed and supported in different git repo: https://git.linaro.org/lng/odp-netmap.git netmap will be separate odp platform. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-09-25odp_pktio_netmap: fixed odp_shm_reserveCiprian Barbu
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-09-25exampe/ipsec: set exec bit on run_*.shAnders Roxell
Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-09-23Shared memory handlePetri Savolainen
- Changed API to return shm handle instead of pointer - Added shm info - Tests updated to use shm handle and new addr function. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-09-16Shared memory flag default valuePetri Savolainen
Flags default value is zero (share memory within ODP, include HW accelerators). Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-09-11Add platform-specific Makefile.inc for applicationsTaras Kondratiuk
Platform-specific Makefile.inc is useful when application need to be built with platform-specific configuration: SDK search path, configurations, etc. Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> Signed-off-by: Taras Kondratiuk <taras@ti.com> Reviewed-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-09-10Add IPsec example app to build environmentRobbie King
Signed-off-by: Robbie King <robking@cisco.com> Tested-by: Alexandru Badicioiu <alexandru.badicioiu@linaro.org> Reviewed-and Tested-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> Reviewed-by: Bala Manoharan <bala.manoharan@linaro.org> Reviewed-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-09-04Timer example error checkPetri Savolainen
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-and-Tested-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-09-04linux-generic: netmap: renamed helper functionsCiprian Barbu
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org> Reviewed-and-Tested-by: Maxim Uvarov <maxim.uvarov@linaro.com>
2014-09-02move helper functions and rename to prefix to odph_Anders Roxell
Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Acked-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Stuart Haslam <stuart.haslam@arm.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-08-28Timer example argumentsPetri Savolainen
Use arguments instead of hard coded values. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Stuart Haslam <stuart.haslam@arm.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-08-18Fix comment for odp_generatorWeilong Chen
This patch fix a comment error, and remove the print message of the flood mode. Signed-off-by: Weilong Chen <weilong.chen@linaro.org> Acked-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-08-15odp doxygen: fix doxygen-run generated warningsAws Ismail
According to the CI job for ODP API doxygen generation [1], there are 28 total warnings that needed to be fixed. This patch resolved these warnings by adding the proper doxygen tags that were missing. [1]: https://ci.linaro.org/view/lng-ci/job/odp-api-doxygen-generation/ Signed-off-by: Aws Ismail <aws.ismail@windriver.com> Reviewed-by: Anders Roxell <anders.roxell@linaro.org> Reviewed & Tested-by: Mike Holmes <mike.holmes@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-08-06linux-generic: Fix incorrect thread_tbl index in appsSantosh Shukla
few of odp example and test application passing incorrect thread_tbl index entry (thread_tbl base addr) to odp_linux_pthread_create(thread_tbl^^, 1, ..) api. This patch a common fix for those odp application. Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org>
2014-08-04build both static and dynamic linked libsAnders Roxell
Move static decisions to Makefiles instead in the configure scripts. This makes it possible to build binaries with shared, static or all-static without reconfiguring and libodp is built both static and dynamic per default. Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2014-07-25Move ODP examples from under testsMike Holmes
The expectations of example code vs testing code is significantly different. This difference is more easily managed if tests and examples have their own root directory especially as the number of validation tests is increased for the ODP 1.0 release. For example test cases may be significantly more complex than a good example might be expected to be. In addition tests are not expected to have Doxygen documentation and tests will not be expected to be coherent, they will test isolated APIs and to do so may perform illegal combinations of calls making them poor examples. Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Reviewed-and-Tested-by: Ciprian Barbu <ciprian.barbu@linaro.org>