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 0D66AA0C41; Thu, 16 Sep 2021 18:16:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 808CF407FF; Thu, 16 Sep 2021 18:16:52 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 361714069E; Thu, 16 Sep 2021 18:16:51 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10109"; a="209692740" X-IronPort-AV: E=Sophos;i="5.85,298,1624345200"; d="scan'208";a="209692740" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2021 09:16:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,298,1624345200"; d="scan'208";a="530224300" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga004.fm.intel.com with ESMTP; 16 Sep 2021 09:16:49 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 16 Sep 2021 09:16:49 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 16 Sep 2021 09:16:48 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Thu, 16 Sep 2021 09:16:48 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.102) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Thu, 16 Sep 2021 09:16:48 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wydicbhh6blWsAd/Rk62FTwLh9K6zkT1qLnslKfcbJ4Nn6I5kRpFqXeEwPyQjzVS1KEIHO97fIdKJk9T0tMy0iwUyuMO++OQbjrqy72G6DTFN08ya5PgrWKGA2GoKelSxoKn8EgVy09hV8O96aImTUFV57PG1O4c6SmaBAPJl8nqW3rAwiaadfgfa6rK3941trf7gYjkxdQkw21EiQKnhT6hAV4lljUpCx5wLSiSD8SWJAHzBcE+0KQ0FbeDYH+eDz9UeJYnlFte2Qf3LDRFzyTc+o8mpgPTOMQg4g92AP52gnT4OjsLcbXc/1MfytNniUW7xaKtzRZNpj9NNVFBqQ== 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; bh=opeI0p5NWLF8GM+DeNN2+udVAarq8+Yg/aqyB7dyLpc=; b=lF0/sQ0DGDl6yF67GTwPw8ceCO4xNVN7XUy5oJsMVoDQ+mi/14rf144WrZLjCtanlIunLBtcRyCjq4Gti5HA86fP8rLuUm1m3vNmvLNgRFOPE70Q8PZUZRfx9IqWR6tRm1rpdIa1jIj5gwPYot+4F9qFVhgQ2Wt8lLBhLUkatdarp9ZtTyJt51301fDvR7QazcVN8Jwn4c70pBo7yaK1xjlrUZZYJCAXpI8cJnFpxjSzF+nUUeUF+Q9MTHTHkoQBzlrATOEPXfblQddVOIy3tXe67CYJ9Dp6TfPuJFdTrrrMiKNL5abgEC5jt5+OmBGwEbPX4327Sswnwm26lrRDxg== 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=opeI0p5NWLF8GM+DeNN2+udVAarq8+Yg/aqyB7dyLpc=; b=Lf0K/fbLZq7AduNS7AidUMA8jVBPGe2vu7DGB/hJMJ1IPZ+ySYyonSTThDHuB21NBqKaoKXNZcv17gXdla8/fMsDCppnhKFGKmvpR284f/A1L7jFRFmPLpn8G08Ksw072aq1ijMQ7qo6RyXvWeTBb3wmywD8r1iWZeMVBoEBF9o= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB5191.namprd11.prod.outlook.com (2603:10b6:510:3e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.16; Thu, 16 Sep 2021 16:16:46 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::747b:3a08:d1ec:31fc]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::747b:3a08:d1ec:31fc%5]) with mapi id 15.20.4523.016; Thu, 16 Sep 2021 16:16:46 +0000 To: "Zhang, Qi Z" , "chenqiming_huawei@163.com" , "dev@dpdk.org" CC: "Xing, Beilei" , "stable@dpdk.org" References: <20210823015034.6922-1-chenqiming_huawei@163.com> From: Ferruh Yigit X-User: ferruhy Message-ID: <6d42ca86-2eaa-98e3-427b-6e2e637eb06d@intel.com> Date: Thu, 16 Sep 2021 17:16:40 +0100 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB9PR06CA0019.eurprd06.prod.outlook.com (2603:10a6:10:1db::24) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by DB9PR06CA0019.eurprd06.prod.outlook.com (2603:10a6:10:1db::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14 via Frontend Transport; Thu, 16 Sep 2021 16:16:45 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 137dbcc3-bcc8-4cfd-fd61-08d9792d611c X-MS-TrafficTypeDiagnostic: PH0PR11MB5191: 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:972; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /X0mgruoXw4Bq6W4cU7rDdrePQyNfTTkijdSR2JZq09ITkuG3zMKDq2JUAp+hXeJ5y5/IUDdy6rBFM9DoFYQDyzNQ5VUK3KTzif97VOGpT9N/xYyMVlmn9uRoZ+RQbPI44z3MelXNsM9mUhLEklqCv0BHWdj+iot+ih05RiIKfyD7HrhQ8YZBrNYy6IoBAH02xgaUQ6jKXVUL0lmOtwrP0hzKF1c9hKBu5n50Q+UwPA/SL/YTTBbwVhOZ30l5P+Xp4UYa64qUZJSez0VF0txO0btb4R/5Nh8lf2HPInQlmFEnMpxRnpAwEdh8VQVzxoadIL003ue9A0zujsbw2qtA7pvNL7MQY3J+0+1xHYbi/P7M2dgywndX880wp6MdEC+WsIRXtGuooFnQgsWokvPbfdOdDHrm6LZG1cxtI+n9CZoTUXaXcB0iMlLQDx+WOa0GBVPNpZK5xQHE8XcEfihiHymfC2E1MmbD/p01FRDlNfgXR2a5I6NTyXoWbLl3bA3w217vn/cks7IJwrrhqJf7rBVuFiDhEM4Z45bxh2K/vKagDZo+5GN6lNKPIEpwT1fKq3BMuKZbWQVcuiJaIL2ApAwK3EZ06kzFMKxeOcKjG/h8ij6leQxtJfEwzTQt24dFgTXxiLaqH2OzpVT1pYoS4GqXapGjku207uSWepTFJU2F/McgWrhfA3PPRjXjhK6pAEx6Rm8/UZvqDnOypNRAQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39860400002)(396003)(136003)(366004)(376002)(110136005)(44832011)(478600001)(2906002)(36756003)(54906003)(6486002)(38100700002)(31686004)(4326008)(316002)(16576012)(6666004)(26005)(956004)(86362001)(53546011)(2616005)(186003)(5660300002)(8936002)(8676002)(66476007)(66556008)(66946007)(83380400001)(31696002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RUpiSjFBeVR3dUorNkJOMGc0eE93WlV2d3JYemlCRjhScEJGYkhQcTNyWCtP?= =?utf-8?B?ak05K0JFanNJTnJDdEcyNGIvUUo5eUdTYkh3c1poWHJ0aGZZcFBUV1FkWHFq?= =?utf-8?B?ajhnQ1V1eFM0ajZnQ0FVeExLWlRyeUsrTWF5ZnZqYzZaTzJOM1pxWHpTendj?= =?utf-8?B?VW5RUXpiQXJnMEZTeEhFRzQrRTVOQmNqcXpRb0h3Rzltb0VvajYrT3F0MUV1?= =?utf-8?B?ZHhpdGVPRkhxLzVKaThMN1NaSnNDWTltVFlrQ040TlNPd3RjS0QxSEFrcy9q?= =?utf-8?B?c3NxTDltV0FlbWVsQzFJWDlWaHVjVkNUd0lSaTljZDhsWFRRNXRJMUduaW42?= =?utf-8?B?Y29wM0tEdGU3Qi9a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=?utf-8?B?OXJJTFRMR1p0SUVCS1V6YkVJc3YxRWRYc0puKytqRE5aeWlYd2dLQ1ZCYUtu?= =?utf-8?B?RmlCaHFXcDJQazI5ZlhUR0NQdE1JY2VRcHFJRGJ4VDZHdlFMMnh6MWxqaFpF?= =?utf-8?B?dHBxTGc5VG1rTlNPdStDWUdsTWR1Zkw1dGJ4Sng2ZjlqdEg2b1V1bTFhbjI1?= =?utf-8?B?dEEvRFdlK3VlQjhaUTV1Qnd3cDZ4NkMvL3JscGZHR005MEl5bjJhQlJ4VS9U?= =?utf-8?B?cjFmenFDc2NZVUhoT2tCVHJFdXlKMXduUnZBWThCcEhkNVVLUnZxNXFKZFlu?= =?utf-8?B?Z1cvZHhPdWhtNVE1eG1xVGkwOXdqaTl6aDM4YkcrSCtyN3lxNjh0NU00cTdm?= =?utf-8?B?c3p5eVA0cTU0M2tsQ21FSWZZaEN6VFgxcitoOFJqOXlHUEh0eE9nN1dWN0ZE?= =?utf-8?B?WlZ4K00rNng4ZTU2Rlh0VlRBWHRVam5jejA4Zy85cFQyQkVJVktQa1BPZlAw?= =?utf-8?Q?76R6zz1HldzYWvlpugOvH0p3gqBgrsC7Ql40x4l?= X-MS-Exchange-CrossTenant-Network-Message-Id: 137dbcc3-bcc8-4cfd-fd61-08d9792d611c X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2021 16:16:46.1396 (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: P90vtPeMHFWIGFcBgp7J6WIKAeFo4XnqIN6iusc7xAr/bgs+C9PpC/z7qa3p37DG/GIitkS1bQY0bGvEg++G7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5191 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix mbuf leak 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" On 9/13/2021 3:29 AM, Zhang, Qi Z wrote: > > >> -----Original Message----- >> From: dev On Behalf Of >> chenqiming_huawei@163.com >> Sent: Monday, August 23, 2021 9:51 AM >> To: dev@dpdk.org >> Cc: Xing, Beilei ; Qiming Chen >> ; stable@dpdk.org >> Subject: [dpdk-dev] [PATCH] net/i40e: fix mbuf leak >> >> From: Qiming Chen >> >> A local test found that repeated port start and stop operations during the >> continuous SSE vector bufflist receiving process will cause the mbuf resource >> to run out. The final positioning is when the port is stopped, the mbuf of the >> pkt_first_seg pointer is not released. Resources lead. s/lead/leak/ Will update on next-net >> The patch scheme is to judge whether the pointer is empty when the port is >> stopped, and release the corresponding mbuf if it is not empty. >> >> Fixes: 5c9222058df7 ("i40e: move to drivers/net/") > > Fixes: 4861cde46116 ("i40e: new poll mode driver") > >> Cc: stable@dpdk.org >> >> Signed-off-by: Qiming Chen > > Acked-by: Qi Zhang > > Applied to dpdk-next-net-intel. > > Thanks > Qi > >