From cff90bb7ecc39587cb980909f851cc34ebbeddf4 Mon Sep 17 00:00:00 2001 From: Takuya Asada Date: Mon, 23 Feb 2015 16:51:25 +0900 Subject: [PATCH] virtio: add default Tx configuration When I tried to launch test-pmd on KVM guest of Fedora21, I got following error: Configuring Port 0 (socket 0) Fail to configure port 0 tx queues EAL: Error - exiting with code: 1 Cause: Start ports failed I found that the error caused here, and actual error message was "TX checksum offload not supported". This patch adds default_txconf on virtio pmd, to avoid the error. Signed-off-by: Takuya Asada Acked-by: Pablo de Lara --- lib/librte_pmd_virtio/virtio_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c b/lib/librte_pmd_virtio/virtio_ethdev.c index d239083266..c7a0d756a1 100644 --- a/lib/librte_pmd_virtio/virtio_ethdev.c +++ b/lib/librte_pmd_virtio/virtio_ethdev.c @@ -1471,6 +1471,9 @@ virtio_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->min_rx_bufsize = VIRTIO_MIN_RX_BUFSIZE; dev_info->max_rx_pktlen = VIRTIO_MAX_RX_PKTLEN; dev_info->max_mac_addrs = VIRTIO_MAX_MAC_ADDRS; + dev_info->default_txconf = (struct rte_eth_txconf) { + .txq_flags = ETH_TXQ_FLAGS_NOOFFLOADS + }; } /* -- 2.20.1