<div dir="ltr">I'm using a dpdk-replay application (that reads from pcap and sends to a port) and I'm passing the parameter --vdev net_memif in order that the application sends packets to the memif PMD interface. Before launching dpdk-replay I launch the testpmd like this:<br><br>dpdk-testpmd -l 4-5 --proc-type=primary --file-prefix=pmd1 --vdev=net_memif<br><br>The dpdk-replay is using the following code to start the port but unfortunately the link status is always down and rte_eth_tx_burst doesn't send anything.<br><br>    /* Configure for each port (ethernet device), the number of rx queues & tx queues */<br>    if (rte_eth_dev_configure(port,<br>                              0, /* nb rx queue */<br>                              NB_TX_QUEUES, /* nb tx queue */<br>                              &ethconf) < 0) {<br>        fprintf(stderr, "DPDK: RTE ETH Ethernet device configuration failed\n");<br>        return (-1);<br>    }<br><br>    /* Then allocate and set up the transmit queues for this Ethernet device  */<br>    for (i = 0; i < NB_TX_QUEUES; i++) {<br>        ret = rte_eth_tx_queue_setup(port,<br>                                     i,<br>                                     TX_QUEUE_SIZE,<br>                                     cpus->numacore,<br>                                     &txconf);<br>        if (ret < 0) {<br>            fprintf(stderr, "DPDK: RTE ETH Ethernet device tx queue %i setup failed: %s",<br>                    i, strerror(-ret));<br>            return (ret);<br>        }<br>    }<br><br>    /* Start the ethernet device */<br>    if (rte_eth_dev_start(port) < 0) {<br>        fprintf(stderr, "DPDK: RTE ETH Ethernet device start failed\n");<br>        return (-1);<br>    }<br><br>    /* Get link status and display it. */<br>    rte_eth_link_get(port, &eth_link);<br>    if (eth_link.link_status) {<br>        printf(" Link up - speed %u Mbps - %s\n",<br>               eth_link.link_speed,<br>               (eth_link.link_duplex == ETH_LINK_FULL_DUPLEX) ?<br>               "full-duplex" : "half-duplex\n");<br>    } else {<br>        printf("Link down\n");<br>    }<br></div>