From: Nikhil Rao Date: Tue, 22 May 2018 21:06:42 +0000 (+0530) Subject: eventdev: fix port in Rx adapter internal function X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d89fd4cd132720fea1d9497a375d50489e7dd0b7;p=dpdk.git eventdev: fix port in Rx adapter internal function The dev_id parameter to fill_event_buffer() should be 16 bit, also rename to to eth_dev_id to avoid confusion with event device id elsewhere in the file. Fixes: c2189c907dd1 ("eventdev: make ethdev port identifiers 16-bit") Cc: stable@dpdk.org Signed-off-by: Nikhil Rao 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 6f7050952f..273df1e9b3 100644 --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c @@ -418,14 +418,14 @@ flush_event_buffer(struct rte_event_eth_rx_adapter *rx_adapter) static inline void fill_event_buffer(struct rte_event_eth_rx_adapter *rx_adapter, - uint8_t dev_id, + uint16_t eth_dev_id, uint16_t rx_queue_id, struct rte_mbuf **mbufs, uint16_t num) { uint32_t i; struct eth_device_info *eth_device_info = - &rx_adapter->eth_devices[dev_id]; + &rx_adapter->eth_devices[eth_dev_id]; struct eth_rx_queue_info *eth_rx_queue_info = ð_device_info->rx_queue[rx_queue_id];