summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNikhil Rao <nikhil.rao@intel.com>2018-09-25 12:49:04 +0530
committerJerin Jacob <jerin.jacob@caviumnetworks.com>2018-10-01 16:54:32 +0200
commit83294c61690fee57bfc153bfa7a9a3e9afc09fbe (patch)
tree6ab5e49a247f86419dfbd4f9113c647a645d8295 /test
parenta4f5612353e9fd724db7ad301da533285b4cad99 (diff)
downloaddpdk-83294c61690fee57bfc153bfa7a9a3e9afc09fbe.zip
dpdk-83294c61690fee57bfc153bfa7a9a3e9afc09fbe.tar.gz
dpdk-83294c61690fee57bfc153bfa7a9a3e9afc09fbe.tar.xz
test/event: fix eth Rx adapter test for skeleton PMD
Skeleton PMD does not support RTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ and implicit_release_disable so make the Rx queue_id = -1 and initialize the event port configuration to zero. Fixes: ec36d881f56d ("eventdev: add implicit release disable capability") Fixes: 2a9c83ae3b2e ("test/eventdev: add multi-ports test") 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, 4 insertions, 2 deletions
diff --git a/test/test/test_event_eth_rx_adapter.c b/test/test/test_event_eth_rx_adapter.c
index 25604ec..1dcc092 100644
--- a/test/test/test_event_eth_rx_adapter.c
+++ b/test/test/test_event_eth_rx_adapter.c
@@ -310,6 +310,8 @@ adapter_create(void)
struct rte_event_dev_info dev_info;
struct rte_event_port_conf rx_p_conf;
+ memset(&rx_p_conf, 0, sizeof(rx_p_conf));
+
err = rte_event_dev_info_get(TEST_DEV_ID, &dev_info);
TEST_ASSERT(err == 0, "Expected 0 got %d", err);
@@ -491,7 +493,7 @@ adapter_multi_eth_add_del(void)
port_index = 0;
for (; port_index < rte_eth_dev_count_total(); port_index += 1) {
err = rte_event_eth_rx_adapter_queue_add(TEST_INST_ID,
- port_index, 0,
+ port_index, -1,
&queue_config);
TEST_ASSERT(err == 0, "Expected 0 got %d", err);
}
@@ -500,7 +502,7 @@ adapter_multi_eth_add_del(void)
port_index = 0;
for (; port_index < rte_eth_dev_count_total(); port_index += 1) {
err = rte_event_eth_rx_adapter_queue_del(TEST_INST_ID,
- port_index, 0);
+ port_index, -1);
TEST_ASSERT(err == 0, "Expected 0 got %d", err);
}