Re: [lng-odp] Compression API: hashing

2018-12-10 Thread Dmitry Eremin-Solenikov
t data to odp_comp_packet_result_t. This will result in extra API call being necessary to access digest data. > > On Mon, Dec 10, 2018 at 1:00 PM Dmitry Eremin-Solenikov > <mailto:dmitry.ereminsoleni...@linaro.org>> wrote: > > Hello, > > I have been reworking compre

[lng-odp] Compression API: hashing

2018-12-10 Thread Dmitry Eremin-Solenikov
Hello, I have been reworking compression API implementation to properly allocate/deallocate memory. Right now I've stumbled upon digest part of compression API. Currently on both compression and decompression digest should be written after co/decompressed output data. However both our hardware

Re: [lng-odp] ODP-generic: compression API implementation

2018-11-23 Thread Dmitry Eremin-Solenikov
Hello, On 23/11/2018 19:37, Dmitry Eremin-Solenikov wrote: > I started working on compression api implementation. Unfortunately old > code heavily uses memory from heap, so fixing it will take some time. Related question: zlib uses malloc-like callback to allocate its internal stat

[lng-odp] ODP-generic: compression API implementation

2018-11-23 Thread Dmitry Eremin-Solenikov
Hello, I started working on compression api implementation. Unfortunately old code heavily uses memory from heap, so fixing it will take some time. -- With best wishes Dmitry

Re: [lng-odp] pktio_run_pcap.sh question

2018-09-05 Thread Dmitry Eremin-Solenikov
On 05/09/18 11:48, Maxim Uvarov wrote: > does it hangs or it takes too long time to complete? Builder is killed after two and a half hours. So technically it hangs. > > On 5 September 2018 at 10:46, Dmitry Eremin-Solenikov > <mailto:dmitry.ereminsoleni...@linaro.org>> wro

Re: [lng-odp] pktio_run_pcap.sh question

2018-09-05 Thread Dmitry Eremin-Solenikov
On 05/09/18 09:24, Maxim Uvarov wrote: > it hangs on some ubuntu where iptables default policy is drop. Can it be > that case? (we had fix in .travis.yaml for that.) iptables fix was necessary for tap test, I'm asking about pcap test. > > On 5 September 2018 at 00:49, Dmitry Erem

[lng-odp] pktio_run_pcap.sh question

2018-09-04 Thread Dmitry Eremin-Solenikov
Hello colleagues, I'm observing pktio pcap test taking too long to complete. Unfortunately this happens in Automake-controlled test run on PPA, so the only known thing is that this test timeouts. Any suggestions/ideas? -- With best wishes Dmitry

[lng-odp] Reconsidering PowerPC architecture for ODP

2018-08-22 Thread Dmitry Eremin-Solenikov
Hello, While working on ODP packages for Debian and Ubuntu, I've noticed that those distros have switched their focus from 'powerpc' port (old 32-bit big endian machines) to ppc64el (64-bit little endian machines: POWER8, POWER9). E.g. Debian has moved 'powerpc' from main archive to ports.d.o

Re: [lng-odp] unrecognized command line option '-fstack-protector-strong'

2018-06-27 Thread Dmitry Eremin-Solenikov
On 27/06/18 18:41, Maxim Uvarov wrote: > Ubuntu 14.04.5 which I run in container uses gcc 4.8 but on host I use more > fresh Ubuntu kernel compiled with stack protector. That makes dpdk modules > not compatible. But it's not clear why dpdk modules inherit kernels > compiler options. Is there any

[lng-odp] odp tools manpages

2018-06-05 Thread Dmitry Eremin-Solenikov
Hello, To finish ODP packaging work I have to provide manpages for ODP tools that are going to be packages. I've written manpages for odp_hello and odp_crypto, however I'm asking for the help in writing manpages for l2fwd/l3fwd/generator. Could you please help me by sketching clean descriptions

[lng-odp] Updated ODP packages

2018-05-30 Thread Dmitry Eremin-Solenikov
Hello, I've uploaded next iteration of ODP/ODP-DPDK Debian packages to people.linaro.org. You can download them after adding following strings to your apt sources.list: deb https://people.linaro.org/~dmitry.ereminsolenikov unstable main deb-src https://people.linaro.org/~dmitry.ereminsolenikov

Re: [lng-odp] Debian package for ODP

