From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from huawei.com (szxga08-in.huawei.com [45.249.212.255]) by dpdk.org (Postfix) with ESMTP id 1A1C01B416; Tue, 16 Apr 2019 04:21:28 +0200 (CEST) Received: from DGGEMM401-HUB.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id D5067B610DACF3F5020F; Tue, 16 Apr 2019 10:05:23 +0800 (CST) Received: from DGGEMM423-HUB.china.huawei.com (10.1.198.40) by DGGEMM401-HUB.china.huawei.com (10.3.20.209) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 16 Apr 2019 10:05:23 +0800 Received: from DGGEMM533-MBX.china.huawei.com ([169.254.5.117]) by dggemm423-hub.china.huawei.com ([10.1.198.40]) with mapi id 14.03.0415.000; Tue, 16 Apr 2019 10:05:14 +0800 From: wangyunjian To: "Ananyev, Konstantin" , "dev@dpdk.org" CC: xudingke , "stable@dpdk.org" , "Lilijun (Jerry, Cloud Networking)" , "Zhang, Jerry" Thread-Topic: [dpdk-dev] [PATCH] net/i40e: fix crash when calling i40e_vsi_delete_mac Thread-Index: AQHU84W9Ysn89zvRCk2XcDzupTJyGKY+A/Nw Date: Tue, 16 Apr 2019 02:05:14 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60CAACBA7@DGGEMM533-MBX.china.huawei.com> References: <1555149291-12432-1-git-send-email-wangyunjian@huawei.com> <2601191342CEEE43887BDE71AB9772580148A97E3D@irsmsx105.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB9772580148A97E3D@irsmsx105.ger.corp.intel.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.177.24.66] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix crash when calling i40e_vsi_delete_mac 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, 16 Apr 2019 02:21:28 -0000 >=20 > That is not specific to i40e or macvlan filter. > If inside your app several threads concurrently access/modify NIC config, > then you need to provide some synchronization mechanism for them. > DPDK ethdev API (as most others) on itself doesn't provide any > synchronization, leaving it up to the upper layer to choose the most > appropriate one. > Konstantin Thanks. Now the lsc thread isn't controled by the upper layer. Do you have any idea to fix it? Thanks, Yunjian From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id C4FD7A00E6 for ; Tue, 16 Apr 2019 04:21:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EC6971B437; Tue, 16 Apr 2019 04:21:29 +0200 (CEST) Received: from huawei.com (szxga08-in.huawei.com [45.249.212.255]) by dpdk.org (Postfix) with ESMTP id 1A1C01B416; Tue, 16 Apr 2019 04:21:28 +0200 (CEST) Received: from DGGEMM401-HUB.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id D5067B610DACF3F5020F; Tue, 16 Apr 2019 10:05:23 +0800 (CST) Received: from DGGEMM423-HUB.china.huawei.com (10.1.198.40) by DGGEMM401-HUB.china.huawei.com (10.3.20.209) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 16 Apr 2019 10:05:23 +0800 Received: from DGGEMM533-MBX.china.huawei.com ([169.254.5.117]) by dggemm423-hub.china.huawei.com ([10.1.198.40]) with mapi id 14.03.0415.000; Tue, 16 Apr 2019 10:05:14 +0800 From: wangyunjian To: "Ananyev, Konstantin" , "dev@dpdk.org" CC: xudingke , "stable@dpdk.org" , "Lilijun (Jerry, Cloud Networking)" , "Zhang, Jerry" Thread-Topic: [dpdk-dev] [PATCH] net/i40e: fix crash when calling i40e_vsi_delete_mac Thread-Index: AQHU84W9Ysn89zvRCk2XcDzupTJyGKY+A/Nw Date: Tue, 16 Apr 2019 02:05:14 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60CAACBA7@DGGEMM533-MBX.china.huawei.com> References: <1555149291-12432-1-git-send-email-wangyunjian@huawei.com> <2601191342CEEE43887BDE71AB9772580148A97E3D@irsmsx105.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB9772580148A97E3D@irsmsx105.ger.corp.intel.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.177.24.66] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix crash when calling i40e_vsi_delete_mac 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" Message-ID: <20190416020514.ztdyqRkVEpC2NzRqYNJoTxEvQZ3jX7AA3g0fuHdwxmc@z> >=20 > That is not specific to i40e or macvlan filter. > If inside your app several threads concurrently access/modify NIC config, > then you need to provide some synchronization mechanism for them. > DPDK ethdev API (as most others) on itself doesn't provide any > synchronization, leaving it up to the upper layer to choose the most > appropriate one. > Konstantin Thanks. Now the lsc thread isn't controled by the upper layer. Do you have any idea to fix it? Thanks, Yunjian