From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 427AFA053A; Mon, 27 Jul 2020 15:55:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0F4651BFD9; Mon, 27 Jul 2020 15:55:05 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 9B1731BFCF for ; Mon, 27 Jul 2020 15:55:03 +0200 (CEST) IronPort-SDR: 92WE0qq6LmZ7eUPjzyJSEkDKEFHHcrvp+XTktaqueDSm9Xgd9wu7oiXKn3iHyUmamvpI/xnm+X b9wepqX+GhHQ== X-IronPort-AV: E=McAfee;i="6000,8403,9694"; a="150192155" X-IronPort-AV: E=Sophos;i="5.75,402,1589266800"; d="scan'208";a="150192155" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2020 06:55:02 -0700 IronPort-SDR: LS2kMtk0A8mriNnk0U+/PHvNzFwZ2O02Y0H+RZ0GodbW9XVlGvFiCZnUu8feqz7zz+fluB9naH aG1P9ZeG/GZw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,402,1589266800"; d="scan'208";a="320037359" Received: from orsmsx102.amr.corp.intel.com ([10.22.225.129]) by orsmga008.jf.intel.com with ESMTP; 27 Jul 2020 06:55:02 -0700 Received: from orsmsx158.amr.corp.intel.com (10.22.240.20) by ORSMSX102.amr.corp.intel.com (10.22.225.129) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Jul 2020 06:55:02 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by ORSMSX158.amr.corp.intel.com (10.22.240.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Jul 2020 06:55:01 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.102) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Jul 2020 06:55:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jMOeMpSYYf4XQkfCh+Sy2h8NdtBcP+UP0O017zyNgUjgy/C8KtP6Va8Rn2+7Fm7IPWKCjA7a6MfxXgFvPeefe1t5SEVI/7vhKHK4SxbHQlGRohxzZk7K1OPngIYQLaEk+JlybhK7nIuS8w42uNa8cxf/okSj01DYaZzcqUAZ0uDic42bQRUPEsJ/14a8bc7fU5Dsg9FA+75Oi7zgTKpqGYNJQBw27zvq+bYWFlZwqVxLN14ZH2WC09XiaXxj61sb8o0RvnwvRBnPglmB2XwtJGncKEtCbO7IjVEZ20IUhmV1pdCGKoxaphp4E88y/scZuDAt5ohLWJD3gb1RBtH4Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zoWfIScJxS6BjWuq+oPhM/s0f0Xf/ICLf+GwTfeV03c=; b=Dy15hAKrjeKq6bcnC/hCngTLq8WXOdaeLDrXjdAkTiec1L1kH8l1OewrJty1PlDtRN8zEMsEaEY9q8edgjsOGFbI3wA4MEZNTDIXVASWwfSpR7ED7F40hP4nu4rUesVx28XmTskC3QkBXvJgDU9fPrlangkq9pm6TsQ95xTxJCcxCDoIFeJGkM50f0UsnOR2IoRno/e+X3Nfa9Bioh24RwmT16PD90sbAHF2wmlkit1DtXUuCQVP1Kd7q1nTfYQKRJbMbhNWYDh98XaXMl1ZU01wF1GwGSsYYFI+Gh8spZTzGZYrFyK9vJt/ePf1nXCmScMgwwCGKDX8ZRpqY9R1zg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zoWfIScJxS6BjWuq+oPhM/s0f0Xf/ICLf+GwTfeV03c=; b=xDuABxgL3fZa2gioRL8aQIMQOG96/i2Y8wjSv4iX78nxLINsZR1e4nsoF35cD9UEGkM8I7/Dfn7ykyL4jFs+fVsjE4G6BQ8f7SMVHYICqIBOzl9WaqwUrx6t7YOBea4V7cmhFBhNrR8obUE9+jNc7NTtc4b8XJ51ZV8vynFrxQc= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB4726.namprd11.prod.outlook.com (2603:10b6:208:269::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.24; Mon, 27 Jul 2020 13:54:59 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::b898:36f5:61cb:42ca]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::b898:36f5:61cb:42ca%7]) with mapi id 15.20.3216.033; Mon, 27 Jul 2020 13:54:59 +0000 From: "Xia, Chenbo" To: Maxime Coquelin , "dev@dpdk.org" , "matan@mellanox.com" , "Liu, Yong" , "Wang, Yinan" CC: "thomas@monjalon.net" , "Yigit, Ferruh" , "david.marchand@redhat.com" Thread-Topic: [PATCH 2/2] net/vhost: fix queue update Thread-Index: AQHWYPKlO8RveUEE1EiZGTcLm4Tnh6kbdtgw Date: Mon, 27 Jul 2020 13:54:59 +0000 Message-ID: References: <20200723130854.322771-1-maxime.coquelin@redhat.com> <20200723130854.322771-3-maxime.coquelin@redhat.com> In-Reply-To: <20200723130854.322771-3-maxime.coquelin@redhat.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.193] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 472a0d0b-1400-417a-4940-08d83234a73b x-ms-traffictypediagnostic: MN2PR11MB4726: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tcC7KyOH1xu7Pgl6vP/5pJ8bnPJj0zweXfZmY0RuzIeSmU4VqUhkc8HEOHXzwJ+9wWPUDZSPbyUMoT3jmjAIcrqPjKD0C4vtniFyQxN/h9mudZIEI/TDAkm6WtRUc6B+QWOyQmzkORja0iJ+TicW1gtKgsSEz7xridNkba60lAFblW98If1qr9D0WtfsQKvtibthc/TQxDqkX8LkVxiRpQSk35eCzpKZo/spKXQ3wK/bxFKA2oxlKcVAZL6RHow5o5yHqkB7oB+7Kqz8F0YuXTYrpkXnksMO9ckl8iTSQBZmyt9T8gybuwbYbUqJD5UuUSsmGFU3S1Eh+vtiQ4SKKA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(366004)(346002)(376002)(136003)(396003)(55016002)(9686003)(316002)(54906003)(52536014)(53546011)(6506007)(15650500001)(86362001)(71200400001)(83380400001)(110136005)(8936002)(66556008)(8676002)(5660300002)(478600001)(6636002)(4326008)(33656002)(26005)(76116006)(2906002)(64756008)(66446008)(66476007)(66946007)(7696005)(186003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: xNlBY6OP2UWtL8ZoD/EM1mtcjpF9fPwfCMI5vXos/ZoIwoO4QsNDCpF8d93v9ltT6XgTW9kSwotFzHukoJRrD8YYmQC5h78dbd0aHbJWm7q2wlJDoIuE/25l8yPXURPDiBcYgq3hp72a4Y8X0LMSX5xehZSlPlmE9MvwPD9SgMupa/wDqa6O/vGeVnJY5159OIUyo7u18IHJlfitKli7Ukq4o2iPoHSJBLLjL0ZYF830ICo6C0uJyi/gzBTHh8g5QasQGJBJd3mHF+uLTSDKmpa3hZHfEgzzfSbSnIeV2ANlz/PSQZGJIFR8d2C8E6w+fwbrxQxbsZvsFT2G44dVjLb+61iH9eQzqQ9dCt3XqL8qI2vZmbTX1S2fAiV7dS0LVz7Axg12yLJfAEkyr9SOQA+qaKxaZNtgdZvA1mM6q/k4Q5FBku9XxyDvB97ZZRY0O6+m3cMq5alPaFpfjrydC379qTnkGCZNS3m4hgUVec5+3/cn3g89KDEOmwEuNtWU Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 472a0d0b-1400-417a-4940-08d83234a73b X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jul 2020 13:54:59.7564 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: btn6HbSEsDB9HFQTeNY/f60j4/SwQE/5O532o83X+wUTmZRCzWMLoa6SWY4Z7Sgk73tpdN5qSHqREbiFlWLq5A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4726 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 2/2] net/vhost: fix queue update 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SGkgTWF4aW1lLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1heGlt ZSBDb3F1ZWxpbiA8bWF4aW1lLmNvcXVlbGluQHJlZGhhdC5jb20+DQo+IFNlbnQ6IFRodXJzZGF5 LCBKdWx5IDIzLCAyMDIwIDk6MDkgUE0NCj4gVG86IGRldkBkcGRrLm9yZzsgbWF0YW5AbWVsbGFu b3guY29tOyBYaWEsIENoZW5ibw0KPiA8Y2hlbmJvLnhpYUBpbnRlbC5jb20+OyBMaXUsIFlvbmcg PHlvbmcubGl1QGludGVsLmNvbT47IFdhbmcsIFlpbmFuDQo+IDx5aW5hbi53YW5nQGludGVsLmNv bT4NCj4gQ2M6IHRob21hc0Btb25qYWxvbi5uZXQ7IFlpZ2l0LCBGZXJydWggPGZlcnJ1aC55aWdp dEBpbnRlbC5jb20+Ow0KPiBkYXZpZC5tYXJjaGFuZEByZWRoYXQuY29tOyBNYXhpbWUgQ29xdWVs aW4NCj4gPG1heGltZS5jb3F1ZWxpbkByZWRoYXQuY29tPg0KPiBTdWJqZWN0OiBbUEFUQ0ggMi8y XSBuZXQvdmhvc3Q6IGZpeCBxdWV1ZSB1cGRhdGUNCj4gDQo+IE5vdyB0aGF0IHRoZSB2aG9zdCBs aWJyYXJ5IHNhdmVzIHRoZSBndWVzdCBub3RpZmljYXRpb25zIGVuYWJsZW1lbnQgdmFsdWUgaW4g aXRzDQo+IHZpcnRxdWV1ZXMgbWV0YWRhdGEsIGl0IGlzIG5vdCBuZWNlc3NhcnkgdG8gZG8gaXQg aW4gdGhlIHZyaW5nX3N0YXRlX2NoYW5nZWQNCj4gY2FsbGJhY2suDQo+IA0KPiBPbmUgZWZmZWN0 IG9mIHRoZSBwYXRjaCBpcyBhb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