diff mbox

Add crypto and rwlock into odp.h

Message ID 1413373413-2941-1-git-send-email-petri.savolainen@linaro.org
State Accepted
Commit 141ee5c9c3004926f302309dd8baea4d8813d9df
Headers show

Commit Message

Petri Savolainen Oct. 15, 2014, 11:43 a.m. UTC
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
---
 example/generator/odp_generator.c        | 2 +-
 example/ipsec/odp_ipsec.c                | 3 +--
 example/ipsec/odp_ipsec_cache.c          | 3 +--
 example/ipsec/odp_ipsec_fwd_db.c         | 2 --
 example/ipsec/odp_ipsec_loop_db.c        | 2 --
 example/ipsec/odp_ipsec_sa_db.c          | 2 --
 example/ipsec/odp_ipsec_stream.c         | 4 +---
 platform/linux-generic/include/api/odp.h | 4 ++--
 8 files changed, 6 insertions(+), 16 deletions(-)

Comments

Savolainen, Petri (NSN - FI/Espoo) Oct. 17, 2014, 11:11 a.m. UTC | #1
ping

> -----Original Message-----
> From: ext Petri Savolainen [mailto:petri.savolainen@linaro.org]
> Sent: Wednesday, October 15, 2014 2:44 PM
> To: lng-odp@lists.linaro.org
> Cc: Petri Savolainen
> Subject: [PATCH] Add crypto and rwlock into odp.h
> 
> Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
> ---
>  example/generator/odp_generator.c        | 2 +-
>  example/ipsec/odp_ipsec.c                | 3 +--
>  example/ipsec/odp_ipsec_cache.c          | 3 +--
>  example/ipsec/odp_ipsec_fwd_db.c         | 2 --
>  example/ipsec/odp_ipsec_loop_db.c        | 2 --
>  example/ipsec/odp_ipsec_sa_db.c          | 2 --
>  example/ipsec/odp_ipsec_stream.c         | 4 +---
>  platform/linux-generic/include/api/odp.h | 4 ++--
>  8 files changed, 6 insertions(+), 16 deletions(-)
> 
> diff --git a/example/generator/odp_generator.c
> b/example/generator/odp_generator.c
> index eb8b340..9376dc2 100644
> --- a/example/generator/odp_generator.c
> +++ b/example/generator/odp_generator.c
> @@ -17,7 +17,7 @@
>  #include <sys/time.h>
> 
>  #include <odp.h>
> -#include <odp_packet_io.h>
> +
>  #include <odph_linux.h>
>  #include <odph_packet.h>
>  #include <odph_eth.h>
> diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c
> index 2f2dc19..368b9ef 100644
> --- a/example/ipsec/odp_ipsec.c
> +++ b/example/ipsec/odp_ipsec.c
> @@ -16,8 +16,7 @@
>  #include <unistd.h>
> 
>  #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
> +
>  #include <odph_linux.h>
>  #include <odph_packet.h>
>  #include <odph_eth.h>
> diff --git a/example/ipsec/odp_ipsec_cache.c
> b/example/ipsec/odp_ipsec_cache.c
> index 01650d0..1397d77 100644
> --- a/example/ipsec/odp_ipsec_cache.c
> +++ b/example/ipsec/odp_ipsec_cache.c
> @@ -8,8 +8,7 @@
>  #include <string.h>
> 
>  #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
> +
>  #include <odph_ipsec.h>
> 
>  #include <odp_ipsec_cache.h>
> diff --git a/example/ipsec/odp_ipsec_fwd_db.c
> b/example/ipsec/odp_ipsec_fwd_db.c
> index 9ed5d00..e067db9 100644
> --- a/example/ipsec/odp_ipsec_fwd_db.c
> +++ b/example/ipsec/odp_ipsec_fwd_db.c
> @@ -8,8 +8,6 @@
>  #include <string.h>
> 
>  #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
> 
>  #include <odp_ipsec_fwd_db.h>
> 
> diff --git a/example/ipsec/odp_ipsec_loop_db.c
> b/example/ipsec/odp_ipsec_loop_db.c
> index f773352..af4590a 100644
> --- a/example/ipsec/odp_ipsec_loop_db.c
> +++ b/example/ipsec/odp_ipsec_loop_db.c
> @@ -8,8 +8,6 @@
>  #include <string.h>
> 
>  #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
> 
>  #include <odp_ipsec_loop_db.h>
> 
> diff --git a/example/ipsec/odp_ipsec_sa_db.c
> b/example/ipsec/odp_ipsec_sa_db.c
> index f6da623..e8679db 100644
> --- a/example/ipsec/odp_ipsec_sa_db.c
> +++ b/example/ipsec/odp_ipsec_sa_db.c
> @@ -8,8 +8,6 @@
>  #include <string.h>
> 
>  #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
> 
>  #include <odp_ipsec_sa_db.h>
> 
> diff --git a/example/ipsec/odp_ipsec_stream.c
> b/example/ipsec/odp_ipsec_stream.c
> index fba425c..a90a478 100644
> --- a/example/ipsec/odp_ipsec_stream.c
> +++ b/example/ipsec/odp_ipsec_stream.c
> @@ -13,9 +13,7 @@
>  #include <openssl/evp.h>
> 
>  #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
> -#include <odp_packet.h>
> +
>  #include <odph_packet.h>
>  #include <odph_eth.h>
>  #include <odph_ip.h>
> diff --git a/platform/linux-generic/include/api/odp.h b/platform/linux-
> generic/include/api/odp.h
> index 0ee3faf..6e4f69e 100644
> --- a/platform/linux-generic/include/api/odp.h
> +++ b/platform/linux-generic/include/api/odp.h
> @@ -23,7 +23,6 @@ extern "C" {
>  #include <odp_version.h>
>  #include <odp_std_types.h>
>  #include <odp_compiler.h>
> -
>  #include <odp_align.h>
>  #include <odp_hints.h>
>  #include <odp_debug.h>
> @@ -32,7 +31,6 @@ extern "C" {
>  #include <odp_barrier.h>
>  #include <odp_spinlock.h>
>  #include <odp_atomic.h>
> -
>  #include <odp_init.h>
>  #include <odp_system_info.h>
>  #include <odp_thread.h>
> @@ -48,6 +46,8 @@ extern "C" {
>  #include <odp_packet.h>
>  #include <odp_packet_flags.h>
>  #include <odp_packet_io.h>
> +#include <odp_crypto.h>
> +#include <odp_rwlock.h>
> 
>  #ifdef __cplusplus
>  }
> --
> 2.1.1
Anders Roxell Oct. 17, 2014, 11:22 a.m. UTC | #2
On 2014-10-15 14:43, Petri Savolainen wrote:
> Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

Reviewed-by: Anders Roxell <anders.roxell@linaro.org>

> ---
>  example/generator/odp_generator.c        | 2 +-
>  example/ipsec/odp_ipsec.c                | 3 +--
>  example/ipsec/odp_ipsec_cache.c          | 3 +--
>  example/ipsec/odp_ipsec_fwd_db.c         | 2 --
>  example/ipsec/odp_ipsec_loop_db.c        | 2 --
>  example/ipsec/odp_ipsec_sa_db.c          | 2 --
>  example/ipsec/odp_ipsec_stream.c         | 4 +---
>  platform/linux-generic/include/api/odp.h | 4 ++--
>  8 files changed, 6 insertions(+), 16 deletions(-)
> 
> diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
> index eb8b340..9376dc2 100644
> --- a/example/generator/odp_generator.c
> +++ b/example/generator/odp_generator.c
> @@ -17,7 +17,7 @@
>  #include <sys/time.h>
>  
>  #include <odp.h>
> -#include <odp_packet_io.h>
> +
>  #include <odph_linux.h>
>  #include <odph_packet.h>
>  #include <odph_eth.h>
> diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c
> index 2f2dc19..368b9ef 100644
> --- a/example/ipsec/odp_ipsec.c
> +++ b/example/ipsec/odp_ipsec.c
> @@ -16,8 +16,7 @@
>  #include <unistd.h>
>  
>  #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
> +
>  #include <odph_linux.h>
>  #include <odph_packet.h>
>  #include <odph_eth.h>
> diff --git a/example/ipsec/odp_ipsec_cache.c b/example/ipsec/odp_ipsec_cache.c
> index 01650d0..1397d77 100644
> --- a/example/ipsec/odp_ipsec_cache.c
> +++ b/example/ipsec/odp_ipsec_cache.c
> @@ -8,8 +8,7 @@
>  #include <string.h>
>  
>  #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
> +
>  #include <odph_ipsec.h>
>  
>  #include <odp_ipsec_cache.h>
> diff --git a/example/ipsec/odp_ipsec_fwd_db.c b/example/ipsec/odp_ipsec_fwd_db.c
> index 9ed5d00..e067db9 100644
> --- a/example/ipsec/odp_ipsec_fwd_db.c
> +++ b/example/ipsec/odp_ipsec_fwd_db.c
> @@ -8,8 +8,6 @@
>  #include <string.h>
>  
>  #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
>  
>  #include <odp_ipsec_fwd_db.h>
>  
> diff --git a/example/ipsec/odp_ipsec_loop_db.c b/example/ipsec/odp_ipsec_loop_db.c
> index f773352..af4590a 100644
> --- a/example/ipsec/odp_ipsec_loop_db.c
> +++ b/example/ipsec/odp_ipsec_loop_db.c
> @@ -8,8 +8,6 @@
>  #include <string.h>
>  
>  #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
>  
>  #include <odp_ipsec_loop_db.h>
>  
> diff --git a/example/ipsec/odp_ipsec_sa_db.c b/example/ipsec/odp_ipsec_sa_db.c
> index f6da623..e8679db 100644
> --- a/example/ipsec/odp_ipsec_sa_db.c
> +++ b/example/ipsec/odp_ipsec_sa_db.c
> @@ -8,8 +8,6 @@
>  #include <string.h>
>  
>  #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
>  
>  #include <odp_ipsec_sa_db.h>
>  
> diff --git a/example/ipsec/odp_ipsec_stream.c b/example/ipsec/odp_ipsec_stream.c
> index fba425c..a90a478 100644
> --- a/example/ipsec/odp_ipsec_stream.c
> +++ b/example/ipsec/odp_ipsec_stream.c
> @@ -13,9 +13,7 @@
>  #include <openssl/evp.h>
>  
>  #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
> -#include <odp_packet.h>
> +
>  #include <odph_packet.h>
>  #include <odph_eth.h>
>  #include <odph_ip.h>
> diff --git a/platform/linux-generic/include/api/odp.h b/platform/linux-generic/include/api/odp.h
> index 0ee3faf..6e4f69e 100644
> --- a/platform/linux-generic/include/api/odp.h
> +++ b/platform/linux-generic/include/api/odp.h
> @@ -23,7 +23,6 @@ extern "C" {
>  #include <odp_version.h>
>  #include <odp_std_types.h>
>  #include <odp_compiler.h>
> -
>  #include <odp_align.h>
>  #include <odp_hints.h>
>  #include <odp_debug.h>
> @@ -32,7 +31,6 @@ extern "C" {
>  #include <odp_barrier.h>
>  #include <odp_spinlock.h>
>  #include <odp_atomic.h>
> -
>  #include <odp_init.h>
>  #include <odp_system_info.h>
>  #include <odp_thread.h>
> @@ -48,6 +46,8 @@ extern "C" {
>  #include <odp_packet.h>
>  #include <odp_packet_flags.h>
>  #include <odp_packet_io.h>
> +#include <odp_crypto.h>
> +#include <odp_rwlock.h>
>  
>  #ifdef __cplusplus
>  }
> -- 
> 2.1.1
> 
> 
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
Maxim Uvarov Oct. 21, 2014, 12:02 p.m. UTC | #3
merged!

Maxim.

On 10/15/2014 03:43 PM, Petri Savolainen wrote:
> Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
> ---
>   example/generator/odp_generator.c        | 2 +-
>   example/ipsec/odp_ipsec.c                | 3 +--
>   example/ipsec/odp_ipsec_cache.c          | 3 +--
>   example/ipsec/odp_ipsec_fwd_db.c         | 2 --
>   example/ipsec/odp_ipsec_loop_db.c        | 2 --
>   example/ipsec/odp_ipsec_sa_db.c          | 2 --
>   example/ipsec/odp_ipsec_stream.c         | 4 +---
>   platform/linux-generic/include/api/odp.h | 4 ++--
>   8 files changed, 6 insertions(+), 16 deletions(-)
>
> diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
> index eb8b340..9376dc2 100644
> --- a/example/generator/odp_generator.c
> +++ b/example/generator/odp_generator.c
> @@ -17,7 +17,7 @@
>   #include <sys/time.h>
>   
>   #include <odp.h>
> -#include <odp_packet_io.h>
> +
>   #include <odph_linux.h>
>   #include <odph_packet.h>
>   #include <odph_eth.h>
> diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c
> index 2f2dc19..368b9ef 100644
> --- a/example/ipsec/odp_ipsec.c
> +++ b/example/ipsec/odp_ipsec.c
> @@ -16,8 +16,7 @@
>   #include <unistd.h>
>   
>   #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
> +
>   #include <odph_linux.h>
>   #include <odph_packet.h>
>   #include <odph_eth.h>
> diff --git a/example/ipsec/odp_ipsec_cache.c b/example/ipsec/odp_ipsec_cache.c
> index 01650d0..1397d77 100644
> --- a/example/ipsec/odp_ipsec_cache.c
> +++ b/example/ipsec/odp_ipsec_cache.c
> @@ -8,8 +8,7 @@
>   #include <string.h>
>   
>   #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
> +
>   #include <odph_ipsec.h>
>   
>   #include <odp_ipsec_cache.h>
> diff --git a/example/ipsec/odp_ipsec_fwd_db.c b/example/ipsec/odp_ipsec_fwd_db.c
> index 9ed5d00..e067db9 100644
> --- a/example/ipsec/odp_ipsec_fwd_db.c
> +++ b/example/ipsec/odp_ipsec_fwd_db.c
> @@ -8,8 +8,6 @@
>   #include <string.h>
>   
>   #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
>   
>   #include <odp_ipsec_fwd_db.h>
>   
> diff --git a/example/ipsec/odp_ipsec_loop_db.c b/example/ipsec/odp_ipsec_loop_db.c
> index f773352..af4590a 100644
> --- a/example/ipsec/odp_ipsec_loop_db.c
> +++ b/example/ipsec/odp_ipsec_loop_db.c
> @@ -8,8 +8,6 @@
>   #include <string.h>
>   
>   #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
>   
>   #include <odp_ipsec_loop_db.h>
>   
> diff --git a/example/ipsec/odp_ipsec_sa_db.c b/example/ipsec/odp_ipsec_sa_db.c
> index f6da623..e8679db 100644
> --- a/example/ipsec/odp_ipsec_sa_db.c
> +++ b/example/ipsec/odp_ipsec_sa_db.c
> @@ -8,8 +8,6 @@
>   #include <string.h>
>   
>   #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
>   
>   #include <odp_ipsec_sa_db.h>
>   
> diff --git a/example/ipsec/odp_ipsec_stream.c b/example/ipsec/odp_ipsec_stream.c
> index fba425c..a90a478 100644
> --- a/example/ipsec/odp_ipsec_stream.c
> +++ b/example/ipsec/odp_ipsec_stream.c
> @@ -13,9 +13,7 @@
>   #include <openssl/evp.h>
>   
>   #include <odp.h>
> -#include <odp_align.h>
> -#include <odp_crypto.h>
> -#include <odp_packet.h>
> +
>   #include <odph_packet.h>
>   #include <odph_eth.h>
>   #include <odph_ip.h>
> diff --git a/platform/linux-generic/include/api/odp.h b/platform/linux-generic/include/api/odp.h
> index 0ee3faf..6e4f69e 100644
> --- a/platform/linux-generic/include/api/odp.h
> +++ b/platform/linux-generic/include/api/odp.h
> @@ -23,7 +23,6 @@ extern "C" {
>   #include <odp_version.h>
>   #include <odp_std_types.h>
>   #include <odp_compiler.h>
> -
>   #include <odp_align.h>
>   #include <odp_hints.h>
>   #include <odp_debug.h>
> @@ -32,7 +31,6 @@ extern "C" {
>   #include <odp_barrier.h>
>   #include <odp_spinlock.h>
>   #include <odp_atomic.h>
> -
>   #include <odp_init.h>
>   #include <odp_system_info.h>
>   #include <odp_thread.h>
> @@ -48,6 +46,8 @@ extern "C" {
>   #include <odp_packet.h>
>   #include <odp_packet_flags.h>
>   #include <odp_packet_io.h>
> +#include <odp_crypto.h>
> +#include <odp_rwlock.h>
>   
>   #ifdef __cplusplus
>   }
diff mbox

Patch

diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
index eb8b340..9376dc2 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -17,7 +17,7 @@ 
 #include <sys/time.h>
 
 #include <odp.h>
-#include <odp_packet_io.h>
+
 #include <odph_linux.h>
 #include <odph_packet.h>
 #include <odph_eth.h>
diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c
index 2f2dc19..368b9ef 100644
--- a/example/ipsec/odp_ipsec.c
+++ b/example/ipsec/odp_ipsec.c
@@ -16,8 +16,7 @@ 
 #include <unistd.h>
 
 #include <odp.h>
-#include <odp_align.h>
-#include <odp_crypto.h>
+
 #include <odph_linux.h>
 #include <odph_packet.h>
 #include <odph_eth.h>
diff --git a/example/ipsec/odp_ipsec_cache.c b/example/ipsec/odp_ipsec_cache.c
index 01650d0..1397d77 100644
--- a/example/ipsec/odp_ipsec_cache.c
+++ b/example/ipsec/odp_ipsec_cache.c
@@ -8,8 +8,7 @@ 
 #include <string.h>
 
 #include <odp.h>
-#include <odp_align.h>
-#include <odp_crypto.h>
+
 #include <odph_ipsec.h>
 
 #include <odp_ipsec_cache.h>
diff --git a/example/ipsec/odp_ipsec_fwd_db.c b/example/ipsec/odp_ipsec_fwd_db.c
index 9ed5d00..e067db9 100644
--- a/example/ipsec/odp_ipsec_fwd_db.c
+++ b/example/ipsec/odp_ipsec_fwd_db.c
@@ -8,8 +8,6 @@ 
 #include <string.h>
 
 #include <odp.h>
-#include <odp_align.h>
-#include <odp_crypto.h>
 
 #include <odp_ipsec_fwd_db.h>
 
diff --git a/example/ipsec/odp_ipsec_loop_db.c b/example/ipsec/odp_ipsec_loop_db.c
index f773352..af4590a 100644
--- a/example/ipsec/odp_ipsec_loop_db.c
+++ b/example/ipsec/odp_ipsec_loop_db.c
@@ -8,8 +8,6 @@ 
 #include <string.h>
 
 #include <odp.h>
-#include <odp_align.h>
-#include <odp_crypto.h>
 
 #include <odp_ipsec_loop_db.h>
 
diff --git a/example/ipsec/odp_ipsec_sa_db.c b/example/ipsec/odp_ipsec_sa_db.c
index f6da623..e8679db 100644
--- a/example/ipsec/odp_ipsec_sa_db.c
+++ b/example/ipsec/odp_ipsec_sa_db.c
@@ -8,8 +8,6 @@ 
 #include <string.h>
 
 #include <odp.h>
-#include <odp_align.h>
-#include <odp_crypto.h>
 
 #include <odp_ipsec_sa_db.h>
 
diff --git a/example/ipsec/odp_ipsec_stream.c b/example/ipsec/odp_ipsec_stream.c
index fba425c..a90a478 100644
--- a/example/ipsec/odp_ipsec_stream.c
+++ b/example/ipsec/odp_ipsec_stream.c
@@ -13,9 +13,7 @@ 
 #include <openssl/evp.h>
 
 #include <odp.h>
-#include <odp_align.h>
-#include <odp_crypto.h>
-#include <odp_packet.h>
+
 #include <odph_packet.h>
 #include <odph_eth.h>
 #include <odph_ip.h>
diff --git a/platform/linux-generic/include/api/odp.h b/platform/linux-generic/include/api/odp.h
index 0ee3faf..6e4f69e 100644
--- a/platform/linux-generic/include/api/odp.h
+++ b/platform/linux-generic/include/api/odp.h
@@ -23,7 +23,6 @@  extern "C" {
 #include <odp_version.h>
 #include <odp_std_types.h>
 #include <odp_compiler.h>
-
 #include <odp_align.h>
 #include <odp_hints.h>
 #include <odp_debug.h>
@@ -32,7 +31,6 @@  extern "C" {
 #include <odp_barrier.h>
 #include <odp_spinlock.h>
 #include <odp_atomic.h>
-
 #include <odp_init.h>
 #include <odp_system_info.h>
 #include <odp_thread.h>
@@ -48,6 +46,8 @@  extern "C" {
 #include <odp_packet.h>
 #include <odp_packet_flags.h>
 #include <odp_packet_io.h>
+#include <odp_crypto.h>
+#include <odp_rwlock.h>
 
 #ifdef __cplusplus
 }