> -----Original Message-----
> From: Anoob Joseph [mailto:anoob.jos...@caviumnetworks.com]
> Sent: Friday, June 8, 2018 5:45 PM
> To: Akhil Goyal <akhil.go...@nxp.com>; De Lara Guarch, Pablo
> <pablo.de.lara.gua...@intel.com>; Thomas Monjalon <tho...@monjalon.net>
> Cc: Ankur Dwivedi <ankur.dwiv...@cavium.com>; Jerin Jacob
> <jerin.ja...@caviumnetworks.com>; Murthy NSSR
> <nidadavolu.mur...@cavium.com>; Narayana Prasad
> <narayanaprasad.athr...@caviumnetworks.com>; Nithin Dabilpuram
> <nithin.dabilpu...@cavium.com>; Ragothaman Jayaraman
> <ragothaman.jayara...@cavium.com>; Srisivasubramanian Srinivasan
> <srisivasubramanian.sriniva...@cavium.com>; dev@dpdk.org
> Subject: [PATCH 04/16] crypto/cpt/base: add hardware enq/deq API for CPT
>
> From: Ankur Dwivedi <ankur.dwiv...@cavium.com>
>
> Adds hardware enqueue/dequeue API of instructions to a queue pair for Cavium
> CPT device.
>
> Signed-off-by: Ankur Dwivedi <ankur.dwiv...@cavium.com>
> Signed-off-by: Murthy NSSR <nidadavolu.mur...@cavium.com>
> Signed-off-by: Nithin Dabilpuram <nithin.dabilpu...@cavium.com>
> Signed-off-by: Ragothaman Jayaraman
> <ragothaman.jayara...@cavium.com>
> Signed-off-by: Srisivasubramanian Srinivasan
> <srisivasubramanian.sriniva...@cavium.com>
...
> +
> + /* Event based completion */
> + cpt_ist_p->s.tag = OCTTX_EVENT_TAG(event_flags);
> + cpt_ist_p->s.grp = OCTTX_EVENT_GRP(event_flags);
> + cpt_ist_p->s.tt = OCTTX_EVENT_TT(event_flags);
> + cpt_ist_p->s.wq_ptr = (uint64_t)event;
I am seeing an error when building with gcc 32 bits.
drivers/crypto/cpt/base/cpt_request_mgr.c:268:26: error:
cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
cpt_ist_p->s.wq_ptr = (uint64_t)event;
^
drivers/crypto/cpt/base/cpt_request_mgr.c:281:17: error:
cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
rid_e->rid = (uint64_t)user_req;
^
drivers/crypto/cpt/base/cpt_request_mgr.c:313:5: error:
cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
(uint64_t)user_req;
^
drivers/crypto/cpt/base/cpt_request_mgr.c: In function 'cpt_dequeue_burst':
drivers/crypto/cpt/base/cpt_request_mgr.c:375:14:
error: cast to pointer from integer of different size
[-Werror=int-to-pointer-cast]
user_req = (cpt_request_info_t *)(rid_e->rid);
^
drivers/crypto/cpt/base/cpt_request_mgr.c:378:30: error:
cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
rte_prefetch_non_temporal((void *)rid_e[1].rid);
^