2018-04-28 Thread Dmitry Eremin-Solenikov
Hello, On 28 April 2018 at 21:58, Maxim Uvarov wrote: > Thanks. What are the next steps in upstreaming it to debian? How we can help > with it? It would be nice to have team's feedback on providing test tools/examples on target platform. I'll upload final odp-dpdk

Re: [lng-odp] TigerMoth_LTS brach

2018-04-28 Thread Dmitry Eremin-Solenikov
Hi, On 28 April 2018 at 20:32, Bill Fischofer wrote: > > Distributions have unique packaging. What if that packaging needs to be > changed either because of an error in creating it or else a change in > packaging requirements on the part of the distro? It is handled

Re: [lng-odp] Debian package for ODP

2018-04-28 Thread Dmitry Eremin-Solenikov
Hi, On 28 April 2018 at 13:59, Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> wrote: > Current package review is handled in Debian bug 896970: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896970 And just for the reference. ODP-DPDK preview (basing on Matia

Re: [lng-odp] TigerMoth_LTS brach

2018-04-28 Thread Dmitry Eremin-Solenikov
Hi, On 28 April 2018 at 16:44, Bill Fischofer wrote: > If we're going to be doing formal distributions each of these should have > their own branch which are created off of the main base release branch. So > TigerMoth_LTS is the "master" branch and it can have

Re: [lng-odp] Debian package for ODP

2018-04-28 Thread Dmitry Eremin-Solenikov
On 28 April 2018 at 16:05, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > > > On 28 April 2018 at 14:38, Dmitry Eremin-Solenikov > <dmitry.ereminsoleni...@linaro.org> wrote: >> >> Hello, >> >> On 28 April 2018 at 14:28, Maxim Uvarov <maxim.u

Re: [lng-odp] Debian package for ODP

2018-04-28 Thread Dmitry Eremin-Solenikov
; Maxim. > > On 28 April 2018 at 13:59, Dmitry Eremin-Solenikov > <dmitry.ereminsoleni...@linaro.org> wrote: >> >> Hello, >> >> Current package review is handled in Debian bug 896970: >> >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896970 >> >> -- >> With best wishes >> Dmitry > > -- With best wishes Dmitry

[lng-odp] TigerMoth_LTS brach

2018-04-28 Thread Dmitry Eremin-Solenikov
Hello, Maxim, Could you please start pushing pending fixes to tigermoth_lts branch, so that they can be picked into packaging? -- With best wishes Dmitry

[lng-odp] Debian package for ODP

2018-04-28 Thread Dmitry Eremin-Solenikov
Hello, Current package review is handled in Debian bug 896970: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896970 -- With best wishes Dmitry

Re: [lng-odp] release

2018-03-13 Thread Dmitry Eremin-Solenikov
On 13 March 2018 at 16:35, Maxim Uvarov wrote: > docker run -i -t 5b1f9964e594 /bin/bash > apt-get update > apt-get install git > git clone https://github.com/Linaro/odp.git > ./bootstrap > ./configure --disable-test-perf --disable-test-perf-proc > make -j 8 > export

Re: [lng-odp] release

2018-03-13 Thread Dmitry Eremin-Solenikov
On 13 March 2018 at 16:35, Maxim Uvarov wrote: > docker run -i -t 5b1f9964e594 /bin/bash > apt-get update > apt-get install git > git clone https://github.com/Linaro/odp.git > ./bootstrap > ./configure --disable-test-perf --disable-test-perf-proc > make -j 8 > export

[lng-odp] ODP Debian packaging

2018-03-06 Thread Dmitry Eremin-Solenikov
Hello, I've uploaded preview of Debian package for ODP to https://mentors.debian.net/package/odp . You can download source package from https://mentors.debian.net/debian/pool/main/o/odp/ . Unfortunately mentors.d.n do not host binary package, so you have to compile them manually. -- With best

[lng-odp] ODP/helper version numbering

2018-03-05 Thread Dmitry Eremin-Solenikov
Hello, I've just noted that ODP uses -version-number libtool option instead of -version-info. So, the comment at the top of configure.ac is incorrect and misleading (e.g. it made me believe that there will be no SONAME bump for libodphelper, but there was one). Two possible options: - Switch

[lng-odp] Shippable: no test reports

2018-02-28 Thread Dmitry Eremin-Solenikov
Hello, Just for your info: currently Shippable fails to generate test reports due to one of the system files being compiled for the wrong architecture. I've opened an issue at https://github.com/Shippable/support/issues/4157 -- With best wishes Dmitry

Re: [lng-odp] ODP release tarballs

2018-02-28 Thread Dmitry Eremin-Solenikov
rt of "DIST" files, so they surve the purpose but not up to the best quality. > > On 28 February 2018 at 08:18, Dmitry Eremin-Solenikov > <dmitry.ereminsoleni...@linaro.org> wrote: >> >> Hello, >> >> I have been looking for tarballs from previous O

[lng-odp] ODP release tarballs

2018-02-27 Thread Dmitry Eremin-Solenikov
Hello, I have been looking for tarballs from previous ODP releases. Do we put them somewhere for downloading (we should, in my opinion)? GitHub releases might be an interesting option to host releases, however we should not that currently they provide a way to download git tree snapshot, rather

Re: [lng-odp] Clang + AArch64 + non-ABI workaround

2018-02-16 Thread Dmitry Eremin-Solenikov
Hi, On 16 February 2018 at 22:17, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 02/16/18 21:47, Dmitry Eremin-Solenikov wrote: >> On 16 February 2018 at 18:26, Maxim Uvarov <maxim.uva...@linaro.org> wrote: >>> can you link to problem description? is

Re: [lng-odp] Clang + AArch64 + non-ABI workaround

2018-02-16 Thread Dmitry Eremin-Solenikov
On 16 February 2018 at 18:26, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > can you link to problem description? is it segfault here? https://bugs.linaro.org/show_bug.cgi?id=3611 > > On 16 February 2018 at 17:54, Dmitry Eremin-Solenikov > <dmitry.ereminsoleni...@linaro.or

[lng-odp] Clang + AArch64 + non-ABI workaround

2018-02-16 Thread Dmitry Eremin-Solenikov
Hello, I've been debugging the Clang/AArch64/non-ABI case during this week. It indeed is a compiler issue. Here is a workaround, which fixes the issue for at least clang 7 (did not try with earlier versions, probably it would also help). At this moment I do not think we should apply this fix,

Re: [lng-odp] odp_packet_data() considered harmful

2018-02-15 Thread Dmitry Eremin-Solenikov
On 15/02/18 17:42, Savolainen, Petri (Nokia - FI/Espoo) wrote: > > >> -Original Message----- >> From: Dmitry Eremin-Solenikov [mailto:dmitry.ereminsoleni...@linaro.org] >> Sent: Thursday, February 15, 2018 4:00 PM >> To: Savolainen, Petri (Nokia - FI/Espo

Re: [lng-odp] odp_packet_data() considered harmful

2018-02-15 Thread Dmitry Eremin-Solenikov
On 15/02/18 16:32, Savolainen, Petri (Nokia - FI/Espoo) wrote: > odp_packet_offset() is more complex than the proposed > odp_packet_data_seg_len(). Application mostly finds its data from the first > segment, so it's important to keep the most common use case fast (== simple). > We cannot and

[lng-odp] odp_packet_data() considered harmful

2018-02-13 Thread Dmitry Eremin-Solenikov
Hello, Thanks to PR #470 I've stumbled upon odp_packet_data() function again. I think we should deprecate and remove it. It makes false assumption that the whole packet can be addressed using single pointer + offset from that. We already have public functions dealing with segments, getting

[lng-odp] Packet checksums support during IPsec operations

2018-01-16 Thread Dmitry Eremin-Solenikov
Hello, Currently ODP API describes configurable checksum generation and validation for internal packets during IPsec transformation. However it does not have a set of capabilities, so each implementation will have to do it in software, unless backed by actual hardware. A question arose during

Re: [lng-odp] ODP development process proposal

2017-12-28 Thread Dmitry Eremin-Solenikov
r crypto changes, separate package parsing PR and in the end IPsec PR, which only lately became more or less feature-complete. > > On Wed, Dec 27, 2017 at 8:10 AM, Dmitry Eremin-Solenikov > <dmitry.ereminsoleni...@linaro.org > <mailto:dmitry.ereminsoleni...@linaro.org>> wrot

[lng-odp] IPsec: RFC 8221, chacha20-poly1305

2017-12-27 Thread Dmitry Eremin-Solenikov
Hello colleagues, I nearly missed an updated crypto requirements for IPsec (RFC 8221). It adds Chacha20-Poly1305 AEAD cipher. Currently it is marked as SHOULD with the plan to make it MUST at some point in future. Also this document adds additional requirement. It tells that ESP without

[lng-odp] ODP development process proposal

2017-12-27 Thread Dmitry Eremin-Solenikov
Hello colleagues, Basing on issues we had with TigerMoth next branch, I have summarized two following proposals to ease api-next/master/next relations. Main goals: - Remove need to merge regularly master to api-next, which complicates development of api-next - Streamline patch flow. They

[lng-odp] IPv6 packet L3 checksum status

2017-12-18 Thread Dmitry Eremin-Solenikov
Hello, I was working on checksum parsing/status. What is the L3 checksum status of IPv6 packets? Is it UNKNOWN (as there is no checksum) or OK (as in NOT BAD)? -- With best wishes Dmitry

Re: [lng-odp] Suspected SPAM - Re: IPsec and crypto performance and OpenSSL

2017-12-13 Thread Dmitry Eremin-Solenikov
gt; > >> -Original Message- >> From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of >> Savolainen, Petri >> (Nokia - FI/Espoo) >> Sent: Tuesday, December 12, 2017 10:30 AM >> To: Bill Fischofer <bill.fischo...@linaro.org

Re: [lng-odp] IPsec and crypto performance and OpenSSL

2017-12-12 Thread Dmitry Eremin-Solenikov
On 12 December 2017 at 14:00, Peltonen, Janne (Nokia - FI/Espoo) wrote: >> Also note that this will break explicit IV support. > > Why so? The iv is set in every operation. Sorry, I meant implicit IV, when there is no override_iv_ptr, but IV is 'kept' inside session.

Re: [lng-odp] IPsec and crypto performance and OpenSSL

2017-12-11 Thread Dmitry Eremin-Solenikov
On 11 December 2017 at 19:14, Maxim Uvarov wrote: > odp_init_global() allocates shm, then odp_init_local() / odp_term_local() > allocates/destroys per thread contexts in array in that shm. I think that > has to work. The problem lies in OpenSSL 1.1 "opaque structures"

Re: [lng-odp] IPsec: handling dummy packets (NH=59)

2017-11-28 Thread Dmitry Eremin-Solenikov
out allowing application to specify if outgoing packet is dummy or not. In fact I'm going to propose the possibility to specify if outgoing packet is IPv4, IPv6 or dummy. > > On Mon, Nov 20, 2017 at 8:37 AM, Dmitry Eremin-Solenikov > <dmitry.ereminsoleni...@linaro.org > <mailto

Re: [lng-odp] Preparing for ODP 2.0

2017-11-28 Thread Dmitry Eremin-Solenikov
On 28/11/17 00:57, Bill Fischofer wrote: > As a way of easing the sync burden on the 2.0 development branch, what do > folks think of the idea of asking that new PRs being posted to api-next > also be posted to 2.0? The contributions to api-next should be winding down > as we approach Tiger Moth

[lng-odp] IPsec: handling dummy packets (NH=59)

2017-11-20 Thread Dmitry Eremin-Solenikov
Hello, I was thinking about another minor part of IPsec RFCs: dummy packets used to mask traffic statistics. IPsec implementation is required to drop ESP packets with NH = 59 (no next header) on receiver side and is expected to be able to generate these packets on transmitter side. Currently we

[lng-odp] ODP vs Protocol headers

2017-11-10 Thread Dmitry Eremin-Solenikov
Hello, Historically ODP helper provided protocol-related headers with linux-generic ODP implementation using modified private copy of them. The main reason for that was, if I remember correctly, that ODP should not provide protocol-related definitions. I'd like to return to that question: - I'm

Re: [lng-odp] abi version support

2017-11-10 Thread Dmitry Eremin-Solenikov
10 нояб. 2017 г. 13:22 пользователь "Maxim Uvarov" написал: I see that dpdk started to support abi versions in following ways I.e. they describe in .map file which functions to expert and what ABI/API level they are. We can use something the same. But I'm not big fun of

Re: [lng-odp] [PATCH API-NEXT v1] AES-GMAC implementation

2017-11-08 Thread Dmitry Eremin-Solenikov
updated

Re: [lng-odp] [Bug 3426] Support IPv6 Jumbo frames

2017-11-07 Thread Dmitry Eremin-Solenikov
I stumbled upon it as I was writing header parsing code for IPsec.

Re: [lng-odp] drv api in api-next

2017-11-01 Thread Dmitry Eremin-Solenikov
On 31/10/17 22:21, Honnappa Nagarahalli wrote: > But they are APIs, even though they were copied from Linux-generic. I > am thinking the discussion has already happened on why they should be > in API directory. Is there any reason to revert and restart the > discussion? They are used for 2.0, but

Re: [lng-odp] drv api in api-next

2017-10-31 Thread Dmitry Eremin-Solenikov
On 30/10/17 19:43, Maxim Uvarov wrote: > In api-next we have some drv apis which is a copy of linux-generic but > with drv prefix. I'm thinking what to do with them for Tiger Moth. Or > merge them or merge and revert. For now we do not use that api. I'd say, let's revert that for now.

Re: [lng-odp] API-next branch

2017-10-27 Thread Dmitry Eremin-Solenikov
>> -Original Message- >> From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Bill >> Fischofer >> Sent: Wednesday, October 25, 2017 6:53 PM >> To: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> >> Cc: lng-odp-forw

[lng-odp] [PATCH v10 30/30] include: provide formal description of ODP specification

2017-10-27 Thread Dmitry Eremin-Solenikov
Provide formal description of files being part of ODP specification, platform-specific headers, substituting parts of ODP specification and additional headers supplementing ODP specification. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/READM

[lng-odp] [PATCH v10 29/30] configure: stop AC_SUBST'ing ODP_ABI_COMPAT

2017-10-27 Thread Dmitry Eremin-Solenikov
With static_inline.h gone, there is no need to AC_SUBST([ODP_ABI_COMPAT]). Drop it from configure.ac. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- configure.ac | 1 - 1 file changed, 1 deletion(-) diff --git a/configure.ac b/configure.ac index 255de9

[lng-odp] [PATCH v10 28/30] linux-gen: don't install inline headers in non-ABI-compat mode

2017-10-27 Thread Dmitry Eremin-Solenikov
There is no point in installing inline headers in non-ABI-compat mode anymore. They are not included by any other header. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- platform/linux-generic/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[lng-odp] [PATCH v10 27/30] linux-gen: remove static_inline.h header

2017-10-27 Thread Dmitry Eremin-Solenikov
Replace static_inline.h header with unconditional defines of _ODP_INLINE macro (either to 'static inline' or to empty value) depending on the compilation place. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- Makefile.inc

[lng-odp] [PATCH v10 26/30] linux-gen: split odp_packet/odp_packet_flags

2017-10-27 Thread Dmitry Eremin-Solenikov
Split away inclusion of API implementation to the files selected by Automake. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- platform/linux-generic/Makefile.am| 2 ++ platform/linux-generic/odp_packet.c | 5 - platform/linux-g

[lng-odp] [PATCH v10 25/30] linux-gen: move several files under ODP_ABI_COMPAT condition

2017-10-27 Thread Dmitry Eremin-Solenikov
Several files consist only (or mostly) of functions compiled only if ODP is compiled in ABI compatibility mode. Instead of having an ifdef inside, guard them with if ODP_ABI_COMPAT condition in Makefile.am Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- pl

[lng-odp] [PATCH v10 24/30] linux-gen, include: switch packet headers to api+abi

2017-10-27 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am| 6 ++ .../include => include}/odp/api/classification.h | 2 +- .../include => include}/odp/api/crypto.h | 2 +- .../include => i

