net/mlx: allow build only on Linux
[dpdk.git] / app / test-eventdev / test_pipeline_common.c
index d07fa88..16c49b8 100644 (file)
@@ -165,7 +165,7 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
        struct rte_eth_conf port_conf = {
                .rxmode = {
                        .mq_mode = ETH_MQ_RX_RSS,
-                       .max_rx_pkt_len = ETHER_MAX_LEN,
+                       .max_rx_pkt_len = RTE_ETHER_MAX_LEN,
                },
                .rx_adv_conf = {
                        .rss_conf = {
@@ -329,7 +329,7 @@ int
 pipeline_event_tx_adapter_setup(struct evt_options *opt,
                struct rte_event_port_conf port_conf)
 {
-       int ret;
+       int ret = 0;
        uint16_t consm;
 
        RTE_ETH_FOREACH_DEV(consm) {
@@ -396,6 +396,7 @@ pipeline_eventdev_destroy(struct evt_test *test, struct evt_options *opt)
 {
        RTE_SET_USED(test);
 
+       rte_event_dev_stop(opt->dev_id);
        rte_event_dev_close(opt->dev_id);
 }