From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f54.google.com (mail-oi0-f54.google.com [209.85.218.54]) by dpdk.org (Postfix) with ESMTP id 06CBAFAE6 for ; Tue, 20 Dec 2016 06:59:33 +0100 (CET) Received: by mail-oi0-f54.google.com with SMTP id b126so168365595oia.2 for ; Mon, 19 Dec 2016 21:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ehlsCc5cRloU2PDBmMPNgz//yKC4+S1mqL5UJIpTyCs=; b=oTJHnV5pRbCtsuCTI5LSr4xeIILfPS593l9Q0a5zeFTnNweIeGEaKjfOAtljcG7Jcy u2rQP9G8OCdiC10CBWqB+e02ZOcaLV/mIF0E7O4cta9rn0KGKULejNmnHTC8eAa8pnAw ODKGJxrHC6hPagszg+E03AqJzoxQH3Sqb5zQtkAh/Y2CtNa7zGJ8h2J0V6q0G0vxqt8S fbxzs10L78njYgtZVtYcyqwCkBeeIaw+L2bm06YkJXzEcTtjl6uUDaqRfy+3qnB85Pr7 wwap1KVQbLNLi+MWKVQ0EC8jbnLquBseXenIGCwZuqft/2fSAZbN8lJ9dSfwhTbqQYs4 EwYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ehlsCc5cRloU2PDBmMPNgz//yKC4+S1mqL5UJIpTyCs=; b=nN875C5C2I5xzOQQo1DdSOddnKX6nEcLv66P/c/ScA5WuYfFFHmwIHFONmE+ypFFKH SafF39nGiJAmC6A/f14nETmKaJ8Eu600KC0KENg3dy27aB+yFN0qIwMLDhryKJj2y8x+ cvmg0kiExo39fDp+KyP386qLlFt3DcbYFPQCYIDu7DyGtzpoGfhGHbxUEg/nPuh5QdVm Bs6mRR6A9b6GlRAO+0lvspn9wxwnjL6Yp9DO1yBLUu38GNXKacDorKRQsHI9msU0QP3s PEcZMXxL7sBDEqf+sNm7vaYq4RZDM4mKXquKewFlExTSr2rs/D2qO/dxRVKA/0aKnhnz MEBA== X-Gm-Message-State: AIkVDXJaYZjWhAF1pf+rLsE0CTBdRe3s2rQcUU5IZVNX3j9vCR/R3DCYQSHPEKwejcrIfIJXeoBCRLjPE2qB2g== X-Received: by 10.157.56.240 with SMTP id k45mr7357777ote.129.1482213573385; Mon, 19 Dec 2016 21:59:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.222.231 with HTTP; Mon, 19 Dec 2016 21:59:33 -0800 (PST) From: Gopakumar Choorakkot Edakkunni Date: Mon, 19 Dec 2016 21:59:33 -0800 Message-ID: To: huawei.xie@intel.com, dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Bug in virtqueue_dequeue_burst_rx() X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 05:59:34 -0000 While I was testing virtio with ubuntu 14.04 kvm as host and dpdk16.07 linux as guest, quite often I have seen that I get into a situation where virtio_recv_mergeable_pkts() gets into a forever loop, after sending traffic for a while. In the below API, I see that it clearly leads to a while loop, I am not quite familiar with virtio or mergeable buffers, so thought of checking with dpdk alias on the intent here. I checked the linux kernel virtio_net.c file which does the similar mergeable recieve, and the kernel code breaks out in case of error. Shouldnt dpdk be breaking out of here on error instead of continue ? virtio_recv_mergeable_pkts() { while (i < nb_used) { * num = virtqueue_dequeue_burst_rx(rxvq, rcv_pkts, len, 1);* * if (num != 1)* * continue;* }