Re: [lng-odp] [PATCH 2/2] odph_icmp: add ODPH_ prefix

2014-08-29 Thread Mike Holmes
Maxim, Does this impact interworking with other packages like SNORT etc in your experience ? Is it likely that someone will need to convert to generic headers, do you have a use case that this might be an issue? I think we need to scope the defines, but would like to be sure we are not making a l

Re: [lng-odp] [PATCH v4] Add-global_init-paramiters

2014-08-29 Thread Wiles, Roger Keith
I do like having the _s as it is more readable IMO. What happens when you have a self reference in another structure. #1 typedef struct odp__t { struct odp__t * name; } odp__t; OR #2 typedef struct odp__s { struct odp__s * name; } odp__t; OR #3 typedef struct odp_ {

Re: [lng-odp] [PATCH v4] Add-global_init-paramiters

2014-08-29 Thread Bill Fischofer
Bill Mill's point about debuggers would seem to tip the argument back to option 1, which is what we have for the most part. On Fri, Aug 29, 2014 at 12:34 PM, Mike Holmes wrote: > The common set is option 1, which is what we have in may places, I dont > like that we make it possible to referenc

Re: [lng-odp] [PATCH v4] Add-global_init-paramiters

2014-08-29 Thread Mike Holmes
The common set is option 1, which is what we have in may places, I dont like that we make it possible to reference the struct without the typedef, but unless we have further dissent we have a winner.I think. Mike On 29 August 2014 13:28, William Mills wrote: > OK, Yes I never say anything on

Re: [lng-odp] [PATCH v4] Add-global_init-paramiters

2014-08-29 Thread William Mills
OK, Yes I never say anything on this list but ... On 08/29/2014 01:19 PM, Mike Holmes wrote: Ok, I need a better feel for consensus here or it will flip flop :), as this impacts all structs we really need a final answer typedef struct odp__t {...} odp__t; OR typedef struct odp__s {...} odp__t;

Re: [lng-odp] [PATCH v4] Add-global_init-paramiters

2014-08-29 Thread Bill Fischofer
I'm happy with either 1 or 3. And yes, the purpose of the struct tag is to permit self-reference. Since it's not intended to be used by anyone except the typedef itself it can be at the implementer's discretion. If you have a self-referencing struct then use it, otherwise you can either omit it

Re: [lng-odp] [PATCH v4] Add-global_init-paramiters

2014-08-29 Thread Mike Holmes
Ok, I need a better feel for consensus here or it will flip flop :), as this impacts all structs we really need a final answer typedef struct odp__t {...} odp__t; OR typedef struct odp__s {...} odp__t; OR typedef struct {...} odp__t; I prefer the latter, why even name it unless you need to refere

Re: [lng-odp] [PATCH v4] Add-global_init-paramiters

2014-08-29 Thread Bill Fischofer
We've been using odp__t for typedef stuff, taking advantage that of the fact that struct tags occupy a different namespace. So typedef struct odp__t {...} odp__t; is perfectly valid and unambiguous C and avoids additional namespace clutter. odp__e has been suggested for ODP enums. Bill On Fr

Re: [lng-odp] [PATCH v4] Add-global_init-paramiters

2014-08-29 Thread Mike Holmes
On 29 August 2014 03:59, Savolainen, Petri (NSN - FI/Espoo) < petri.savolai...@nsn.com> wrote: > > > > -Original Message- > > From: lng-odp-boun...@lists.linaro.org [mailto:lng-odp- > > boun...@lists.linaro.org] On Behalf Of ext Mike Holmes > > Sent: Thursday, August 28, 2014 9:26 PM > > T

[lng-odp] [PATCH] configure.ac display target platform

