From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 33F44432DC; Thu, 9 Nov 2023 01:26:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B86A54021F; Thu, 9 Nov 2023 01:26:35 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 6617C4013F; Thu, 9 Nov 2023 01:26:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699489593; x=1731025593; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Z0sKgXOvoU01ZXDdc47wJsSc1fZXpKgenxxuT9cAhNc=; b=VA+yybyee33aFRk5eiucqPiSbx0ZcGSiq2LR72KO3treFYuRvzz9nnNf wkIThUvVGKBX2sawIw7FKMgFISgCpEb0CognyHpOKkyiWj5xQYfBElcm9 vgifPvcGDd4EqNoxMYgJw1v2niXRPln7YZPngnT5dzPCx2EFRdnt6af06 F2XnOxVd5qq8V9zt2gSNKePNypjshrBFZZdC2f65vdhnq/GF7ZueCaqs7 JrOFE/66IXixB5Xe8EMJBQxZAsmm2JUTnao/5MirCjbI11I116S1jDk9r wbGw6jAZ85dAZCsxkuhy99tLgPwVaqTiPiGZjI/L900/H+/4NgV1qFBjq w==; X-IronPort-AV: E=McAfee;i="6600,9927,10888"; a="392760825" X-IronPort-AV: E=Sophos;i="6.03,287,1694761200"; d="scan'208";a="392760825" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2023 16:26:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10888"; a="739680735" X-IronPort-AV: E=Sophos;i="6.03,287,1694761200"; d="scan'208";a="739680735" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga006.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 08 Nov 2023 16:26:32 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 8 Nov 2023 16:26:31 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Wed, 8 Nov 2023 16:26:31 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.169) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Wed, 8 Nov 2023 16:26:30 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YlnKNNvhyRUCjSGItxWvGGGYPdo9XoW634iaOBtA5SQslEEanGxKDNpHfoBIaMmOwp3yOIqtr8yQZCfDrJ8IIW6omaN0l/tdz0RXVumwCxl1e3LAlc1xDS2FPM2mEXQcs6r5TLvQhRDHvqxMVzDpow2wFim7PYyFtozohdcKXnAFN0yQbBhU+3KBrQUts5hJk0JxhZdCbq7wsFTVV57Pqz3QIrWA7JbkzsgHE8Z2M8XZiQl0gFLN4iNHD8tAuj5TxdhRkOwNphJL6guDM+hj7WFJqHooFpX67FJjJ82eOiF0wxc1I55T+NOP2qxZIS7Zxkutrx5NHF0to/ilpn94Ow== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Z0sKgXOvoU01ZXDdc47wJsSc1fZXpKgenxxuT9cAhNc=; b=MjFS9bAL1gxLXDm6LM8AxCpm+Bs0EkEIU+SWAEYwKD9IBgxHtIKVgXoYw7JOfqwd0NkoDAe0D8XYkEWWq7jASYtY4tGo8TCgMeQe1402fv+TyTda4gFRqHAyti+XGMti3GdJLoSURzbRzhghO56c1O36spla2D3fkAnU61QPpgqj0zazaur2FccwEMwaHaNP4M7e4DBpRRese1JVDzuQeB3BCBKRhQCZK9EHyGILBOxZ9z8elAnjFkg4bjOc7R9MOnIeag7ke73ep8j/XOhU/rGgAwnRuDfKgfrqMj5X4CT6Kph2GUmawVbtTMnbtCBESxqJbym3rCADEUlkrbP0kg== 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 Received: from DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by DS7PR11MB6222.namprd11.prod.outlook.com (2603:10b6:8:99::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.18; Thu, 9 Nov 2023 00:26:28 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::62e2:b53a:6a07:f136]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::62e2:b53a:6a07:f136%6]) with mapi id 15.20.6954.024; Thu, 9 Nov 2023 00:26:28 +0000 From: "Zhang, Qi Z" To: "Ye, MingjinX" , "dev@dpdk.org" CC: "Yang, Qiming" , "Zhou, YidingX" , "stable@dpdk.org" Subject: RE: [PATCH v7] net/ice: fix crash on closing representor ports Thread-Topic: [PATCH v7] net/ice: fix crash on closing representor ports Thread-Index: AQHaEjmiiwcBboX1yEG03AiiRRjqvbBxIhhw Date: Thu, 9 Nov 2023 00:26:28 +0000 Message-ID: References: <20231107101223.225726-1-mingjinx.ye@intel.com> <20231108113934.341321-1-mingjinx.ye@intel.com> In-Reply-To: <20231108113934.341321-1-mingjinx.ye@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB5994:EE_|DS7PR11MB6222:EE_ x-ms-office365-filtering-correlation-id: a15b6c1b-5fd4-4e21-7f81-08dbe0ba8420 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 570Xj13N6Jw8jSEb2iIwzSaq04s+isHDe5XYThgFdTk5KDZtrPRCsuJC50BHw+c39hsmVeitvDrU1cBNjmPUYxWPJw/x/b7J0BkgEzEq/FbB64Dr+xWuPGiozRhYGBA18pDVyYqrXD0D0UBpJURQcJ3+cBf1keus//VnoW7kR6g9DDqLSsP7k+Amzn1moGXHgMFNZsjx1fjZ4kn+6hBDifAx5Fd8mS29d+pKeQQJXSAuw8dtPDPfQZk2PUHYeCAdI6OSyuhpHED3MbjAmitou6Y1lPM3HF2rM5uEdy0jPv5b90g1+UmVy0D8tIkAQeGlhkfWSlsze6PW/lDiSpCiM0VLG83uXxMiljZE0mQ552uTa91yEPKEU++p1CmDuKEpazi5a7GcOTBWclqRyx3v1YbCMN8ZTLtCDcFMkFyFlltJC+Jy8GHMyPcxMyFM+go8sx0pdJZCh+aOuz+Hd4Z9VjyLObetjto1rXGl/UEhjEa3ojh9a9xvKpfR/CWc0HNEUB39oeGVp+oaR45/s1Kh8mm0x/2+B+tkGQ1lzqS3dogsTda7+efJhRpIDGo4mHALtqAHW3Q1Mx1NHXApfcF7IIBfwUFcfulfQKi6vFyppYzX6wJwN8sj7uVQlsV/3Cxt x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5994.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(396003)(346002)(366004)(136003)(376002)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(110136005)(316002)(66446008)(66476007)(66946007)(54906003)(64756008)(76116006)(9686003)(53546011)(71200400001)(6506007)(7696005)(26005)(478600001)(38100700002)(82960400001)(83380400001)(122000001)(33656002)(86362001)(38070700009)(66556008)(4744005)(52536014)(41300700001)(2906002)(55016003)(5660300002)(8936002)(8676002)(450100002)(4326008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HI0TEzTcUesJWBbZHkYMbmOgYeVYukdC1aUBzj90a51mGiDMg/0RLhquyakM?= =?us-ascii?Q?GIJjCpBR7NO078Wjr2oBi/52Jp2/L8VENtMrMCIEt93pnUp5Wpu/aNXbJMjE?= =?us-ascii?Q?8N3vUL6DozRXEQnp6OZnAXlxnJAMPrqVaQSyA3McuEvZbUggqMw40jsFnhtk?= =?us-ascii?Q?uiSPw7J259h6PeNNaJY/nDABHQH/jTO7MFZNQRDuzIvF9aqPaC/ppMHW5wur?= =?us-ascii?Q?ZnOrb2FVr2WUmEEgJjF1JUudVGMufJSlv74Ct+beVKiZ07dPlWOy2IKd/tLb?= =?us-ascii?Q?amNSvHYby5Z9/vLZ3HGKEFOnLNUmFyV2zaZWwM92JDW/Tee2q4DrVxpebWTF?= =?us-ascii?Q?Fi5FAIHNsKi+XUUAZaGW6ENHcA2xmkTZI1nHWEVL2quScOgn1qiK10ksYqh7?= =?us-ascii?Q?c6ERAYKzPdLFbU7W+8vbIEz8WS2Y4gYMr1AHnOmTqFbM4zvXTsucGjxYoyej?= =?us-ascii?Q?zAJK4TyShX1utlF69ey1HzvnR+tkAFqHDFZRFB24hSr+0BkR3UigaOy6C4p/?= =?us-ascii?Q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CB0fd9IhuwMGbWFPQjhXloKVvkZDBD3?= =?us-ascii?Q?fOVvntMcErUHK8PeJJcZsV1RY0YgVDb7LmpW/hZWlGISCku2vHLZqcxTEx8Y?= =?us-ascii?Q?d5yE5n9vZU4rv9qQdMVTbg3FdZpoCqHop5n9G+26VwD8KYqTG2a7OR1bCvdE?= =?us-ascii?Q?F2U8CccTpQiy2gJ0R5v0+4OhMaOl0BtLtPC0YDTU?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5994.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a15b6c1b-5fd4-4e21-7f81-08dbe0ba8420 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Nov 2023 00:26:28.8041 (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: G38Kreen8t/1jEZw52C5U2wqXHSq/CrqoYXEU7eU4bEEji6MuK20rvO2s8IoOgZfak8sH1e0nW6awmXkKnADng== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6222 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Ye, MingjinX > Sent: Wednesday, November 8, 2023 7:40 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Zhou, YidingX > ; Ye, MingjinX ; > stable@dpdk.org; Zhang, Qi Z > Subject: [PATCH v7] net/ice: fix crash on closing representor ports >=20 > The data resource in struct rte_eth_dev is cleared and points to NULL whe= n > the DCF port is closed. >=20 > If the DCF representor port is closed after the DCF port is closed, a > segmentation fault occurs because the representor port accesses the data > resource released by the DCF port. >=20 > This patch fixes this issue by synchronizing the state of DCF ports and > representor ports to the peer in real time when their state changes. >=20 > Fixes: c7e1a1a3bfeb ("net/ice: refactor DCF VLAN handling") > Cc: stable@dpdk.org >=20 > Signed-off-by: Mingjin Ye Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi