Branch: refs/heads/master
Home: https://github.com/OpenDataPlane/odp
Commit: 059af8bd22a1e7d9a9dcc31846b06c55b5759df6
https://github.com/OpenDataPlane/odp/commit/059af8bd22a1e7d9a9dcc31846b06c55b5759df6
Author: Petri Savolainen
Date: 2019-02-13 (Wed, 13 Feb 2019)
Changed
Branch: refs/heads/master
Home: https://github.com/OpenDataPlane/odp
Commit: 20d4c58012d1bfed817eba53a09c4fa81e470dc7
https://github.com/OpenDataPlane/odp/commit/20d4c58012d1bfed817eba53a09c4fa81e470dc7
Author: Petri Savolainen
Date: 2019-02-04 (Mon, 04 Feb 2019)
Changed
Branch: refs/heads/master
Home: https://github.com/OpenDataPlane/odp
Commit: b1564eb643c16dc98048fb9aa072580451ed90b2
https://github.com/OpenDataPlane/odp/commit/b1564eb643c16dc98048fb9aa072580451ed90b2
Author: Petri Savolainen
Date: 2019-01-31 (Thu, 31 Jan 2019)
Changed
Add status ID for warning messages. Outbound inline soft lifetime
expiration is currently the only source of these events. API spec
keeps simple when the same warning structure is shared with IPSEC
packet and status events.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 33
Changed buffer, event and timeout handles to be pointers.
Packet handles are already pointers. This enabled code
optimization as some conversions may be removed and remaining
once are just type casts.
Signed-off-by: Petri Savolainen
---
include/odp/arch/default/api/abi/buffer.h | 7
Avoid conversions between buffer/packet handles and
buffer/packet header pointers.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_pool_internal.h | 5 +--
platform/linux-generic/odp_packet.c| 49 +++---
platform/linux-generic/odp_pool.c
Conversions are not needed as event handles are buffer header
pointers.
Signed-off-by: Petri Savolainen
---
.../linux-generic/include/odp_buffer_inlines.h | 5 --
platform/linux-generic/odp_queue.c | 74 +++---
2 files changed, 22 insertions(+), 57 deletions
Move direction (inboud/outbound) specific SA parameters
into separate structures. Specification is more clear
between common and direction specific SA parameters.
Signed-off-by: Petri Savolainen
Signed-off-by: Bogdan Pricope
---
include/odp/api/spec/ipsec.h | 103
Split error bits into error and warning bits. Move flags into
separate type and field. This way, all exceptions (rare but
important events) can be checked and maintained separately
from operation flags, which may be set for almost every packet.
Signed-off-by: Petri Savolainen
---
include/odp
Outer headers are read-only data for an implementation.
Signed-off-by: Petri Savolainen
Signed-off-by: Dmitry Eremin-Solenikov
---
include/odp/api/spec/ipsec.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index
Application may track time based SA lifetime expiration
efficiently and in many ways: e.g. ODP timers may be used,
wall clock time may be polled, control plane may send
notifications, etc.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 26 --
1 file
Allow implementation to decide how many times a soft lifetime
expiration is reported. Application does not require strict
synchronization of soft lifetimes.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a
AAD lengths are needed in crypto API but not in IPSEC API.
So, application should ignore AAD capability values in IPSEC
API.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/odp/api/spec/ipsec.h b
Added capability to specify maximum number of different queues that
can be used with IPsec.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 4
1 file changed, 4 insertions(+)
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 9f061961
Added a parameter for passing salt/nonce for algorithms that
need it. Currently, only AES GCM needs it with 4 bytes of
salt. Later on, other cipher (or auth) algorithms may need
also salt/nonce data.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 9 +
1 file changed
Application should not need to control initial sequence number
value as implementation is able to manage that internally.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec
Split error bits into error and warning bits. Move flags into
separate type and field. This way, all exceptions (rare but
important events) can be checked and maintained separately
from operation flags, which may be set for almost every packet.
Signed-off-by: Petri Savolainen
---
include/odp
Move direction (inboud/outbound) specific SA parameters
into separate structures. Specification is more clear
between common and direction specific SA parameters.
Signed-off-by: Petri Savolainen
Signed-off-by: Bogdan Pricope
---
include/odp/api/spec/ipsec.h | 103
Outer headers are read-only data for an implementation.
Signed-off-by: Petri Savolainen
Signed-off-by: Dmitry Eremin-Solenikov
---
include/odp/api/spec/ipsec.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index
Application may track time based SA lifetime expiration
efficiently and in many ways: e.g. ODP timers may be used,
wall clock time may be polled, control plane may send
notifications, etc.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 26 --
1 file
Added a parameter for passing salt/nonce for algorithms that
need it. Currently, only AES GCM needs it with 4 bytes of
salt. Later on, other cipher or auth algorithms may need
also salt/nonce data.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 18 ++
1 file
AAD lengths are needed in crypto API but not in IPSEC API.
So, application should ignore AAD capability values in IPSEC
API.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/odp/api/spec/ipsec.h b
Allow implementation to decide how many times a soft lifetime
expiration is reported. Application does not require strict
synchronization of soft lifetimes.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a
Added capability to specify maximum number of different queues that
can be used with IPsec.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 4
1 file changed, 4 insertions(+)
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 56363e22
Application should not need to control initial sequence number
value as implementation is able to manage that internally.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec
Move direction (inboud/outbound) specific SA parameters
into separate structures. Specification is more clear
between common and direction specific SA parameters.
Signed-off-by: Petri Savolainen
Signed-off-by: Bogdan Pricope
---
include/odp/api/spec/ipsec.h | 103
Outer headers are read-only data for an implementation.
Signed-off-by: Petri Savolainen
Signed-off-by: Dmitry Eremin-Solenikov
---
include/odp/api/spec/ipsec.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index
Split error bits into error and warning bits. Move flags into
separate type and field. This way, all exceptions (rare but
important events) can be checked and maintained separately
from operation flags, which may be set for almost every packet.
Signed-off-by: Petri Savolainen
---
include/odp
Application may track time based SA lifetime expiration
efficiently and in many ways: e.g. ODP timers may be used,
wall clock time may be polled, control plane may send
notifications, etc.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 26 --
1 file
AAD lengths are needed in crypto API but not in IPSEC API.
So, application should ignore AAD capability values in IPSEC
API.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/odp/api/spec/ipsec.h b
Allow implementation to decide how many times a soft lifetime
expiration is reported. Application does not require strict
synchronization of soft lifetimes.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a
Added a parameter for passing salt for AES GCM. Currently,
only option for length is 4 bytes, but later on other algorithms
may need more/less salt data.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 10 ++
1 file changed, 10 insertions(+)
diff --git a/include/odp
Added capability to specify maximum number of different queues that
can be used with IPsec.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 4
1 file changed, 4 insertions(+)
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 15dbb164
Application should not need to control initial sequence number
value as implementation is able to manage that internally.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec
Changed buffer, event and timeout handles to be pointers.
Packet handles are already pointers. This enabled code
optimization as some conversions may be removed and remaining
once are just type casts.
Signed-off-by: Petri Savolainen
---
include/odp/arch/default/api/abi/buffer.h | 7
Avoid conversions between buffer/packet handles and
buffer/packet header pointers.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_pool_internal.h | 5 +--
platform/linux-generic/odp_packet.c| 49 +++---
platform/linux-generic/odp_pool.c
Conversions are not needed as event handles are buffer header
pointers.
Signed-off-by: Petri Savolainen
---
.../linux-generic/include/odp_buffer_inlines.h | 5 --
platform/linux-generic/odp_queue.c | 61 +-
2 files changed, 14 insertions(+), 52 deletions
ux-generic/Makefile.am
# TESTS += pktio_ipc/pktio_ipc_run.sh
# SUBDIRS += pktio_ipc
L2fwd packet rate (odp-linux / pktio:dpdk) improves about 3%.
Petri Savolainen (3):
linux-gen: buffer: change buffer handle to pointer
linux-gen: queue: avoid extra conversions
linux-gen: pool: avoid extra c
Decrease queue interface size by combining four queue operation
set functions into a single function.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_queue_if.h | 16 +--
platform/linux-generic/odp_packet_io.c| 38 +--
platform
odp_packet_io_queue.h is not needed anymore as the queue
interface has replaced it.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/Makefile.am | 1 -
.../linux-generic/include/odp_packet_io_queue.h| 48
platform/linux-generic/odp_packet_io.c
Use internal queue type instead of API handle. This way per
packet queue conversions are avoided.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_packet_internal.h | 3 ++-
platform/linux-generic/include/odp_queue_if.h| 2 ++
platform/linux-generic
These are not any more queue_entry_t* but queue_t. Align
variable names with the new type.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_packet_io.c | 66 +-
1 file changed, 33 insertions(+), 33 deletions(-)
diff --git a/platform/linux-generic
TM should not modify queue type. Remove type_set queue
interface function.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_queue_if.h | 2 --
platform/linux-generic/odp_queue.c| 8 +---
platform/linux-generic/odp_queue_scalable.c | 8 +---
platform
Avoid queue handle conversion on fast path. Convert once after
queue create and save value.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_packet_io_internal.h | 2 ++
platform/linux-generic/odp_packet_io.c | 13 -
2 files changed, 10
ifies only plain and
sched queues as queue types.
v2:
* Rebased on top of latest api-next and "Clean up scheduler interface"
patch set
Petri Savolainen (6):
linux-gen: cls: avoid queue conversions
linux-gen: pktio: dont use qentry for queue_t
linux-gen: pktio: convert qu
interface definition, which is not changed in this patch.
Signed-off-by: Petri Savolainen
---
.../linux-generic/include/odp_queue_internal.h | 7 --
platform/linux-generic/odp_queue.c | 40 +-
platform/linux-generic/odp_schedule.c | 135
Do not use queue internal type in schedule interface.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_schedule_if.h | 8 +++--
platform/linux-generic/odp_queue.c | 9 --
platform/linux-generic/odp_schedule.c| 18 ---
platform/linux
Removed functions that are no longer used. Also removed unused
parameter from save_context function.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_schedule_if.h | 7 +--
platform/linux-generic/odp_queue.c | 21 +
platform/linux
Use config file value for the number of ordered locks
everywhere.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_config_internal.h | 2 +-
platform/linux-generic/odp_schedule.c| 8 +---
platform/linux-generic/odp_schedule_iquery.c | 8
change and
thus is left as the next step. Scheduler performance increased couple of
percents.
Petri Savolainen (4):
linux-gen: sched: remove schedule interface depedency to qentry
linux-gen: sched: use config max ordered locks
linux-gen: sched: remove most dependecies to qentry
linux-gen
t memory
* == all other packets into DDR
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/pool.h | 140 +++-
1 file changed, 126 insertions(+), 14 deletions(-)
diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h
index 6fc5b6b4..ae3aa2
Combine enqueue and dequeue function pointer set functions into
pktin/pktout calls so that queue interface size gets smaller and
code more readable. Also provide single call for TM.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_queue_if.h | 30
Remove references to qentry as it's not visible in this file
anymore. Avoid API handle to internal queue conversion on fast
path (sched_cb_pktin_poll()).
Signed-off-by: Petri Savolainen
---
.../linux-generic/include/odp_packet_io_internal.h | 3 +
platform/linux-generic/odp_packet
odp_packet_io_queue.h is not needed anymore as the queue
interface has replaced it.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/Makefile.am | 1 -
.../linux-generic/include/odp_packet_io_queue.h| 48
platform/linux-generic/odp_packet_io.c
ueue types.
Petri Savolainen (5):
linux-gen: cls: avoid queue conversions
linux-gen: pktio: clean up and avoid conversion
linux-gen: pktio: remove unused header file
linux-gen: queue: combine queue interface functions
linux-gen: queue: remove type set from interface
platform/lin
Use internal queue type instead of API handle. This way per
packet queue conversions are avoided.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_packet_internal.h | 3 ++-
platform/linux-generic/include/odp_queue_if.h| 2 ++
platform/linux-generic
TM should not modify queue type, thus the interface function
is not needed for that.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_queue_if.h | 2 --
platform/linux-generic/odp_queue.c| 8 +---
platform/linux-generic/odp_traffic_mngr.c | 4
3
List not used features so that performance may be optimized
on some platforms. E.g. on odp-linux implementation, timer
polling causes high overhead, which is disabled when timers
are not used.
Signed-off-by: Petri Savolainen
---
test/common_plat/performance/odp_l2fwd.c | 12 +++-
1 file
Use __aarch64__ instead of __ARM_ARCH, since it's backwards
compatible between GCC versions.
Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3066
Signed-off-by: Petri Savolainen
---
platform/linux-generic/arch/arm/odp_cpu_arch.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Use __aarch64__ instead of __ARM_ARCH, since it's backwards
compatible between GCC versions.
Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3066
Signed-off-by: Petri Savolainen
---
platform/linux-generic/arch/arm/odp_cpu_arch.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Generated files need $(top_builddir) instead of $(top_srcdir)
Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3052
Signed-off-by: Petri Savolainen
---
platform/Makefile.inc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/platform/Makefile.inc b/platform/Makefile.inc
which
do not care about IPSEC results may work on basic packet metadata.
IPSEC result event type changes from ODP_EVENT_IPSEC_RESULT to
ODP_EVENT_PACKET. Event subtype (ODP_EVENT_PACKET_IPSEC) can be
used to identify packets with IPSEC metadata.
Signed-off-by: Petri Savolainen
---
include/odp/api
Event subtype gives more detailed information about the event.
Two subtypes (basic and IPSEC packet) are introduced initially.
Later on, other packet producing APIs (crypto, comp, etc) may
also produce packet events with additional subtypes.
Signed-off-by: Petri Savolainen
---
include/odp/api
t_ipsec" indicates that a packet contain IPSEC results
* Added output packet format description, which was accidentally left out
from previous version (moved text from deleted result type to
odp_ipsec_in() / odp_ipsec_out() documentation)
Petri Savolainen (3):
api: event: add subt
Disable event is guaranteed to be the last event for the SA,
so that application can use it for SA destroy synchronization.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/odp/api/spec/ipsec.h b
t memory
* == all other packets into DDR
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/pool.h | 132 +++-
1 file changed, 118 insertions(+), 14 deletions(-)
diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h
index 6fc5b6b4..6b4e74
which
do not care about IPSEC results may work on basic packet metadata.
IPSEC result event type changes from ODP_EVENT_IPSEC_RESULT to
ODP_EVENT_PACKET. Event subtype (ODP_EVENT_PACKET_IPSEC) can be
used to identify packets with IPSEC metadata.
Signed-off-by: Petri Savolainen
---
include/odp/api
Event subtype gives more detailed information about the event.
Two subtypes (basic and IPSEC packet) are introduced initially.
Later on, other packet producing APIs (crypto, comp, etc) may
also produce packet events with additional subtypes.
Signed-off-by: Petri Savolainen
---
include/odp/api
Disable event is guaranteed to be the last event for the SA,
so that application can use it for SA destroy synchronization.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/odp/api/spec/ipsec.h b
a packet contain IPSEC results
* Added output packet format description, which was accidentally left out
from previous version (moved text from deleted result type to
odp_ipsec_in() / odp_ipsec_out() documentation)
Petri Savolainen (3):
api: event: add subtype to expand event type
api:
Clean up function and parameter naming after modular interface
patch. Queue_t type is referred as "queue internal": queue_int or
q_int. Term "handle" is reserved for API level handles (e.g.
odp_queue_t, odp_pktio_t, etc) through out linux-gen implementation.
Signed-off-
do not care about IPSEC results may work on basic packet metadata.
IPSEC result event type changes from ODP_EVENT_IPSEC_RESULT to
ODP_EVENT_PACKET_IPSEC. Later on, other packet producing APIs
(crypto, comp, etc) may also produce special packet events.
Signed-off-by: Petri Savolainen
---
include
Disable event is guaranteed to be the last event for the SA,
so that application can use it for SA destroy synchronization.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/odp/api/spec/ipsec.h b
ckets with
additional metadata. Application or API pipeline stages which
do not care about IPSEC results may work on basic packet metadata.
Petri Savolainen (2):
api: ipsec: change IPSEC result to packet
api: ipsec: disable event is the last event
include/odp/api/spec/event.h
Added capability for maximum number of different CoS in
CLS pipelining.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 24f9fb18
State more explicitly that async ipsec operations maintain packet
order the same way as odp_queue_enq_multi().
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 40 ++--
1 file changed, 26 insertions(+), 14 deletions(-)
diff --git a/include
Bill has reviewed v1.
v2
* rebase
* removed "api: ipsec: add capability for max packets per result event" from
the set while we decide if result event are changed to packets
* updated max_cls_cos documentation with CLS capability (Bill)
Petri Savolainen (2):
api: ipsec: refine pa
Updated Linux spelling file to it's latest version.
Signed-off-by: Petri Savolainen
---
scripts/spelling.txt | 151 +--
1 file changed, 147 insertions(+), 4 deletions(-)
diff --git a/scripts/spelling.txt b/scripts/spelling.txt
index bb8
: Petri Savolainen
---
scripts/checkpatch.pl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 1c27ac60..16316b92 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -4273,7 +4273,7 @@ sub process
These warnings were disabled with code modification. Use
checkpatch config file to ignore those.
Signed-off-by: Petri Savolainen
---
.checkpatch.conf | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.checkpatch.conf b/.checkpatch.conf
index 043551a4..990a54d2 100644
--- a/.checkpatch.conf
) allows application give hints and
requirements about e.g. memory to be used for pools (or parts
of pools).
Additionally, pool configuration may be extended with a table of
num/len/opt values. This gives application more flexibility to
specify requirements for various packet sizes.
Signed-off-
State more explicitly that async ipsec operations maintain packet
order the same way as odp_queue_enq_multi().
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 40 ++--
1 file changed, 26 insertions(+), 14 deletions(-)
diff --git a/include
Added maximum number of packets per result event to make it easy
for application to prepare enough storage for packets.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 15 ---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/include/odp/api/spec
Added capability for maximum number of different CoS in
CLS pipelining.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 255fee50
irements for various packet sizes.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/pool.h| 117 +++--
include/odp/arch/default/api/abi/pool.h| 2 +
.../include/odp/api/plat/pool_types.h | 2 +
3 files changed, 110 inserti
Authentication capabilities list supported digest lengths
per algorithm, but application did not have means to select which
length is used.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/crypto.h | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/odp
Authentication capabilities list supported AAD lengths
per algorithm, but application did not have means to select which
length is used. Also pointer to AAD is added, since it may be
constructed also outside of packet data.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/crypto.h | 10
Use 64 bit HW time counter when available. It is used on
x86 when invariant TSC CPU flag indicates that TSC frequency
is constant. Otherwise, the system time is used as before. Direct
HW time counter usage avoids system call, and related latency
and performance issues.
Signed-off-by: Petri
Test ODP time keeping accuracy against system time.
Signed-off-by: Petri Savolainen
---
test/common_plat/validation/api/time/time.c | 66 +++--
1 file changed, 54 insertions(+), 12 deletions(-)
diff --git a/test/common_plat/validation/api/time/time.c
b/test/common_plat
When building on x86 CPU flags can be used to determine which
CPU features are supported. CPU flag definitions and the code
to read the flags is from DPDK.
Signed-off-by: Petri Savolainen
---
configure.ac| 1 +
platform/Makefile.inc | 4
.
Signed-off-by: Petri Savolainen
---
.../include/odp/api/plat/time_types.h | 32 ++---
platform/linux-generic/odp_time.c | 143 ++---
2 files changed, 52 insertions(+), 123 deletions(-)
diff --git a/platform/linux-generic/include/odp/api/plat
values and
expected greater/lesser than relation.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/time.h | 13 --
platform/linux-generic/odp_time.c | 15
test/common_plat/validation/api/time/time.c | 37 -
test
Print API, impl name, CPU model/freq, cache line size and
CPU count by default. Print CPU flags in case of x86.
Signed-off-by: Petri Savolainen
---
.../linux-generic/arch/arm/odp_sysinfo_parse.c | 4 +++
.../linux-generic/arch/default/odp_sysinfo_parse.c | 4 +++
.../linux-generic/arch
11/11: Lower odp_time_t memory footprint due to converting timespec
to nsec time before storing into odp_time_t
Petri Savolainen (11):
api: time: remove odp_time_to_u64 from API
api: system: added system info print
linux-gen: cpu_flags: added x86 cpu flag read functions
Header file name time.h is ambiguos since C has a library header
file with the same name.
Signed-off-by: Petri Savolainen
---
test/common_plat/validation/api/time/Makefile.am | 2 +-
test/common_plat/validation/api/time/time.c | 2 +-
test/common_plat/validation/api
Use the new system info print function.
Signed-off-by: Petri Savolainen
---
test/common_plat/performance/odp_sched_latency.c | 18 +-
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/test/common_plat/performance/odp_sched_latency.c
b/test/common_plat/performance
Add short warm up round and measure over a longer period of
time (250ms vs 100ms).
Signed-off-by: Petri Savolainen
---
platform/linux-generic/arch/x86/odp_cpu_arch.c | 19 ++-
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/platform/linux-generic/arch/x86
Added validation test for the new system info print call.
Signed-off-by: Petri Savolainen
---
test/common_plat/validation/api/system/system.c | 8
test/common_plat/validation/api/system/system.h | 1 +
2 files changed, 9 insertions(+)
diff --git a/test/common_plat/validation/api
This information specifies the system where ODP application
is running for debugging purposes.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/system_info.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/include/odp/api/spec/system_info.h
b/include/odp/api/spec
Use 64 bit HW time counter when available. It is used on
x86 when invariant TSC CPU flag indicates that TSC frequency
is constant. Otherwise, the system time is used as before. Direct
HW time counter usage avoids system call, and related latency
and performance issues.
Signed-off-by: Petri
1 - 100 of 1113 matches
Mail list logo