[lng-odp] [PATCH v10 23/30] linux-gen, include: move more headers from platform to generic

2017-10-27 Thread Dmitry Eremin-Solenikov
Move more generic headers from platform include dir to common include dir. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am | 10 ++ {platform/linux-generic/include => include}/odp/api

[lng-odp] [PATCH v10 22/30] linux-gen, include: switch ticketlock.h to api+abi

2017-10-27 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am | 1 + .../include => include}/odp/api/ticketlock.h| 11 +++ platform/linux-generic/Makefile.am | 7 +++ .../od

[lng-odp] [PATCH v10 21/30] linux-gen, include: switch sync.h to api+abi

2017-10-27 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am| 1 + include/odp/api/sync.h | 28 ++ platform/linux-generic/Makefile.am | 2 +- .../o

[lng-odp] [PATCH v10 20/30] linux-gen, include: switch std_clib.h to api+abi

2017-10-27 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- example/traffic_mgmt/odp_traffic_mgmt.c| 1 + helper/test/linux/process.c| 2 ++ helper/test/linux/pthread.c| 2 ++ helper/thr

[lng-odp] [PATCH v10 19/30] linux-gen, include: switch byteorder.h to api+abi

2017-10-27 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am| 1 + include/odp/api/byteorder.h| 28 ++ platform/linux-generic/Makefile.am | 3 +- .../odp/api/abi/byteo

