Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
Added 'timeout' and 'any' buffer types. Timer and buffer pool
modifications to use those.
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
|
|
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>
|
|
Signed-off-by: David Nyström <david.nystrom@enea.com>
|
|
Signed-off-by: Weilong Chen <weilong.chen@linaro.org>
|
|
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
|
|
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
|
|
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
|
|
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
|
|
Signed-off-by: Weilong Chen <weilong.chen@linaro.org>
|
|
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
|
|
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
Signed-off-by: Weilong Chen <weilong.chen@linaro.org>
|
|
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>
|
|
-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>
|
|
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>
|
|
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
asm is not defined with -std=c99 use __asm__ instead.
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
odp_ring.h was moved to include/helper, but an old copy remained
in include.
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
|
|
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>
|
|
Add odp_mem_barrier() before exit from odp_barrier_sync()
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
|
|
created new chksum file in include/helper directory and
added chksum function there.
Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
|
|
- 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>
|
|
Implement ipv4 functions to validate and set ipv4 checksum.
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
|
|
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>
|
|
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: Petri Savolainen <petri.savolainen@linaro.org>
|
|
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Carl Wallen <carl.wallen@linaro.org>
|
|
- 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>
|
|
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org>
|
|
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
|
|
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>
|
|
added support for sp,sc and changes in test application.
Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
|
|
Added support for atomic queues and optimized scheduler throughput.
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
|