2014-08-29 Thread Mike Holmes
Signed-off-by: Mike Holmes --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c9aac14..da109b7 100644 --- a/configure.ac +++ b/configure.ac @@ -170,7 +170,7 @@ AC_OUTPUT AC_MSG_RESULT([ $PACKAGE $VERSION

Re: [lng-odp] [PATCH v4] Add-global_init-paramiters

2014-08-29 Thread Wiles, Roger Keith
On Aug 29, 2014, at 2:59 AM, Savolainen, Petri (NSN - FI/Espoo) wrote: > > >> -Original Message- >> From: lng-odp-boun...@lists.linaro.org [mailto:lng-odp- >> boun...@lists.linaro.org] On Behalf Of ext Mike Holmes >> Sent: Thursday, August 28, 2014 9:26 PM >> To: lng-odp@lists.linaro.

Re: [lng-odp] [PATCHv5 4/4] Add IPsec example app to build environment

2014-08-29 Thread Anders Roxell
On 2014-08-28 06:56, Robbie King wrote: > Signed-off-by: Robbie King > --- > .gitignore|2 + > configure.ac |1 + > example/Makefile.am |2 +- > example/ipsec/Makefile.am | 12 + > example/ipsec/README |

[lng-odp] [PATCH v2] test/unit: add odp_buffer_test

2014-08-29 Thread Mike Holmes
Signed-off-by: Mike Holmes Signed-off-by: Anders Roxell --- v2: Add dependencies Add cross compile Add comments on test cases .gitignore | 1 + DEPENDENCIES| 19 +++- configure.ac| 20 test/Makefile.am| 2 +- test/api_t

Re: [lng-odp] [PATCH] odp_shared_memory.h: Document odp_shm_reserve

2014-08-29 Thread Mike Holmes
I think this discussion is really good, it highlights that we don't have a list of what is missing and what people know needs to be done "todo". *If a feature has never existed it needs to be a new work card.* *If the code exists and it fails to work fully or is not well documented I think it is a

[lng-odp] [PATCHv2 1/2] move helper functions and rename to prefix to odph_

2014-08-29 Thread Anders Roxell
Signed-off-by: Anders Roxell Acked-by: Petri Savolainen Reviewed-by: Stuart Haslam --- .gitignore | 6 +- configure.ac | 4 +- doc/doxygen.cfg| 2 +- example/Makefile.inc

[lng-odp] [PATCHv2 2/2] odph_icmp: add ODPH_ prefix

2014-08-29 Thread Anders Roxell
Signed-off-by: Anders Roxell Reviewed-by:Mike Holmes Acked-by: Petri Savolainen --- example/generator/odp_generator.c | 6 +-- helper/include/odph_chksum.h | 2 +- helper/include/odph_eth.h | 2 +- helper/include/odph_icmp.h| 79 +++ h

[lng-odp] [PATCHv2 0/2] Move the helper directory

2014-08-29 Thread Anders Roxell
Hi, After todays call we said that we wanted to move include/helper/odp_* into helper/ directory done. Added then into helper/include if we want to move generic c files there as well... v2. Fixed Stuart's comment about renaming odph_packet_helper.h -> odph_packet.h Stuart and I agreed that we

Re: [lng-odp] [PATCH] odp_shared_memory.h: Document odp_shm_reserve

2014-08-29 Thread Savolainen, Petri (NSN - FI/Espoo)
Still book keeping should be done in a single place. It’s confusing if TODO/missing feature lists are spread over doxygen comments, bugzilla bug reports, cards, … I’d use doxygen only for documenting the existing code, and keep list missing features somewhere else. E.g. in this case, when som

Re: [lng-odp] [PATCH 1/2] move helper functions and rename to prefix to odph_

2014-08-29 Thread Stuart Haslam
On Thu, Aug 28, 2014 at 11:02:08PM +0100, Anders Roxell wrote: > Signed-off-by: Anders Roxell > --- > .gitignore | 6 +- > configure.ac | 4 +- > doc/doxygen.cfg| 2 +- > exampl

Re: [lng-odp] [PATCH 2/2] odph_icmp: add ODPH_ prefix

2014-08-29 Thread Bill Fischofer
I agree with Petri. Since C has a single global namespace for #defines the real issue is name collisions with applications using ODP. Bill On Fri, Aug 29, 2014 at 6:49 AM, Savolainen, Petri (NSN - FI/Espoo) < petri.savolai...@nsn.com> wrote: > > > > -Original Message- > > From: lng-odp-

Re: [lng-odp] [PATCH 2/2] odph_icmp: add ODPH_ prefix

2014-08-29 Thread Maxim Uvarov
On 08/29/2014 02:53 PM, Savolainen, Petri (NSN - FI/Espoo) wrote: Hi, ODP/ODPH prefixes are needed always. First to make it clear what comes ODP/ODP helper, and secondly to avoid name space collisions (e.g. with linux/posix/application files that define similar things). -Petri So that if som

Re: [lng-odp] [PATCH] odp_shared_memory.h: Document odp_shm_reserve

2014-08-29 Thread Bill Fischofer
We definitely need the closure APIs to be part of v1.0 for completeness. For now noting their absence as bugs is a good way of reminding us of that fact. Bill On Fri, Aug 29, 2014 at 6:34 AM, Mike Holmes wrote: > > > > On 29 August 2014 04:05, Savolainen, Petri (NSN - FI/Espoo) < > petri.savo

Re: [lng-odp] [PATCH 2/2] odph_icmp: add ODPH_ prefix

2014-08-29 Thread Savolainen, Petri (NSN - FI/Espoo)
> -Original Message- > From: lng-odp-boun...@lists.linaro.org [mailto:lng-odp- > boun...@lists.linaro.org] On Behalf Of ext Anders Roxell > Sent: Friday, August 29, 2014 1:02 AM > To: lng-odp@lists.linaro.org > Subject: [lng-odp] [PATCH 2/2] odph_icmp: add ODPH_ prefix > > Signed-off-by:

Re: [lng-odp] [PATCH 1/2] move helper functions and rename to prefix to odph_

2014-08-29 Thread Savolainen, Petri (NSN - FI/Espoo)
> -Original Message- > From: lng-odp-boun...@lists.linaro.org [mailto:lng-odp- > boun...@lists.linaro.org] On Behalf Of ext Anders Roxell > Sent: Friday, August 29, 2014 1:02 AM > To: lng-odp@lists.linaro.org > Subject: [lng-odp] [PATCH 1/2] move helper functions and rename to prefix > to

Re: [lng-odp] [PATCH] odp_shared_memory.h: Document odp_shm_reserve

2014-08-29 Thread Mike Holmes
On 29 August 2014 04:05, Savolainen, Petri (NSN - FI/Espoo) < petri.savolai...@nsn.com> wrote: > > > > -Original Message- > > From: lng-odp-boun...@lists.linaro.org [mailto:lng-odp- > > boun...@lists.linaro.org] On Behalf Of ext Mike Holmes > > Sent: Thursday, August 28, 2014 11:54 PM > >

Re: [lng-odp] [PATCH 2/2] odph_icmp: add ODPH_ prefix

2014-08-29 Thread Mike Holmes
On 29 August 2014 06:53, Savolainen, Petri (NSN - FI/Espoo) < petri.savolai...@nsn.com> wrote: > Hi, > > ODP/ODPH prefixes are needed always. First to make it clear what comes > ODP/ODP helper, and secondly to avoid name space collisions (e.g. with > linux/posix/application files that define simil

Re: [lng-odp] [PATCH 2/2] odph_icmp: add ODPH_ prefix

2014-08-29 Thread Savolainen, Petri (NSN - FI/Espoo)
Hi, ODP/ODPH prefixes are needed always. First to make it clear what comes ODP/ODP helper, and secondly to avoid name space collisions (e.g. with linux/posix/application files that define similar things). -Petri > -Original Message- > From: lng-odp-boun...@lists.linaro.org [mailto:lng

Re: [lng-odp] [PATCH] odp_shared_memory.h: Document odp_shm_reserve

2014-08-29 Thread Maxim Uvarov
On 08/29/2014 12:53 AM, Mike Holmes wrote: Signed-off-by: Mike Holmes --- platform/linux-generic/include/api/odp_shared_memory.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/include/api/odp_shared_memory.h b/platform/linux-generic/include/api

Re: [lng-odp] [PATCH 2/2] odph_icmp: add ODPH_ prefix

2014-08-29 Thread Maxim Uvarov
I think we do not need to rename defines. For example #define ICMP_ECHOREPLY 0 /**< Echo Reply */ is always ICMP_ECHOREPLY and is always 0. I suppose that defines were copied from some header file. And my opinion that we should have them as is, not implemen

Re: [lng-odp] [PATCH] odp_shared_memory.h: Document odp_shm_reserve

2014-08-29 Thread Savolainen, Petri (NSN - FI/Espoo)
> -Original Message- > From: lng-odp-boun...@lists.linaro.org [mailto:lng-odp- > boun...@lists.linaro.org] On Behalf Of ext Mike Holmes > Sent: Thursday, August 28, 2014 11:54 PM > To: lng-odp@lists.linaro.org > Subject: [lng-odp] [PATCH] odp_shared_memory.h: Document odp_shm_reserve > >

Re: [lng-odp] [PATCH v4] Add-global_init-paramiters

2014-08-29 Thread Savolainen, Petri (NSN - FI/Espoo)
> -Original Message- > From: lng-odp-boun...@lists.linaro.org [mailto:lng-odp- > boun...@lists.linaro.org] On Behalf Of ext Mike Holmes > Sent: Thursday, August 28, 2014 9:26 PM > To: lng-odp@lists.linaro.org > Subject: [lng-odp] [PATCH v4] Add-global_init-paramiters > > Signed-off-by: M