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 5437DA0C47; Tue, 6 Jul 2021 15:24:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E879141262; Tue, 6 Jul 2021 15:24:56 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 590824120E; Tue, 6 Jul 2021 15:24:55 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10036"; a="188793365" X-IronPort-AV: E=Sophos;i="5.83,328,1616482800"; d="scan'208";a="188793365" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2021 06:24:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,328,1616482800"; d="scan'208";a="491322260" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga001.jf.intel.com with ESMTP; 06 Jul 2021 06:24:51 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 6 Jul 2021 06:24:47 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 6 Jul 2021 06:24:47 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Tue, 6 Jul 2021 06:24:47 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.103) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Tue, 6 Jul 2021 06:24:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jezGa6MfYBOsL+/GSI+aXUizGayIueqTgGlua49c3pgHwug+U6lQe7v8BrRgV+Ufc7RSg+v9ARNw5SUQJVT1UpB1Yewhvv46Cn0oj669JGH6f3idG2HRMXb8vBWNuZn93c6PbNh2t2Qx2bZFYBlht66tZjjKyMiXBU44OTGV12lauXbc09BjEmnrQ0A0kCguSujGj3BfPhkztVcp59Tk4gkLj2EiOwxS1DR9qLgJUghFDb5Qt0lyZi9FrIBdJi4JshZpS98QfsFuDF2rTtwRp6SFWnX6mVpGrY9EmwbkpWZAL4c5C57Y1dkWXtw/pc+zHIywRb/u1SCq17KT7vrbzQ== 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=0pECZX0oHk2wXpwNnIL7ti72ph53+g44BuAbfNFrX4o=; b=jCBq4zB3ojoLqe6WP9DSI3Iag8hLxXr73+44TSzCs0pOdUSfSdb2D0NoWfpRD9aZoUdO1rJsVCLQpkmJg73601/8bhtSayfnNU9u1HP7qz+EojeZNtADFRE7Nut+ZYtDA0nwohO4N0n5B1PKRJVHm+46FLb/YhMQhEapEsMkDzF9FZecml7OD4xFbBnNbwm6bSyDWHdyPAV2Lp/hBc8LZ0bwfp1yc8G+W3p5pVShXSX2GBAR9/PffIDAGqPgOW6HZ8AcKdhxp7pI8SWyhCy+9QdPzyPnoVxHVrvcdE2SvtU0AnPxBlQiD9yx+SlbicxiVRJKE/GjGk4yZn7B1++QSw== 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=0pECZX0oHk2wXpwNnIL7ti72ph53+g44BuAbfNFrX4o=; b=sSlaX54A4fVkXCLZv7RIKb2C+HcYE90xRLPyoa3Eo/8sY3/ZXJbxymWleEXobMEXVr7hGHuo4K+a3Ijouw9yy1ohu+ruyV4x46I+VSDcjOM45fXuEjOj75rtFnkw1f7cQlACwrtAu5YFClTRezSjoy6XdDRA3ZbUk5l+XvQ40Fw= Received: from BN8PR11MB3795.namprd11.prod.outlook.com (2603:10b6:408:82::31) by BN0PR11MB5742.namprd11.prod.outlook.com (2603:10b6:408:162::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.23; Tue, 6 Jul 2021 13:24:43 +0000 Received: from BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::8807:6661:e425:102]) by BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::8807:6661:e425:102%7]) with mapi id 15.20.4287.033; Tue, 6 Jul 2021 13:24:43 +0000 From: "Wang, Haiyue" To: David Marchand , "dev@dpdk.org" CC: "stable@dpdk.org" , "Wu, Jingjing" , "Xing, Beilei" , "Min Hu (Connor)" , Yisen Zhuang , "Lijun Ou" , "Yang, Qiming" , "Zhang, Qi Z" , "Zhang, Helin" , "Yigit, Ferruh" , "Lu, Wenzhuo" , Huisong Li , Chunsong Feng , "Wei Hu (Xavier)" , Hao Chen Thread-Topic: [dpdk-stable] [PATCH] drivers: fix memzone allocations for DMA memory Thread-Index: AQHXckUVELUEFh68U0yJxMivCqV2Has1782Q Date: Tue, 6 Jul 2021 13:24:43 +0000 Message-ID: References: <20210706085750.5453-1-david.marchand@redhat.com> In-Reply-To: <20210706085750.5453-1-david.marchand@redhat.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.0.76 authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 43b304e0-387a-4482-e7ce-08d940816ad8 x-ms-traffictypediagnostic: BN0PR11MB5742: 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:3826; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: So4swpFLQ9c1lcUMYd/yfv2JzUGaDLkFIXfIrV0cUCENP63C4A88Jec80Szso162yvrXtnshRkotsJ0CTBiHkoUrvI3UWdLIMVaPHsL8ZSn86fwUhBjvtihDD0+u2H0eWcvkqJJl4aLW7hbRP2beSzvMIQfjZz82bDg7wFEVBiD2EFfbivV7Lbnp9Lthcc5qS8p7B+PD+DkS3D0EHszl+AlpQ4v5MEuMpYmMQVf9738daM9HunA1wi1A7rxhQ/NrDcWE7fNOt0WINAaxjg4bTMc36WkKxIGsEu1Cpl2gm0wz2aLDrwsIOaRaSR0yJfT+VoDFHozKkT6o59cxA+ayO41952Kv//jKkxC+ms9ufh51bL/F93Gqeiy6d4AG8JuLYgxKj2xO4KlQelv6PekuwITgtp8dW6TrLU5sy+Jo2p2a4jDzxGM9/t4NC7hL03YNrycvg/McRDU+/Li506c5bpkB5ktWzkkYTLLb+9/NY2SxTKKmE3GSK66j8oCZXaAxnrUT3lkYI6Dok8FNtVoiV43WRDnz4PNyfWMaoK3GHVjUDXyX48CCeo9QGTJLS/kHK1PGh3GU64VhMJUfoo9pUyEVrPpZfNxVU8Y1t2TQp4kV4qQL07GD2yJygwckwE3kyghzHPRHqlYCZVUeqrAiDA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN8PR11MB3795.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(346002)(396003)(376002)(366004)(136003)(186003)(9686003)(76116006)(66556008)(53546011)(66946007)(66476007)(38100700002)(86362001)(26005)(5660300002)(122000001)(2906002)(478600001)(52536014)(6506007)(64756008)(66446008)(8676002)(71200400001)(4326008)(54906003)(7416002)(110136005)(83380400001)(33656002)(316002)(7696005)(55016002)(8936002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?fepA3eICIZ3BOiDrx3jmG24ZhfMMC2o/Md7ihlj7x4Avj1exwV2c6lzOOyHy?= =?us-ascii?Q?DT47Hk8QThDlKUZ/cce36cgt0xA5/7ao3/M34H0P0BcgJ5ZnbE2WcNnqyG9e?= =?us-ascii?Q?/cc7owNLtJq7IUKJDnkic9f8PrvU5pTLSY5g9MlLO4+aGh2SoIyL9v8eCTjJ?= =?us-ascii?Q?O7jmc6ZeFgiONbtbVzVNtUhBu8XpcLVAgRHq5U0DTLINUo7C8VFKMHCYl8dv?= =?us-ascii?Q?LunKlCNApSaoIq3AfuKV3owcZpWaWShaKxRScffGayQS9j0Z9AR2aaJmzjfP?= =?us-ascii?Q?dhQgL6/wyODD4rfc5CkaJiFO9kLyO8uQ8kiX1Mi1kDoOUeVGwTQRO9hRfHPh?= =?us-ascii?Q?rwV+bKmqJRA4LTh/BxWPKDwFvpaq01ZoFl6nrnTlZtTZ/aSOVqoo/ZB3bRvI?= =?us-ascii?Q?hDhNjxmNcKFltpDWpnWxbu1dtF0fgazEDMF4QHrTs248P5XXh+DX//Dr/Srh?= =?us-ascii?Q?OBKYJmBqG5tILXa01WCxAldQJXJLem2XdRYqnA3vlK9T/ySP1h/rMCgtlsqE?= =?us-ascii?Q?oztnlfvDVeGem+/CPlIU5ny4a5xSNGFedgB02/23Fk4le9xvhbh82PwkXP0o?= =?us-ascii?Q?EaoCq6DEg43u4aUn+/4fTEDx2q9Q3ui519tHeu+EvxgMb6qnczm/3aDR2zei?= =?us-ascii?Q?2R7fv/XDlbqRpP9R8Wq63a5SvG9wopN5txaoDIjFPAzMzdnPpQ3cJwGVcsYg?= =?us-ascii?Q?UWAIp/gsudLle2EvBd9ADAH12xAleoHMYqRSQWIgDVV/TrFRIBllL73O6Kxo?= =?us-ascii?Q?HIoXNfaHlB5CGUN5JbJQ5JipFewEJAuuzPpH9iu68njCJa6hCT6uEfnkuNnH?= =?us-ascii?Q?xF4f2WuvH9Rw6U3Ct82SlJwhFQVq3LzDdxhqbkQyQrRkdFPM/80oFwfh8z03?= =?us-ascii?Q?aZdFUbC0r4/8yo9gtOc+pkAybK9rjVVwf2d1Ejvqq/oELkT9aIMydRa6jqmP?= =?us-ascii?Q?MyQo+ATsDTqFjxTnN+ntSxhV0wKDQnEWVaLaMl6yFrmUjpuMMIEm2qhzxjlA?= =?us-ascii?Q?c8MukEu2KL2mGlWzcqHRxZtWN1qjXKmZOcI5wN48B+3Xb8UnzALuBGMx7sZx?= =?us-ascii?Q?CRTgR39kw/5kzligaFN1VkW3I8IhANhSJz7hHxnklOfiudXsHhKrYWaMpozN?= =?us-ascii?Q?HonvKm0FmnY9AsD1RKH2DZtHOW0Q6yWMBwp62oJYH/dxHhmjwf8ruu8QxkOS?= =?us-ascii?Q?zkthSr32vlTFspqF4craXBso43yNVA/Jb7Hi+LqUFyLiPFYa5QNUsKu5mHEW?= =?us-ascii?Q?hs2sg7OFAjAE0be1HBxQC11IorpyTk97NWVN9YbgqWY5WWnS9qC6uwJIP+vs?= =?us-ascii?Q?ZBWndC7Lor2YjvPEgRH/L5OG?= 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: BN8PR11MB3795.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 43b304e0-387a-4482-e7ce-08d940816ad8 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jul 2021 13:24:43.5395 (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: Yn5ythngM5PvpdHJpamu19dRyaNQDJWYtbz+YTKTvKkaGl2RyfrdquX1Cp3gOck4bIizrA5IxdNbv71BdYQMgw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR11MB5742 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH] drivers: fix memzone allocations for DMA memory 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 Sender: "dev" > -----Original Message----- > From: stable On Behalf Of David Marchand > Sent: Tuesday, July 6, 2021 16:58 > To: dev@dpdk.org > Cc: stable@dpdk.org; Wu, Jingjing ; Xing, Beilei <= beilei.xing@intel.com>; Min > Hu (Connor) ; Yisen Zhuang ;= Lijun Ou > ; Yang, Qiming ; Zhang, Qi Z <= qi.z.zhang@intel.com>; Zhang, > Helin ; Yigit, Ferruh ; Lu= , Wenzhuo > ; Huisong Li ; Chunsong Feng = ; > Wei Hu (Xavier) ; Hao Chen > Subject: [dpdk-stable] [PATCH] drivers: fix memzone allocations for DMA m= emory >=20 > Caught by code review. >=20 > Using a random name for memzone allocations can result in init failures > in the unlikely case that a name collision occurs. > Use a simple sequential generator on 64 bits. >=20 > Fixes: 3f50f072ff06 ("i40e: fix memzone freeing") > Fixes: 22b123a36d07 ("net/avf: initialize PMD") > Fixes: 5f0978e96220 ("net/ice/base: add OS specific implementation") > Fixes: 737f30e1c3ab ("net/hns3: support command interface with firmware") > Cc: stable@dpdk.org >=20 > Signed-off-by: David Marchand > --- > drivers/common/iavf/iavf_impl.c | 5 +++-- > drivers/net/hns3/hns3_cmd.c | 4 +++- > drivers/net/i40e/i40e_ethdev.c | 4 +++- > drivers/net/ice/base/ice_osdep.h | 5 +++-- > 4 files changed, 12 insertions(+), 6 deletions(-) >=20 Acked-by: Haiyue Wang > -- > 2.23.0