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
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
Test ODP time keeping accuracy against system time.
Signed-off-by: Petri Savolainen
---
test/common_plat/validation/api/time/time.c | 72 +++--
1 file changed, 57 insertions(+), 15 deletions(-)
diff --git a/test/common_plat/validation/api/time/time.c
b/test/common_plat
unintialized variable (false warning).
* Fixed install of new arch/x86/cpu_flag files
Petri Savolainen (8):
api: system: added system info print
linux-gen: cpu_flags: added x86 cpu flag read functions
linux-gen: system: implement system info print
test: validation: add
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
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
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/linux-generic/Makefile.am | 4
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 | 72 +++--
1 file changed, 57 insertions(+), 15 deletions(-)
diff --git a/test/common_plat/validation/api/time/time.c
b/test/common_plat
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
---
platform/linux-generic/arch/arm/odp_sysinfo_parse.c | 4
.../linux-generic/arch/default/odp_sysinfo_parse.c | 4
.../linux-generic
correctly).
Patch 2/8 causes two checkpatch errors due to code copied from DPDK. Both
the macro and the ifdef cannot be changed, so errors should be ignored.
Petri Savolainen (8):
api: system: added system info print
linux-gen: cpu_flags: added x86 cpu flag read functions
linux-gen: system
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
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
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
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
application requires in minimum.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/queue.h | 39 ++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h
index 7972feac..9dd0a561 100644
--- a
Updated implementation and test with type specific number of
queues.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_queue.c| 2 ++
test/common_plat/validation/api/queue/queue.c | 49 +--
2 files changed, 34 insertions(+), 17 deletions
Lookup modes are per SA and thus may be used in a mix. Spi_overlap
parameter is global. So, removed comment about ignoring it in
LOOKUP_SPI mode.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/include/odp
belong
to different groups
Lowered the maximum number of groups from 256 to 32 (in the default
configuration) to limit memory usage of priority queues. This should
be enough for the most users.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_schedule.c | 284
User may give number of scheduling groups to test
scheduler performance with other that the default (all
threads) group. Both pktios and threads are allocated
into these groups with round robin. The number of groups
may not exceed number of pktios or worker threads.
Signed-off-by: Petri
A precalculated table is more flexible for tunning weights
than hard coding. As future development, the table may be
updated with different weights at init or run time.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_schedule.c | 51 ++-
1 file
Branch: refs/heads/api-next
Home: https://github.com/Linaro/odp
Commit: ce1850c781e3a60d6a2afaf52eced67ebcaa95f4
https://github.com/Linaro/odp/commit/ce1850c781e3a60d6a2afaf52eced67ebcaa95f4
Author: Petri Savolainen
Date: 2017-04-03 (Mon, 03 Apr 2017)
Changed paths:
M
d1c4cab4ea
https://github.com/Linaro/odp/commit/e91cf8bb39da24d2a7dbfbb328aa35d1c4cab4ea
Author: Petri Savolainen
Date: 2017-04-03 (Mon, 03 Apr 2017)
Changed paths:
M include/odp/api/spec/packet.h
Log Message:
---
api: packet: add per packet checksum control
Checksum ins
application requires in minimum.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/queue.h | 35 ++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h
index 7972fea..9c83322 100644
--- a/include
Updated implementation and test with type specific number of
queues.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_queue.c| 2 ++
test/common_plat/validation/api/queue/queue.c | 49 +--
2 files changed, 34 insertions(+), 17 deletions
Updated implementation and test with type specific number of
queues.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_queue.c| 2 ++
test/common_plat/validation/api/queue/queue.c | 43 ---
2 files changed, 28 insertions(+), 17 deletions
application requires in minimum.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/queue.h | 33 -
1 file changed, 32 insertions(+), 1 deletion(-)
diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h
index 7972fea..55b7e44 100644
--- a/include/odp
Updated implementation and test with type specific number of
queues.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_queue.c| 2 ++
test/common_plat/validation/api/queue/queue.c | 43 ---
2 files changed, 28 insertions(+), 17 deletions
application requires in minimum.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/queue.h | 31 ++-
1 file changed, 30 insertions(+), 1 deletion(-)
diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h
index 7972fea..fea72ca 100644
--- a/include/odp
built
with both options.
Signed-off-by: Petri Savolainen
---
configure.ac | 19 +++-
doc/application-api-guide/api_guide_lines.dox | 6 +--
doc/platform-api-guide/Doxyfile| 1 +
doc/process-guide/release-guide.adoc
Used ODP_DEPRECATE() to control if deprecated API
definitions are visible in the API or not.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/crypto.h | 29 ++--
platform/linux-generic/odp_crypto.c | 45 +
2 files changed, 48
Remove last remaining references to deprecated API definitions.
Signed-off-by: Petri Savolainen
---
example/ipsec/odp_ipsec_misc.h| 4 ++--
example/ipsec/odp_ipsec_sa_db.c | 4 ++--
example/ipsec/odp_ipsec_stream.c | 6 +++---
test/common_plat/performance
).
Petri Savolainen (4):
api: hints: remove ODP_DEPRECATED from API
api: deprecated: add configure option and macros
test: crypto: remove references to deprecated crypto apis
api: crypto: enforce deprecated API status
configure.ac | 19 +++-
doc
.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/hints.h | 6 --
1 file changed, 6 deletions(-)
diff --git a/include/odp/api/spec/hints.h b/include/odp/api/spec/hints.h
index 82400f0..7434c6a 100644
--- a/include/odp/api/spec/hints.h
+++ b/include/odp/api/spec/hints.h
@@ -52,11 +52,6
Added support for inline IPSEC processing on packet input and
output. Inline mode IPSEC and traffic manager cannot be enabled
(currently) on the same pktio interface.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 355 ---
include/odp
queries. Improved outbound fragmentation
documentation.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/event.h | 2 +-
include/odp/api/spec/ipsec.h | 198 ++-
2 files changed, 158 insertions(+), 42 deletions(-)
diff --git a/include/odp/api/spec
Enable application build with IPSEC.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_ipsec.c | 24
1 file changed, 24 insertions(+)
diff --git a/platform/linux-generic/odp_ipsec.c
b/platform/linux-generic/odp_ipsec.c
index 588d8d8..5eb1be3 100644
--- a
Checksum insertion has pktio interface level configuration
options. Per packet override is needed for example when
L4 checksumming is enabled and application forwards packets.
Forwarded packets need to maintain original, end-to-end checksum
value.
Signed-off-by: Petri Savolainen
---
include/odp
Added support for inline IPSEC processing on packet input and
output. Inline mode IPSEC and traffic manager cannot be enabled
(currently) on the same pktio interface.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 355 ---
include/odp
Enable application build with IPSEC.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_ipsec.c | 24
1 file changed, 24 insertions(+)
diff --git a/platform/linux-generic/odp_ipsec.c
b/platform/linux-generic/odp_ipsec.c
index 588d8d8..5eb1be3 100644
--- a
queries. Improved outbound fragmentation
documentation.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/event.h | 2 +-
include/odp/api/spec/ipsec.h | 191 +--
2 files changed, 151 insertions(+), 42 deletions(-)
diff --git a/include/odp/api/spec
Checksum insertion has pktio interface level configuration
options. Per packet override is needed for example when
L4 checksumming is enabled and application forwards packets.
Forwarded packets need to maintain original, end-to-end checksum
value.
Signed-off-by: Petri Savolainen
---
include/odp
Added support for inline IPSEC processing on packet input and
output. Inline mode IPSEC and traffic manager cannot be enabled
(currently) on the same pktio interface.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 348 ---
include/odp
Enable application build with IPSEC.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_ipsec.c | 24
1 file changed, 24 insertions(+)
diff --git a/platform/linux-generic/odp_ipsec.c
b/platform/linux-generic/odp_ipsec.c
index 588d8d8..5eb1be3 100644
--- a
Added configuration option for inbound SPI range and default
queue. Added SA disable function and status event for the
response from it. The same event may be used for e.g. IPSEC
statistics, etc queries. Improved outbound fragmentation
documentation.
Signed-off-by: Petri Savolainen
---
include
Added support for inline IPSEC processing on packet input and
output. Inline mode IPSEC and traffic manager cannot be enabled
(currently) on the same pktio interface.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 348 ---
include/odp
Added configuration option for inbound SPI range and default
queue. Added SA disable function and status event for the
response from it. The same event may be used for e.g. IPSEC
statistics, etc queries. Improved outbound fragmentation
documentation.
Signed-off-by: Petri Savolainen
---
include
Enable application build with IPSEC.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_ipsec.c | 24
1 file changed, 24 insertions(+)
diff --git a/platform/linux-generic/odp_ipsec.c
b/platform/linux-generic/odp_ipsec.c
index 588d8d8..5eb1be3 100644
--- a
Add visibility markers to make inline offset table visible
applications linking against an installed copy of the library.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_packet.c | 4
1 file changed, 4 insertions(+)
diff --git a/platform/linux-generic/odp_packet.c
b
Added support for inline IPSEC processing on packet input and
output.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/ipsec.h | 134 +++
include/odp/api/spec/packet_io.h | 27
2 files changed, 149 insertions(+), 12 deletions(-)
diff
Added SPI range and SA disable. Improved fragment documentation.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/event.h | 2 +-
include/odp/api/spec/ipsec.h | 43 +--
2 files changed, 42 insertions(+), 3 deletions(-)
diff --git a/include/odp
Use (from buffer to packet handle) conversion function instead
of casting.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_traffic_mngr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/platform/linux-generic/odp_traffic_mngr.c
b/platform/linux-generic
Use conversion function instead of casting.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_packet_internal.h | 5 +
platform/linux-generic/odp_packet.c | 5 -
platform/linux-generic/pktio/ipc.c | 2 +-
3 files changed, 6
Use (from buffer to packet handle) conversion function instead
of casting.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_traffic_mngr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/platform/linux-generic/odp_traffic_mngr.c
b/platform/linux-generic
Use conversion function instead of casting.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_packet_internal.h | 6 ++
platform/linux-generic/odp_packet.c | 5 -
platform/linux-generic/pktio/ipc.c | 2 +-
3 files changed, 7
configuration option --enable-deprecated to control the
macro value.
Signed-off-by: Petri Savolainen
---
configure.ac | 19 +--
include/odp/api/spec/.gitignore| 1 +
include/odp/api/spec/deprecated.h.in | 38
Used ODP_DEPRECATED to control if deprecated API definitions are
visible in the API or not.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/crypto.h | 16 +++--
platform/linux-generic/odp_crypto.c | 45 +
2 files changed, 45 insertions
Remove last remaining references to deprecated API definitions.
Signed-off-by: Petri Savolainen
---
example/ipsec/odp_ipsec_misc.h| 4 ++--
example/ipsec/odp_ipsec_sa_db.c | 4 ++--
example/ipsec/odp_ipsec_stream.c | 6 +++---
test/common_plat/performance
.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/hints.h | 5 -
1 file changed, 5 deletions(-)
diff --git a/include/odp/api/spec/hints.h b/include/odp/api/spec/hints.h
index 82400f0..a763645 100644
--- a/include/odp/api/spec/hints.h
+++ b/include/odp/api/spec/hints.h
@@ -52,11 +52,6
API enumerations are tested but functional tests are missing still.
Signed-off-by: Petri Savolainen
---
test/common_plat/validation/api/crypto/crypto.h| 2 ++
.../validation/api/crypto/odp_crypto_test_inp.c| 32 ++
2 files changed, 34 insertions(+)
diff --git a
Added enumerations for HMAC-SHA-1 and HMAC-SHA-256 authentication
algorithms.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/crypto.h | 18 ++
1 file changed, 18 insertions(+)
diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h
index 9855bf9
Update ABI spec with the new IPSEC event type.
Signed-off-by: Petri Savolainen
Signed-off-by: Dmitry Eremin-Solenikov
---
include/odp/arch/default/api/abi/event.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/odp/arch/default/api/abi/event.h
b/include/odp/arch
Explicitly set capabilities to zero.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_crypto.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/platform/linux-generic/odp_crypto.c
b/platform/linux-generic/odp_crypto.c
index b53b0fc..fcbabd1 100644
--- a/platform/linux
Add new algorithm enumerations so that vendor IPSEC implementations and IPSEC
test applications can proceed. Odp-linux crypto implementation and validation
tests follow later.
Petri Savolainen (4):
abi: event: add ODP_EVENT_IPSEC_RESULT
api: crypto: add sha-1 and sha-512 enumerations
Add missing commands and update instructions for installing into
default location for 'make distcheck'.
Signed-off-by: Petri Savolainen
---
DEPENDENCIES | 23 ---
1 file changed, 20 insertions(+), 3 deletions(-)
diff --git a/DEPENDENCIES b/DEPENDENCIES
ind
Helper library should be built ABI compatible when it's part of
a distro. There's no need to have implementation specific helper
libs. Those would be needed only if non-ABI compat helper
libraries need to be distributed.
Signed-off-by: Petri Savolainen
---
co
Added common helper file for backwards compatibility. This file
includes all headers under helper/linux directory. It's installed
only with --enable-helper-linux configuration option.
Signed-off-by: Petri Savolainen
---
helper/Makefile.am| 3 +++
helper/include/odp/h
-off-by: Petri Savolainen
---
include/odp/api/spec/packet_io.h | 36
1 file changed, 36 insertions(+)
diff --git a/include/odp/api/spec/packet_io.h b/include/odp/api/spec/packet_io.h
index 85cd6d1..cec1f22 100644
--- a/include/odp/api/spec/packet_io.h
+++ b
Fill default parser configuration and capability. All pktios
use same parser code, so the capability is the same (all layers).
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_packet_io.c| 13 +++--
test/common_plat/validation/api/pktio/pktio.c | 2 ++
2 files
Added stubs for functions so that applications can be built
already. A proper implementation follows later on.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_ipsec.c | 111 +
1 file changed, 111 insertions(+)
diff --git a/platform/linux
Added symbolic link to the installed include directory. The link
points to the arch specific abi dir, so that application does
not need to add the arch specific dir into its makefile.
Signed-off-by: Petri Savolainen
---
configure.ac | 2 ++
platform/linux-generic
This reverts commit 22b3986fea090986625f3255d57b64de35bbc475.
---
.../linux-generic/include/odp_packet_internal.h| 85 +---
platform/linux-generic/odp_packet.c| 536 -
2 files changed, 107 insertions(+), 514 deletions(-)
diff --git a/platform/linux-generic
Tests for bad inputs are not compatible to the spec.
Out-of-range values cause undefined results and must not
be tested in validation suite.
Remove reference checks that do not comply anymore to
the new odp_packet_has_ref() specification.
Signed-off-by: Petri Savolainen
---
test/common_plat
long as performance and code simplicity are not sacrificed.
v2:
- highlight in API that zero copy is default behaviour
- simplified odp_packet_ref_static() implementation
Petri Savolainen (4):
api: packet: references may be implemented as copy
validation: packet: remove non compatible tests
Some implementations may implement new references as packet copy.
odp_packet_has_ref() will return 0 for copies, since those are
unique packets.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/packet.h | 21 ++---
1 file changed, 14 insertions(+), 7 deletions(-)
diff
Implement packet references API as packet copy. This is the
simplest way to support the API, as other packet functions
are not affected at all.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_packet.c | 74 +
1 file changed, 74 insertions
This reverts commit 22b3986fea090986625f3255d57b64de35bbc475.
---
.../linux-generic/include/odp_packet_internal.h| 85 +---
platform/linux-generic/odp_packet.c| 536 -
2 files changed, 107 insertions(+), 514 deletions(-)
diff --git a/platform/linux-generic
Tests for bad inputs are not compatible to the spec.
Out-of-range values cause undefined results and must not
be tested in validation suite.
Remove reference checks that do not comply anymore to
the new odp_packet_has_ref() specification.
Signed-off-by: Petri Savolainen
---
test/common_plat
Some implementations may implement new references as packet copy.
odp_packet_has_ref() will return 0 for copies, since those are
unique packets.
Signed-off-by: Petri Savolainen
---
include/odp/api/spec/packet.h | 20 +---
1 file changed, 13 insertions(+), 7 deletions(-)
diff
long as performance and code simplicity are not sacrificed.
Petri Savolainen (4):
api: packet: references may be implemented as copy
validation: packet: remove non compatible tests
Revert "linux-generic: packet: implement reference apis"
linux-gen: packet: implement referenc
Implement packet references API as packet copy. This is the
simplest way to support the API, as other packet functions
are not affected at all.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_packet.c | 78 +
1 file changed, 78 insertions
Knowing the reason for suite init function failure helps in
debugging.
Signed-off-by: Petri Savolainen
---
test/common_plat/validation/api/packet/packet.c | 23 ++-
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/test/common_plat/validation/api/packet/packet.c
During 'make check' run generator on up to four cpus. Generator on
all cpus was an overkill compared to l2fwd on two cpus. Generator
and l2fwd still share cpus (on odp-linux) as cpumask_default_worker()
returns the same cpumask for both.
Signed-off-by: Petri Savolainen
---
test/c
debugging easier.
Signed-off-by: Petri Savolainen
---
example/generator/odp_generator.c | 77 ++-
1 file changed, 51 insertions(+), 26 deletions(-)
diff --git a/example/generator/odp_generator.c
b/example/generator/odp_generator.c
index 6ac8f2d..8062d87 100644
Print out pktio driver name in start up. Driver name (e.g. dpdk or
netmap) helps in checking that correct pktio device started.
Signed-off-by: Petri Savolainen
---
test/common_plat/performance/odp_l2fwd.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/test
Since l2fwd can assume that all packets are Ethernet. Also
odp_packet_data() points to the first byte of the frame directly
after packet input.
Signed-off-by: Petri Savolainen
---
test/common_plat/performance/odp_l2fwd.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff
Various fixes and development of packet related tests done during packet inline
implementation. Better print outs, etc make it easier to debug packet
implementation bugs.
Petri Savolainen (5):
test: l2fwd: add pktio driver print out
validation: packet: print reason for suite init failure
Added first inlined packet functions. Functions are allways used
inlined within the implementation. Applications see inlined
versions only when ABI compatibility is disabled.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/Makefile.am | 2 +
platform/linux-generic
This define is visible to applications through API headers. Use _ODP prefix
to avoid name space collision. Also "inline" describes better the purpose
of the macro than "static".
Signed-off-by: Petri Savolainen
---
.../include/odp/api/plat/atomic_inli
Added first inlined packet flag functions. Functions are allways used
inlined within the implementation. Applications see inlined
versions only when ABI compatibility is disabled.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/Makefile.am | 2 +
.../linux-generic
not needed.
Signed-off-by: Petri Savolainen
---
.../include/odp/api/plat/packet_types.h| 2 +-
.../linux-generic/include/odp_packet_internal.h| 2 +-
platform/linux-generic/odp_packet.c| 163 -
3 files changed, 96 insertions(+), 71 deletions
. odp_packet_len() from 9 to 4 cycles per call) and l2fwd
(packet rate +20%).
v2:
* Moved test code changes into a separate patch set
Petri Savolainen (5):
linux-gen: inline: rename _STATIC to _ODP_INLINE
linux-gen: ticketlock: inline also in application
linux-gen: packet: packet handle is
Enable ticketlock function inlining in applications when
not building for ABI compatibility.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/Makefile.am | 1 +
.../include/odp/api/plat/ticketlock_inlines.h | 19 +++-
.../include/odp/api/plat
not needed.
Signed-off-by: Petri Savolainen
---
.../include/odp/api/plat/packet_types.h| 2 +-
.../linux-generic/include/odp_packet_internal.h| 2 +-
platform/linux-generic/odp_packet.c| 163 -
3 files changed, 96 insertions(+), 71 deletions
This define is visible to applications through API headers. Use _ODP prefix
to avoid name space collision. Also "inline" describes better the purpose
of the macro than "static".
Signed-off-by: Petri Savolainen
---
.../include/odp/api/plat/atomic_inli
Added first inlined packet functions. Functions are allways used
inlined within the implementation. Applications see inlined
versions only when ABI compatibility is disabled.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/Makefile.am | 2 +
platform/linux-generic
Added first inlined packet flag functions. Functions are allways used
inlined within the implementation. Applications see inlined
versions only when ABI compatibility is disabled.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/Makefile.am | 2 +
.../linux-generic
Knowing the reason for suite init function failure helps in
debugging.
Signed-off-by: Petri Savolainen
---
test/common_plat/validation/api/packet/packet.c | 23 ++-
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/test/common_plat/validation/api/packet/packet.c
101 - 200 of 1113 matches
Mail list logo