[v1] examples/ipsec-secgw: increase the number of dev mappings

Message ID 1536203428-12094-1-git-send-email-ajoseph@caviumnetworks.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series [v1] examples/ipsec-secgw: increase the number of dev mappings |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Anoob Joseph Sept. 6, 2018, 3:10 a.m. UTC
  Increasing the number of cdev mappings to accommodate usage of crypto
devices with larger number of capabilities, with higher number of cores.

Required mappings : ([no of ciphers] * [no of auth] + [aead algos]) *
                    [no of cores]

Signed-off-by: Ankur Dwivedi <ankur.dwivedi@caviumnetworks.com>
Signed-off-by: Anoob Joseph <ajoseph@caviumnetworks.com>
---
v1:
* Fixed typo in description

 examples/ipsec-secgw/ipsec-secgw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Akhil Goyal Sept. 25, 2018, 11:03 a.m. UTC | #1
On 9/6/2018 8:40 AM, Anoob Joseph wrote:
> Increasing the number of cdev mappings to accommodate usage of crypto
> devices with larger number of capabilities, with higher number of cores.
>
> Required mappings : ([no of ciphers] * [no of auth] + [aead algos]) *
>                      [no of cores]
>
> Signed-off-by: Ankur Dwivedi <ankur.dwivedi@caviumnetworks.com>
> Signed-off-by: Anoob Joseph <ajoseph@caviumnetworks.com>
> ---
> v1:
> * Fixed typo in description
>
>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
  
Akhil Goyal Sept. 26, 2018, 12:27 p.m. UTC | #2
On 9/6/2018 8:40 AM, Anoob Joseph wrote:
> Increasing the number of cdev mappings to accommodate usage of crypto
> devices with larger number of capabilities, with higher number of cores.
>
> Required mappings : ([no of ciphers] * [no of auth] + [aead algos]) *
>                      [no of cores]
>
> Signed-off-by: Ankur Dwivedi <ankur.dwivedi@caviumnetworks.com>
> Signed-off-by: Anoob Joseph <ajoseph@caviumnetworks.com>
> ---
>
Applied to dpdk-next-crypto

Thanks
  

Patch

diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c
index b45b87b..ce5365a 100644
--- a/examples/ipsec-secgw/ipsec-secgw.c
+++ b/examples/ipsec-secgw/ipsec-secgw.c
@@ -54,7 +54,7 @@ 
 #define NB_MBUF	(32000)
 
 #define CDEV_QUEUE_DESC 2048
-#define CDEV_MAP_ENTRIES 1024
+#define CDEV_MAP_ENTRIES 16384
 #define CDEV_MP_NB_OBJS 2048
 #define CDEV_MP_CACHE_SZ 64
 #define MAX_QUEUE_PAIRS 1