From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by dpdk.org (Postfix) with ESMTP id D48C18DA8 for ; Fri, 11 Sep 2015 18:32:57 +0200 (CEST) Received: by obbbh8 with SMTP id bh8so64781365obb.0 for ; Fri, 11 Sep 2015 09:32:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HgG8L/75pgL4zEO4/0WDrUIcsnOBVoWiexfHF94PvHk=; b=bSYkcx6VykSnLcSeueJF4oZ+YKrpcgoSETbeoR2IQVBOFjktYSpu8GjX5Ccz5zekzi y/UyrycLpOUwMZonJ7DCwr1WV0kcMcxCfihM3r4YAN+LNIkDHMv5VJKt0clfHIdHRRxL X3ufqeRqkvLDfe8dP1zsZ0nKr6BPWDOWzUy0VVDlI+Ic/yzqx2KBDfheCVr479JU3JZJ Od4q1w7+w93JtDkyBA0KF4zOqKuvrVGPXNv5/oUuaIDoBhlQmhfitGti9oa1OZJzyuNF hqP5IhspsGZTOA9p26Ela9KNWU1l6G80XH0zbal0ZQqPWk/wgtGlAKAx8lakocKpteKL hcRw== MIME-Version: 1.0 X-Received: by 10.182.213.68 with SMTP id nq4mr38448532obc.16.1441989177103; Fri, 11 Sep 2015 09:32:57 -0700 (PDT) Received: by 10.76.195.1 with HTTP; Fri, 11 Sep 2015 09:32:57 -0700 (PDT) Date: Fri, 11 Sep 2015 12:32:57 -0400 Message-ID: From: Kyle Larose To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] vhost-net stops sending to virito pmd -- already fixed? 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: , X-List-Received-Date: Fri, 11 Sep 2015 16:32:58 -0000 Hi all, I've been debugging an issue we see occasionally when under load. We have a non-DPDK linux-bridge host sending to our guest via vhost-net. The guest is running a DPDK 1.8 application using virtio PMDs. The symptoms of the problem are that host interfaces report all packets sent to the interface as being tx-discarded. The guest reports that no packets are received. Debugging the guest process, I found that the PMD thought that there were no entries queued for reception: $5 = {hw = 0x7f131fcfd600, mz = 0x7f1346200128, virtio_net_hdr_mz = 0x0, mpool = 0x7f131ff8a0c0, queue_id = 0, port_id = 1 '\001', vq_ring_virt_mem = 0x7f1339ebd000, vq_alignment = 4096, vq_ring_size = 12288, vq_ring_mem = 2081148928, vq_ring = {num = 256, desc = 0x7f1339ebd000, avail = 0x7f1339ebe000, used = 0x7f1339ebf000}, vq_free_cnt = 256, vq_nentries = 256, vq_queue_index = 0, vq_desc_head_idx = 33, vq_desc_tail_idx = 32, vq_used_cons_idx = 37409, vq_avail_idx = 37409, virtio_net_hdr_mem = 0, packets = 67473953, bytes = 4049880780, errors = 0, vq_descx = 0x7f131fcf41d0} (Basically, VIRTQUEUE_NUSED() was returning 0). This makes me suspect that the guest and host fell out of sync. Looking through the version tree for virtio_rxtx.c, I saw the following commit: http://dpdk.org/browse/dpdk/commit/lib/librte_pmd_virtio?id=8c09c20fb4cde76e53d87bd50acf2b441ecf6eb8 Does anybody know offhand if the issue fixed by that commit could be the root cause of what I am seeing? Thanks, Kyle