From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 0099F378B for ; Sun, 22 Mar 2015 13:09:00 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 22 Mar 2015 05:08:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,446,1422950400"; d="scan'208";a="695914279" Received: from pgsmsx108.gar.corp.intel.com ([10.221.44.103]) by fmsmga002.fm.intel.com with ESMTP; 22 Mar 2015 05:08:58 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by PGSMSX108.gar.corp.intel.com (10.221.44.103) with Microsoft SMTP Server (TLS) id 14.3.224.2; Sun, 22 Mar 2015 20:08:57 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.198]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.111]) with mapi id 14.03.0224.002; Sun, 22 Mar 2015 20:08:56 +0800 From: "Ouyang, Changchun" To: linhaifeng , "dev@dpdk.org" Thread-Topic: [PATCH v3] lib/librte_vhost: update used->idx when allocation of mbuf fails Thread-Index: AQHQY3jy+TivUkqv/EyOfiZaHypRip0oaqAQ Date: Sun, 22 Mar 2015 12:08:56 +0000 Message-ID: References: <1426902420-21492-1-git-send-email-haifeng.lin@huawei.com> In-Reply-To: <1426902420-21492-1-git-send-email-haifeng.lin@huawei.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: Sun, 22 Mar 2015 12:09:01 -0000 > -----Original Message----- > From: linhaifeng [mailto:haifeng.lin@huawei.com] > Sent: Saturday, March 21, 2015 9:47 AM > To: dev@dpdk.org > Cc: Ouyang, Changchun; Xie, Huawei > Subject: [PATCH v3] lib/librte_vhost: update used->idx when allocation of > mbuf fails >=20 > From: Linhaifeng >=20 > 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 packe= ts > but virtio_net thought vhost have not handle all packets and will not upd= ate > avail->idx. >=20 > Signed-off-by: Linhaifeng Acked-by: Changchun Ouyang