From patchwork Mon Feb 23 07:51:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takuya ASADA X-Patchwork-Id: 3604 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 63DB4B3F5; Mon, 23 Feb 2015 08:51:32 +0100 (CET) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by dpdk.org (Postfix) with ESMTP id 346D1B3F2 for ; Mon, 23 Feb 2015 08:51:31 +0100 (CET) Received: by pabkq14 with SMTP id kq14so25605391pab.3 for ; Sun, 22 Feb 2015 23:51:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=MerqaRIYONywwX9KVk775+ZcQI8Y1m01Z4bzaDpYnKs=; b=jDSL5z9JK1ndaXIeq2Ph2ZeWJGAyc+7To4cjzD37fk0JAgIAZiLh1hvh0kHTSGaxR0 kVakMx3zBik8t/rF4r2bGtKwcBYJuoSweBDoYTavcTpaD5EVCcIH1+BGQX+FHgnLyEcv Lv7h6HdR8/TFSOgI3FYV//WSrUfKFXjc42sv/CNrdc+z0o8+vaxgx34k0jloATDpokC2 I0k6IDf1EpRSmMaMRQd3yssQpkpTJzvjy3bg6fN1O1wCpptY7NUqUyMHxi6BvnSQjoJi JgEem16tSzNl3Sq+ZYB3vxMJv90wXxBrPjgFRIHGxCjn1Jb9fA5RXcG8MKlI0LovnJaR SmSw== X-Gm-Message-State: ALoCoQnhO75lLdvakSg7aaLYGYsN+0SEHAb7ETBF0CzpMEZ2aWzH8+O6nCtuRg0SH12IuTJEBvpJ X-Received: by 10.70.92.199 with SMTP id co7mr17226729pdb.92.1424677890331; Sun, 22 Feb 2015 23:51:30 -0800 (PST) Received: from localhost (p1070-ipngn5901marunouchi.tokyo.ocn.ne.jp. [153.162.80.70]) by mx.google.com with ESMTPSA id yf6sm34993036pab.26.2015.02.22.23.51.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Feb 2015 23:51:29 -0800 (PST) From: Takuya ASADA To: dev@dpdk.org Date: Mon, 23 Feb 2015 16:51:25 +0900 Message-Id: <1424677885-24171-1-git-send-email-syuu@cloudius-systems.com> X-Mailer: git-send-email 2.1.0 Subject: [dpdk-dev] [PATCH] virtio: Add default_txconf X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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": http://dpdk.org/browse/dpdk/tree/lib/librte_pmd_virtio/virtio_rxtx.c#n425 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 b3b5bb6..9c183bb 100644 --- a/lib/librte_pmd_virtio/virtio_ethdev.c +++ b/lib/librte_pmd_virtio/virtio_ethdev.c @@ -1188,6 +1188,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 + }; } /*