[lng-odp] [PATCH v10 17/30] linux-gen: atomic: simplify locked 64-bit support

2017-10-27 Thread Dmitry Eremin-Solenikov
Rewrite atomic_types.h/atomic_inlines.h to clearly separate simple (common) and locked 64-bit cases. This is allows us to ease switching of atomic header to abi setup. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- .../include/odp/api/plat/atomic_inl

[lng-odp] [PATCH v10 18/30] linux-gen, include: switch atomic.h to api+abi

2017-10-27 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am| 1 + include/odp/api/atomic.h | 28 +++ platform/linux-generic/Makefile.am | 3 +- .../odp/api/abi/at

[lng-odp] [PATCH v10 16/30] linux-gen, include: progress in switching headers to api+abi pattern

2017-10-27 Thread Dmitry Eremin-Solenikov
Rework more platform headers to use odp/api/abi/ subdir instead of odp/api/plat/. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am| 8 + .../include => include}/odp/api/barrier.h

[lng-odp] [PATCH v10 14/30] api: schedule: remove duplication between schedule and schedule_types

2017-10-27 Thread Dmitry Eremin-Solenikov
Move the rest of ODP_SCHED_GROUP_* defines to schedule_types.h to remove duplication between headers. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/odp/api/abi-default/schedule.h | 8 include/odp/api/abi-default/schedule_types.

