From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by dpdk.org (Postfix) with ESMTP id CDDA37E6A for ; Fri, 27 Mar 2015 12:06:35 +0100 (CET) Received: by wibg7 with SMTP id g7so21968566wib.1 for ; Fri, 27 Mar 2015 04:06:35 -0700 (PDT) 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=CnoOK2n6X64xXVv9v/DmvKO8PgcWFIGRs8NNcWgS4j8=; b=deLQ3uVUdXooiK7QdMMYn0jY6TcnmW8NqJiRDZTnrhYwZuJ5fB+ej6VWmchTx6lWAe j2t1Sx/iTzD9rHmJwpHfsaNX2s3IJ5it3lj4sk8fCNnpxMOWFrcUEyvv2fLt0gtjLf4V qBhtDEkr1q/j0USzj7d/nFi0DJXjZInNWvkZmV2DmHoNKnl5PPtsroYhA8Uv9hN+PeZ0 3XikPOF/TlPcSHzYh2ddobRKI4awRM7vZjvgarLLNcqHdd26GK8lE68Utve/3gljMoEW ef/b2LXCAoR4ajsQSgPZujn3D1ZgVAZeBjgqfaUx4m5zkXFYrtI3q6+/9t2louD2mLjW IfwQ== X-Gm-Message-State: ALoCoQlpisAZXem9eaeRveYGINVf/OwuQmaNfdmHvrCHZJNC3q+sf98Cp++N4GJvbnyczc9XyaHg X-Received: by 10.180.105.2 with SMTP id gi2mr55051830wib.62.1427454395688; Fri, 27 Mar 2015 04:06:35 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id lg18sm2919785wic.23.2015.03.27.04.06.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Mar 2015 04:06:34 -0700 (PDT) From: Thomas Monjalon To: Linhaifeng Date: Fri, 27 Mar 2015 12:05:54 +0100 Message-ID: <1641490.bra5KqHitd@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: References: <1426902420-21492-1-git-send-email-haifeng.lin@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3] lib/librte_vhost: update used->idx when allocation of mbuf fails 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, 27 Mar 2015 11:06:36 -0000 > >> When failed to malloc buffer from mempool we just update last_used_idx > >> but not used->idx so after many times vhost thought have handle all packets > >> but virtio_net thought vhost have not handle all packets and will not update > >> avail->idx. > >> > >> Signed-off-by: Linhaifeng > > Acked-by: Changchun Ouyang > Acked-by: Huawei Xie Applied, thanks