aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2014-07-23debug: Convert ODP_ASSERT to a runtime assertionTaras Kondratiuk
Accordingly to architecture document this should be a runtime assertion and call abort() in case of failure. Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> Reviewed-by: Anders Roxell <anders.roxell@linaro.org> Tested-by: Mike Holmes <mike.holmes@linaro.org>
2014-07-23debug: Replace ODP_ASSERT with ODP_STATIC_ASSERTTaras Kondratiuk
Replace ODP_ASSERT with ODP_STATIC_ASSERT and stringify error messages. Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> Reviewed-by: Anders Roxell <anders.roxell@linaro.org> Tested-by: Mike Holmes <mike.holmes@linaro.org>
2014-07-23debug: Fix ODP_STATIC_ASSERTTaras Kondratiuk
GCC provides _Static_assert() function. Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> Reviewed-by: Anders Roxell <anders.roxell@linaro.org> Tested-by: Mike Holmes <mike.holmes@linaro.org>
2014-07-18Introduce sum type to solve sparse warningsMike Holmes
ODP follows the linux kernel with the use of sparse and BE data type checking. This patch introduces the sum type which is used by Linux but was not part of ODP see: http://lxr.free-electrons.com/source/include/uapi/linux/icmp.h#L71 This patch allows SPARSE to pass cleanly and the odp_generator test case also passes. Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-and-Tested-by: Anders Roxell <anders.roxell@linaro.org>
2014-07-18Fix linux-generic compilation error for aarch64Ankit Jindal
This patch mainly fixes compilation error by adding __aarch64__ in related headers. Signed-off-by: Ankit Jindal <ankit.jindal@linaro.org> Signed-off-by: Tushar Jagad <tushar.jagad@linaro.org> Reviewed-by: Anders Roxell <anders.roxell@linaro.org>
2014-07-09Packet segment API continuedPetri Savolainen
Replaced segment index with handle. Segment handle is always coupled with packet handle. Added functions to get segment handle from index and from current handle (iterate to next seg). Added segment info function. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
2014-07-02Packet segment API startedPetri Savolainen
Started buffer/packet/SG-list API harmonizartion. New API terminology is introduced first in segments (SG list) API and buffer/packet APIs are changed to use same terms in following patches. Segments are introduced for packet type buffers only at this phase. Term summary: - xxx_addr = segment start address - xxx_size = segment size - xxx_data = data pointer (data start inside the segment) - xxx_data_len = data length Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
2014-07-02odp_buffer_pool.h: Doxygen link related APIsMike Holmes
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
2014-07-01odp_atomic.h Correct spellingMike Holmes
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
2014-06-26Fix uint16be_t sparse checksum errorsMike Holmes
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
2014-06-26Added timeout buffer typePetri Savolainen
Added 'timeout' and 'any' buffer types. Timer and buffer pool modifications to use those. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
2014-06-10Fix mismatched size of ODP_PACKET_OFFSET_INVALIDStuart Haslam
ODP_PACKET_OFFSET_INVALID is defined as ((size_t)-1) but the existing implementations both store offsets using a uint32_t, which breaks things in a few places on 64-bit systems. There's some explicit casting in the implementations but it's not consistent and the odp_packet_l2/3/4 functions can return a junk ptr if packet parsing didn't get far enough to set the offset correctly. Signed-off-by: Stuart Haslam <stuart.haslam@arm.com>
2014-05-21added ability to assign queue contextsDavid Nyström
Signed-off-by: David Nyström <david.nystrom@enea.com>
2014-05-21Use odp_chksum to compute checksum of udp header and dataWeilong Chen
Signed-off-by: Weilong Chen <weilong.chen@linaro.org>
2014-05-14include/*: asm compatible with -std=c99Anders Roxell
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2014-05-14include/odp_byteorder: allow for -std=c99 to be setAnders Roxell
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2014-05-12Makefile.inc: ODP_DEBUG_PRINT=no to disable the ODP_DBG macroAnders Roxell
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2014-05-08include/*: tidy up the include directoryAnders Roxell
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2014-05-08Add odp helper function for udp checksumWeilong Chen
Signed-off-by: Weilong Chen <weilong.chen@linaro.org>
2014-05-05Documentation Split mainpage from headderMike Holmes
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
2014-04-28odp_debug.h: Add ODP_STATIC_ASSERTMike Holmes
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
2014-04-28include: make include files consistentAnders Roxell
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2014-04-28make odp_icmp comments doxygen friendlyMaxim Uvarov
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-04-24Add helper: odp_icmp.hWeilong Chen
Signed-off-by: Weilong Chen <weilong.chen@linaro.org>
2014-04-18Scheduler development and timer testPetri Savolainen
Added timer test and modified scheduler API for cleaner wait and pause functionality. - Added test/timer, removed timer test code from test/example - Added scheduler wait parameter: cleaner control of wait/no wait/how long to wait - Added scheduler pause/resume which provides application a clean way to break out from the schedule loop (when scheduler has potentially optimized throughput with thread local stash of buffer) - odp_schedule_one which can be used to optimize application RT/QoS vs throughput - queue and time helpers used by scheduler and timer test Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
2014-04-17odp_packet_io: Clarify usage of netdev stringDavid Nyström
-odp_pktio_t odp_pktio_open(char *dev, odp_buffer_pool_t pool, +odp_pktio_t odp_pktio_open(const char *dev, odp_buffer_pool_t pool, 1. Clearly specify for the interface user what our intentions are with the pointer argument. 2. Restrict the function from doing any future unintended modifications to the pointee. Signed-off-by: David Nyström <david.nystrom@enea.com>
2014-04-10Adding odp_packet_copyCiprian Barbu
This function will not some more work when the scatter/gather support is added, for now the odp_buffer_copy_scatter is just a stub. Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org>
2014-03-31Group IP protocols in doxygenMike Holmes
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
2014-03-31odp_coremask: Add const to the maskMike Holmes
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
2014-03-31make asm includes C99 standard friendlyMaxim Uvarov
asm is not defined with -std=c99 use __asm__ instead. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-03-27Deleted redundant odp_ring.h from includePetri Savolainen
odp_ring.h was moved to include/helper, but an old copy remained in include. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
2014-03-27Clean Doxygen warningsPetri Savolainen
Cleaned warnings on include, include/helper and test/example. Used @internal and @private to mark documentation that should not go into ODP API docs. Doxyfile.in needs INTERNAL_DOCS = YES to suppress warnings (of @internal), but it should be set "NO" for "official" documentation generation. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
2014-03-24Correct race condition and simplify barrier implementationBill Fischofer
Add odp_mem_barrier() before exit from odp_barrier_sync() Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
2014-03-21chksum: move chksum calculation from ipv4 header filesantosh shukla
created new chksum file in include/helper directory and added chksum function there. Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
2014-03-19Compile ODP for PowerPC targetsAlexandru Badicioiu
- define cache line size - fallback to 32bit atomics on 32bit platforms - enable hugetlb mappings - fix compilation errors when hugetlb mappings are not used - cpuinfo parser Signed-off-by: Alexandru Badicioiu <alexandru.badicioiu@linaro.org>
2014-03-17implement ipv4 checksum functionsMaxim Uvarov
Implement ipv4 functions to validate and set ipv4 checksum. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2014-03-14Timer build fixsantosh shukla
v2 titled patch "Timer-implementation-first-draft.patch" missed out while merging that lead to build break. | source/odp_timer.c: In function 'odp_timer_absolute_tmo': | source/odp_timer.c:253:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] | return (odp_timer_tmo_t) new_tmo; this patch is diff of v1 vs v2 patch..Keeping original original author v2 header copied from lng-odp list for reference. commit 9258e038fca5f51c161d2dffc279569ffe99d02a Author: Petri Savolainen <petri.savolainen@linaro.org> Date: Tue Mar 11 16:11:40 2014 +0200 Timer implementation first draft Very simple implementation. Does not implement cancel_tmo. Test included into example app. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
2014-03-13Timer implementation first draftPetri Savolainen
Very simple implementation. Does not implement cancel_tmo. Test included into example app. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
2014-03-13Timer API first draftPetri Savolainen
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
2014-02-24Buffer type addedPetri Savolainen
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
2014-02-18ODP Packet: L2,L3,L4-header access func retval changeCarl Wallen
odp_packet_l2/l3/l4_offset() returns ODP_PACKET_OFFSET_INVALID if no known header is found. odp_packet_l2/l3/l4() returns NULL if no known header is found. Signed-off-by: Carl Wallen <carl.wallen@linaro.org>
2014-02-18ODP Packet Flags APICarl Wallen
Add ODP Packet Flags API funcs to access the error, input and output flags set by packet IO. Signed-off-by: Carl Wallen <carl.wallen@linaro.org>
2014-02-18ODP helper: Add IPv6 header and defines. Add & rename IPv4 definesCarl Wallen
Add IPv6 header and defines along with some new IPv4 defines and renames. Update code using updated definitions. Signed-off-by: Carl Wallen <carl.wallen@linaro.org>
2014-02-18ODP helper: Add Ethernet length definesCarl Wallen
Signed-off-by: Carl Wallen <carl.wallen@linaro.org>
2014-02-17Multi-enq and deq operationsPetri Savolainen
- Added multi-buffer enqueue and dequeue operations for queues - And scheduler/packet IO support for those - Added/renamed schedule functions - _poll removed from functions names (default operation) - former odp_schedule() is now odp_schedule_once() - Enabled -O3 optimization (again) Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
2014-02-12Added support for multiple pktio typesCiprian Barbu
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org>
2014-02-11include/odp.h: remove broken pdf diagramMike Holmes
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
2014-02-11Huge page support for shared memPetri Savolainen
Shared memory allocation tries first mmap with MAP_HUGETLB (if available) and system supports hugetlbfs. Normal mmap is used as fall back (e.g. no system support, or no free huge pages). Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
2014-02-11odp_ring : add sp, sc supportsantosh shukla
added support for sp,sc and changes in test application. Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
2014-02-05Scheduler developmentPetri Savolainen
Added support for atomic queues and optimized scheduler throughput. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>