[lng-odp] [PATCH v10 08/30] include: move default ABI headers

2017-10-27 Thread Dmitry Eremin-Solenikov
Reduce amount of directory levels by moving default ABI headers to odp/api/abi-default. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am| 82 +++--- .../default/api/abi => api/abi-default}

[lng-odp] [PATCH v10 05/30] api: abi: provide the the rest of abi files

2017-10-27 Thread Dmitry Eremin-Solenikov
Provide a set of platform-neutral ABI files. They are mostly modified versions of linux-generic api files. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am| 188 - include/odp/arch/arm32

[lng-odp] [PATCH v10 13/30] include: change spec guarding define from ODP_API to ODP_API_SPEC

2017-10-27 Thread Dmitry Eremin-Solenikov
Change defines guarding inclusion of ODP API spec files from ODP_API_FOO to ODP_API_SPEC_FOO, as they are placed in odp/api/spec/foo.h path. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/odp/api/spec/align.h | 4 ++-- include/odp/ap

[lng-odp] [PATCH v10 12/30] abi: classification: drop two unused types

2017-10-27 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/odp/api/spec/classification.h | 11 --- platform/linux-generic/include/odp/api/classification.h | 13 - 2 files changed, 24 deletions(-) diff --git a/include/odp/ap

[lng-odp] [PATCH v10 11/30] abi: queue: drop unused odp_queue_group_t

