summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNikhil Rao <nikhil.rao@intel.com>2018-09-25 15:19:05 +0530
committerJerin Jacob <jerin.jacob@caviumnetworks.com>2018-10-01 16:53:13 +0200
commit475425186f6980c7bc7065089ba0ef09e8e161ca (patch)
treed2f64f3ebc846f094e15138ccd1c699775b4d133 /test
parent025825eab80319ceb1571fb1413075e5283095d2 (diff)
downloaddpdk-475425186f6980c7bc7065089ba0ef09e8e161ca.zip
dpdk-475425186f6980c7bc7065089ba0ef09e8e161ca.tar.gz
dpdk-475425186f6980c7bc7065089ba0ef09e8e161ca.tar.xz
eventdev: fix port id argument in Rx adapter caps
Make the ethernet port id passed into rte_event_eth_rx_adapter_caps_get() 16 bit. Also, update the event rx adapter test to use 16 bit ethernet port ids. Fixes: c2189c907dd1 ("eventdev: make ethdev port identifiers 16-bit") Cc: stable@dpdk.org Signed-off-by: Nikhil Rao <nikhil.rao@intel.com> Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Diffstat (limited to 'test')
-rw-r--r--test/test/test_event_eth_rx_adapter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test/test_event_eth_rx_adapter.c b/test/test/test_event_eth_rx_adapter.c
index 3c19ee0..25604ec 100644
--- a/test/test/test_event_eth_rx_adapter.c
+++ b/test/test/test_event_eth_rx_adapter.c
@@ -32,7 +32,7 @@ struct event_eth_rx_adapter_test_params {
static struct event_eth_rx_adapter_test_params default_params;
static inline int
-port_init_common(uint8_t port, const struct rte_eth_conf *port_conf,
+port_init_common(uint16_t port, const struct rte_eth_conf *port_conf,
struct rte_mempool *mp)
{
const uint16_t rx_ring_size = 512, tx_ring_size = 512;
@@ -94,7 +94,7 @@ port_init_common(uint8_t port, const struct rte_eth_conf *port_conf,
}
static inline int
-port_init_rx_intr(uint8_t port, struct rte_mempool *mp)
+port_init_rx_intr(uint16_t port, struct rte_mempool *mp)
{
static const struct rte_eth_conf port_conf_default = {
.rxmode = {
@@ -109,7 +109,7 @@ port_init_rx_intr(uint8_t port, struct rte_mempool *mp)
}
static inline int
-port_init(uint8_t port, struct rte_mempool *mp)
+port_init(uint16_t port, struct rte_mempool *mp)
{
static const struct rte_eth_conf port_conf_default = {
.rxmode = {