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 45DF1A0C4D; Mon, 6 Sep 2021 03:22:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF0C240E32; Mon, 6 Sep 2021 03:22:05 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 8406940C35; Mon, 6 Sep 2021 03:22:03 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10098"; a="280869156" X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="280869156" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2021 18:22:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="647565489" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga005.jf.intel.com with ESMTP; 05 Sep 2021 18:22:02 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) 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.2242.12; Sun, 5 Sep 2021 18:22:02 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Sun, 5 Sep 2021 18:22:02 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) 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.2242.10; Sun, 5 Sep 2021 18:22:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ABGH6uwIXovJhG+NUKZd79x+XseVN9GBuk2VyVslXstrXrKXwvtKJQtlzZEE5t9Q0NA1qa/6OALBZLTW+sZMz7i3yhgk2HmJ8CMmlqkZFTpAqaSpLJ4XWPYgP0L+ms9w9XGmae8yWHCXFQpPrEOx9eGGRdMhHV+pXM1ILyFu+8+owtsPaXWbi5fv1lFf1d1KD7N2YfS/QiI/gqxuLGjE2EtdmlmzjsdfyPNtx60LEM/zfsJkNMijThxcbX9P44LvOH/wlTU78RX/KMDTJGZWjvLr4A8+XoyHCeQVvAJ9P1Jr95/0+xW9nfd7zQ+MgsY6+DX+ixiJ20nxxiZnEWzCsA== 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=Yawfq7IE4zzzET3wIR8M0G4+mc6d3pp27m6KopaVafw=; b=gOqLGcckMHDh5AnYM5deumdi9KBCIt53rHBeE7LnUJG5ekZ699kKyFKR5kdMWFkmVByVypO980+7jJCl50kyxvJHmeWd1thBJJI8IeLBsX8k3ZU3Ig0z0e+gs3bEzqKZwqzgQDV9uyRz7uNrj2OG3ukhSV1zRCAisX6O9jAZVsW4j/nKehQRumSuz+1n+igZMFcOeSz9sRsQNYvFozmZRnkDG2tnrVKWoAAt/ZGQS7GRWB1avGUuGFX38oj0bmnqws9MuLHQHnP4QKRyGYS5Dx1Z/ThWlQWY/gp1ruUJjHMKk5tCaLu391wi9pk7C0uvb1UNtgLLBcmbIJ5Al/5d0w== 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=Yawfq7IE4zzzET3wIR8M0G4+mc6d3pp27m6KopaVafw=; b=WYN0DDFzjUq8Sz+9qNwgONq7j5541K+s9sTc81ETmVNNmSVFfAbrhn/jstZ96J4g2ALihaSBmyQfoJWpk/YUe2+0QNFt0/77B681foa4qc/cuC972orlrdN8pZjEv/43ZcvwOfKZgLLcQJ+JbvoamCqy/NcwauF58C1VxG15qmw= Received: from BN8PR11MB3795.namprd11.prod.outlook.com (2603:10b6:408:82::31) by BN6PR11MB1585.namprd11.prod.outlook.com (2603:10b6:405:d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.24; Mon, 6 Sep 2021 01:22:00 +0000 Received: from BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::dcf0:d9f6:8024:1879]) by BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::dcf0:d9f6:8024:1879%6]) with mapi id 15.20.4478.025; Mon, 6 Sep 2021 01:22:00 +0000 From: "Wang, Haiyue" To: Qiming Chen , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [PATCH v3] net/ixgbe: fix mbuf leak Thread-Index: AQHXnwJI60Lhwj9oUkWDLqGY7IwYyquWPRew Date: Mon, 6 Sep 2021 01:22:00 +0000 Message-ID: References: <20210831080630.5719-1-chenqiming_huawei@163.com> <20210901072237.9451-1-chenqiming_huawei@163.com> In-Reply-To: <20210901072237.9451-1-chenqiming_huawei@163.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: 163.com; dkim=none (message not signed) header.d=none;163.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 90212d09-b8ed-431d-cf9d-08d970d4ba1d x-ms-traffictypediagnostic: BN6PR11MB1585: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:192; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DUkfPKEeHLS3/Xv+lyd2OWubVbMgPpRMPyxQrubIKdmg6XsEO9+aVRnDZ3ycJsmt/4sg2lxVZemYpmpFuk1gkcvFv7QzIiFfny+DCsTFnszvJT5VEsSn1E416IEgnfvFv2Rot7U3VFDXq7dtNcZx7MOkC+ceF8dCQckSc+DvROGe7F/87WMG6tladU3ryhk0QYFbMhNZ5irpdSQRgb75KFd5fXxmOw1Ml5hTw7a9bqUcb2Yho06pyGMpIxVE0PJtF34oks/nN18yCqYWjzec/jNFmnR2XEswv+Z0gqwLeOikOkyQJsCL2ykzJtKOZYJrdKZyc0s2pWIwPfoUJOOGEkgTalTqTa8KAam/FBUdLoNaO2M7u4IO/c4ffqJ9R2hk8SB+F8FfzZsfaPnt/DuHn8wfYCKNbMuBSns1xymenf4eewxIBsjypLRvv1xHWxbN1VCfdGfTFZEf0r5MaXjbTmtdErTehl+LjtsSbyUF3t40KmpDTTPAPKUBLOPwBWHSNFs3ju49T0iTuboLnJHVLEm2tu9B+ngFxF013KaD3Fv9ML0wbJ92s7ZuhlbhMTPhnIvUOKc65b+c9UTcWBYUd6nzMuSdv+NOJOpat4J7/88u0d1yKG8B+OWFYLFGDWTnAM6b5N3jOVTKoXB8MiEY3MYPAV5DtCDGJ+447u6tSFoUWBHHjLLMDuSiItwkxbHv3PlRZDUyRo9Zo+byl0S9xA== 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:(4636009)(39860400002)(396003)(376002)(346002)(366004)(136003)(53546011)(6506007)(5660300002)(38070700005)(478600001)(71200400001)(316002)(38100700002)(83380400001)(110136005)(122000001)(4326008)(55016002)(2906002)(7696005)(9686003)(4744005)(33656002)(76116006)(8676002)(8936002)(66556008)(66446008)(64756008)(66476007)(66946007)(186003)(86362001)(26005)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?UrJaW8Lat1WF4G3BXxxGoeSTvBXI6ragak+t/EtA5RaEMiXatsT3If2rYyio?= =?us-ascii?Q?eZtrvA47wWuPwU6W+Y7CHwQC6XrtauCb/b9iJudEWaH8TraR57685ASAUFb7?= =?us-ascii?Q?0l8QHHK3SXUbjoGFsTWsWdw92XX6eijjytHMn6mW/edcy/P39UYCOmLCNvV+?= =?us-ascii?Q?hCsBpYTnb2CdC/u0etIqRrvzbcI8ZnjwwhIFCsOPUrNdYIxnfNRWwkQU6bsk?= =?us-ascii?Q?I8/HKqIQMdV6I6qYOF7XuC4rhx5FebyQM1DWJ8mr8L8uNDVriU/n6gCVv+mk?= =?us-ascii?Q?QcEYrMzSk8VqOajtDglZAflO572OxczWw6lwsryWA04gXSP6Cm/6euPo0ysB?= =?us-ascii?Q?GcLqv2ldL+Cz/8RomKzcCvxfolN61YtU1brZXdiHn3tjHXvH9mCYfIFOZa+J?= =?us-ascii?Q?E+RUTHzHfUD5VTEw6pDD4juCRiZmHUGxpqjtfvoaxhg04XRNc/iJLwA+EJGO?= =?us-ascii?Q?1LdS1rgoCyvSYCEvwIENIuVij792SZtg6woozUWzyg1bnNxWY0OYR9ZwB7gY?= =?us-ascii?Q?6l8DXkB2AyyO7GgxrJPntHB0Yb45Z15ADEsZ50vPlvjegSGRZWPv2V4A/aF4?= =?us-ascii?Q?WXcyg+2aKQ0CmJgeuVQdRtKDUox/R9bdxTkJ8QoY6i6/OJmYhrEMNZfalgj4?= =?us-ascii?Q?37rPFSVGEM7S3T7oUfnVUJMRsglNlLkPd2W8dKXCBxmetqAHeXa3MBv8qSc6?= =?us-ascii?Q?IE7UeQm4j4T6PpfPnFO+5vw9eq0xc3rxdt3sLMTadfNudNE9AeVSiEqmuv+/?= =?us-ascii?Q?MUkrujDbhasONnkqoWwk4Fzprr1bTxkShLPmCSt2T0mc4/fOenE4LVz2bJnv?= =?us-ascii?Q?LHL+fAYmoYdprw6F0zgCj0+0O6Ba8IfWQkwWY/NBFwJ742b+qbloMVTYUcko?= =?us-ascii?Q?2p0e6+WejYSj6eyjHOlj06zSv3UjJ62PqdX6e5a+DA9flqzYAHxyViWX/A0Q?= =?us-ascii?Q?s2+X9mBNBwe1n+/QL4Q8SzFupj64WgnsllPK0iapXQibSix66CKl/UOvxhwK?= =?us-ascii?Q?uvMp70R6IeFZI9TZb20SWhnmtDmoNR2lwngm9OUF9/CtfnnxCPDrsWldRSh+?= =?us-ascii?Q?zUXhp+BIWxIXL9wSwrbnaOc7mjdkzmVk78Do01ryAc8bgyFK/jOXUuPXsXJx?= =?us-ascii?Q?HD8ksgfjgQtgXcCUredRbFiaSWvxXuBLuhnqjpKbE9mM0EjCyq7VpupWVJe6?= =?us-ascii?Q?irOH9oEM4ioPGRzgnzrYH/ei31Ij0OexOXM7TVrILitlpN506aUX8p9b6cj3?= =?us-ascii?Q?W5JoJCjQH4LkJuWlCrAHFZPMBRHIKG/Y9NMePO0GC/MZ0yWM72ZEsjhYFcoM?= =?us-ascii?Q?+2UZq/6SflJpR93HdeT9BSSJ?= x-ms-exchange-transport-forked: True 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: 90212d09-b8ed-431d-cf9d-08d970d4ba1d X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Sep 2021 01:22:00.6789 (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: 3Vg8ylX5h9Ca8lERlWmD11QDfWw3oUYjIMt8bqp9w42/IdEDkQQ4+vRpg9KMqQEX5iSkHIoTlKLgtt+VCIKV3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1585 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3] net/ixgbe: 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" > -----Original Message----- > From: Qiming Chen > Sent: Wednesday, September 1, 2021 15:23 > To: dev@dpdk.org > Cc: Wang, Haiyue ; Qiming Chen ; stable@dpdk.org > Subject: [PATCH v3] net/ixgbe: fix mbuf leak >=20 > 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 leak. > 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. >=20 > Fixes: af75078fece3 ("first public release") > Cc: stable@dpdk.org >=20 > Signed-off-by: Qiming Chen > --- > v2: > Sync to stable@dpdk.org > v3: > Modify fixes commit > --- > drivers/net/ixgbe/ixgbe_rxtx.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 Acked-by: Haiyue Wang >=20 > -- > 2.30.1.windows.1