2017-10-27 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/odp/api/spec/queue.h | 5 - platform/linux-generic/include/odp/api/queue.h | 12 2 files changed, 17 deletions(-) diff --git a/include/odp/api/spec/queue.h b/include/o

[lng-odp] [PATCH v10 10/30] include: install and use ABI headers only in ABI-compat mode

2017-10-27 Thread Dmitry Eremin-Solenikov
There is no need to install ABI headers (or to have them in include path) in non-ABI-compat mode, they should not be used at all. Still provide default ABI headers, because platform may depend on them. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- Makefi

[lng-odp] [PATCH v10 09/30] include: install ABI headers without additional ARCH_ABI level

2017-10-27 Thread Dmitry Eremin-Solenikov
Install ABI headers directly to odp/api/abi, removing the need for extra symlink. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/include/Makefile.am b/i

[lng-odp] [PATCH v10 07/30] build: move ODP include path to common Makefile.inc

2017-10-27 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- Makefile.inc | 12 example/Makefile.inc | 12 helper/Makefile.am

[lng-odp] [PATCH v10 06/30] configure: provide conditional for ABI-compat mode

2017-10-27 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 4bc77500c279..255de960c180 100644 --- a/configure.ac +++ b/configure.ac @@ -271,6 +271,7 @@ AC_ARG_ENABLE([abi-

[lng-odp] [PATCH API-NEXT v10 00/30] restructure headers for ABI-compat/platform-optimized modes

2017-10-27 Thread Dmitry Eremin-Solenikov
Eremin-Solenikov (30): travis: also run make distcheck in non-ABI-compat mode travis: add cross-compiling tests with ABI compatibility disabled linux-gen: ipsec: don't use __odp_force helper: don't use __odp_force api: abi: provide the the rest of abi files configure: provide

[lng-odp] [PATCH v10 04/30] helper: don't use __odp_force

2017-10-27 Thread Dmitry Eremin-Solenikov
__odp_force is not part of ODP API, so it should not be used directly. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- helper/include/odp/helper/chksum.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/include/odp/helper/chksu

[lng-odp] [PATCH v10 03/30] linux-gen: ipsec: don't use __odp_force

2017-10-27 Thread Dmitry Eremin-Solenikov
__odp_force is not part of ODP API, so it should not be used directly. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- platform/linux-generic/odp_ipsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_ipse

[lng-odp] [PATCH v10 02/30] travis: add cross-compiling tests with ABI compatibility disabled

2017-10-27 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- .travis.yml | 4 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index fdeeefd113ea..6196f91d41de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -74,6 +74,10 @@ env: - CROS

[lng-odp] [PATCH v10 01/30] travis: also run make distcheck in non-ABI-compat mode

2017-10-27 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- .travis.yml | 8 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 49b922e3cdba..fdeeefd113ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -244,6 +244,14 @

Re: [lng-odp] [PATCH API-NEXT v4 1/3] api: ipsec: rework ODP_IPSEC_SA_DISABLE into packet error

2017-10-26 Thread Dmitry Eremin-Solenikov
aro.org >> Subject: [lng-odp] [PATCH API-NEXT v4 1/3] api: ipsec: rework >> ODP_IPSEC_SA_DISABLE into packet error >> >> From: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> >> >> According to the discussion on mailing list, most of impl

[lng-odp] API-next branch

2017-10-25 Thread Dmitry Eremin-Solenikov
Hello, I tried to actually check, which patches are sitting in the api-next. And actually I failed to do that in a timely manner. git cherry produces a list of patches, that contains a lot of patches, which already landed to the master. Quick proposal would be to stop using api-next as a

Re: [lng-odp] [PATCH API-NEXT v2 1/3] api: ipsec: rework ODP_IPSEC_SA_DISABLE into packet error

2017-10-25 Thread Dmitry Eremin-Solenikov
> delete "either" and reflow comment. done

Re: [lng-odp] [PATCH API-NEXT v1 1/3] api: ipsec: rework ODP_IPSEC_SA_DISABLE into packet error

2017-10-24 Thread Dmitry Eremin-Solenikov
Hi, On 24/10/17 15:49, Peltonen, Janne (Nokia - FI/Espoo) wrote: Thank for the review! >> @@ -927,7 +930,12 @@ typedef struct odp_ipsec_error_t { >> >> } odp_ipsec_error_t; >> >> -/** IPSEC warnings */ >> +/** IPSEC warnings >> + * >> + * For outbound SAs in ODP_IPSEC_OP_MODE_INLINE mode

Re: [lng-odp] Static ODP library and DPDK drivers

2017-10-24 Thread Dmitry Eremin-Solenikov
Hello, On 24/10/17 14:02, Elo, Matias (Nokia - FI/Espoo) wrote: > Hi Dmitry, > > Currently, when odp is configured with '--disable-shared' flag, dpdk drivers > are not included in the resulting libodp-linux.a library (doesn't include any > dpdk driver symbols) and hence an applications using

Re: [lng-odp] Latest odp_ipsec_sa_disable() discussion and proposed resolution

2017-10-24 Thread Dmitry Eremin-Solenikov
Hello, On 23 October 2017 at 20:56, Bill Fischofer wrote: > 2. All other IPsec events are reported as events of type ODP_EVENT_PACKET, > subtype ODP_EVENT_PACKET_IPSEC with appropriate error/warning bits set. > Implementations are free to use dummy packets to

[lng-odp] [PATCH 29/29] configure: stop AC_SUBST'ing ODP_ABI_COMPAT

2017-10-23 Thread Dmitry Eremin-Solenikov
With static_inline.h gone, there is no need to AC_SUBST([ODP_ABI_COMPAT]). Drop it from configure.ac. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- configure.ac | 1 - 1 file changed, 1 deletion(-) diff --git a/configure.ac b/configure.ac index 255de9

[lng-odp] [PATCH 28/29] linux-gen: don't install inline headers in non-ABI-compat mode

2017-10-23 Thread Dmitry Eremin-Solenikov
There is no point in installing inline headers in non-ABI-compat mode anymore. They are not included by any other header. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- platform/linux-generic/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[lng-odp] [PATCH 27/29] linux-gen: remove static_inline.h header

2017-10-23 Thread Dmitry Eremin-Solenikov
Replace static_inline.h header with unconditional defines of _ODP_INLINE macro (either to 'static inline' or to empty value) depending on the compilation place. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- Makefile.inc

[lng-odp] [PATCH 25/29] linux-gen: move several files under ODP_ABI_COMPAT condition

2017-10-23 Thread Dmitry Eremin-Solenikov
Several files consist only (or mostly) of functions compiled only if ODP is compiled in ABI compatibility mode. Instead of having an ifdef inside, guard them with if ODP_ABI_COMPAT condition in Makefile.am Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- pl

[lng-odp] [PATCH 24/29] linux-gen, include: switch packet headers to api+abi

2017-10-23 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am| 6 ++ .../include => include}/odp/api/classification.h | 2 +- .../include => include}/odp/api/crypto.h | 2 +- .../include => i

[lng-odp] [PATCH 23/29] linux-gen, include: move more headers from platform to generic

2017-10-23 Thread Dmitry Eremin-Solenikov
Move more generic headers from platform include dir to common include dir. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am | 10 ++ {platform/linux-generic/include => include}/odp/api

[lng-odp] [PATCH 22/29] linux-gen, include: switch ticketlock.h to api+abi

2017-10-23 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am | 1 + .../include => include}/odp/api/ticketlock.h| 11 +++ platform/linux-generic/Makefile.am | 7 +++ .../od

[lng-odp] [PATCH 21/29] linux-gen, include: switch sync.h to api+abi

2017-10-23 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am| 1 + include/odp/api/sync.h | 28 ++ platform/linux-generic/Makefile.am | 2 +- .../o

[lng-odp] [PATCH 20/29] linux-gen, include: switch std_clib.h to api+abi

2017-10-23 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- example/traffic_mgmt/odp_traffic_mgmt.c| 1 + helper/test/linux/process.c| 2 ++ helper/test/linux/pthread.c| 2 ++ helper/thr

[lng-odp] [PATCH 19/29] linux-gen, include: switch byteorder.h to api+abi

2017-10-23 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am| 1 + include/odp/api/byteorder.h| 28 ++ platform/linux-generic/Makefile.am | 3 +- .../odp/api/abi/byteo

[lng-odp] [PATCH 18/29] linux-gen, include: switch atomic.h to api+abi

2017-10-23 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am| 1 + include/odp/api/atomic.h | 28 +++ platform/linux-generic/Makefile.am | 3 +- .../odp/api/abi/at

[lng-odp] [PATCH 17/29] linux-gen: atomic: simplify locked 64-bit support

2017-10-23 Thread Dmitry Eremin-Solenikov
Rewrite atomic_types.h/atomic_inlines.h to clearly separate simple (common) and locked 64-bit cases. This is allows us to ease switching of atomic header to abi setup. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- .../include/odp/api/plat/atomic_inl

[lng-odp] [PATCH 15/29] linux-gen, include: for several simple headers switch to api+abi pattern

2017-10-23 Thread Dmitry Eremin-Solenikov
functions, etc. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- Makefile.inc | 3 + include/Makefile.am| 17 ++ .../include => include}/odp/api/cpumask.h | 6 +- .../include =>

[lng-odp] [PATCH 16/29] linux-gen, include: progress in switching headers to api+abi pattern

2017-10-23 Thread Dmitry Eremin-Solenikov
Rework more platform headers to use odp/api/abi/ subdir instead of odp/api/plat/. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/Makefile.am| 8 + .../include => include}/odp/api/barrier.h

  1   2   3   4   5   >