From: Pavan Nikhilesh Date: Tue, 13 Apr 2021 22:16:12 +0000 (+0530) Subject: eventdev: fix build on RHEL 7 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=206c562e4b4f03424d7c1e076a59a031ede1c6f1;p=dpdk.git eventdev: fix build on RHEL 7 Since queue identifier is passed as signed integer, a compilation error is generated: rte_event_eth_rx_adapter.c:1810:57: error: signed and unsigned type in conditional expression [-Werror=sign-compare] Make queue identifier as unsigned when adding it to vector data. Bugzilla ID: 672 Fixes: d7c428e557ba ("eventdev: support Rx adapter event vector") Signed-off-by: Pavan Nikhilesh Acked-by: David Marchand Acked-by: Jerin Jacob --- diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c index e273b3acf8..ca166a65f2 100644 --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c @@ -1790,7 +1790,7 @@ rxa_update_queue(struct rte_event_eth_rx_adapter *rx_adapter, static void rxa_set_vector_data(struct eth_rx_queue_info *queue_info, uint16_t vector_count, - uint64_t vector_ns, struct rte_mempool *mp, int32_t qid, + uint64_t vector_ns, struct rte_mempool *mp, uint32_t qid, uint16_t port_id) { #define NSEC2TICK(__ns, __freq) (((__ns) * (__freq)) / 1E9)