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 BBC11A0C46; Tue, 31 Aug 2021 08:04:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9253640687; Tue, 31 Aug 2021 08:04:31 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 2E3A840141 for ; Tue, 31 Aug 2021 08:04:30 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10092"; a="279418229" X-IronPort-AV: E=Sophos;i="5.84,365,1620716400"; d="scan'208";a="279418229" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2021 23:04:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,365,1620716400"; d="scan'208";a="600804801" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by fmsmga001.fm.intel.com with ESMTP; 30 Aug 2021 23:04:28 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 30 Aug 2021 23:04:28 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) 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.10; Mon, 30 Aug 2021 23:04:27 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Mon, 30 Aug 2021 23:04:27 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.48) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Mon, 30 Aug 2021 23:04:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XisjLPtLUpzzjkf7Kpq1i5wpzARQSTEOU3FRpJOO0WqBxLjvCDVU5IE3PD7bQ3mVhG9+jhFSvMvGLDDJlpfCSGcMGjT/ymazxOz5W98hkwiNXckTBkbw9+cBCD686Bbwm9jTpv1oNkvogBPbUHMYWFA7glGpuzvJf8FMGGO39fWz7M9rx4R89gXU+Tu66gKVCLXqlLeSSu54h3TDurHg+CEPqCfEHKQvv+bhv0YPMgXyMt8wSYPK5UwBszuI63yYmDzXSrFW1NnHxwztZ2nJSboUte1DC13vxi1dG2DX4O4oTHShdsI1qYbzfvlhzNmmZSYEC8Tai9MXT46gYyJLRw== 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=kMRqUrsZSwMiOqVdEIMibJs/+XBhPCaC1R30TXiyKU0=; b=Uq9CiioE7np0gBq+UaSa/nKUBGDas+jlH5Xb/mx1CreaYv7o+XxVNk0NjXHoPKVZ14pGQTHizHj6T8xAxXKqNLmLtbwpDvXCYCGPT75HIAWnC5yKrt1bi04ya+CEYRhMeRLgLgWFvjop6IUJTaO7mLDi1sv7tJZI5O7RH4D3y9oVqOGv+r4yDZgDnpt3dbQIUgmasvsKK/CmHdP339UL9J3qsHGFaiuyV1D6HH4kaahW7DiGdXT2NPaM1E/dW3w+inEOrg1Hg4Sv8rY2IhHFxT7wZsJUCk+YOG58+DVroxaYv4OZ2CgOC/aK9u2ZMOvYOPwwM+hRWgi3gw1TVgeRKQ== 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=kMRqUrsZSwMiOqVdEIMibJs/+XBhPCaC1R30TXiyKU0=; b=nQEpGNMePWpW+z2bMNGIkp5AOW8LgtSYQbazSe6BZGNLlJFO8hvKUu0rGdu/gC+9ayRYdnaUadcK5ABg+RI9ed7wkKl3gjfjW4PU7ZOvMCsdWBNuBtsiS7C0v8lV8xHGVYWfvX8jKHBRFo0L3AvXg5r2E/rS+4DGKculdcjEH04= Received: from BN8PR11MB3795.namprd11.prod.outlook.com (2603:10b6:408:82::31) by BN7PR11MB2820.namprd11.prod.outlook.com (2603:10b6:406:b5::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.20; Tue, 31 Aug 2021 06:04:26 +0000 Received: from BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::f93f:9c9f:be17:ba75]) by BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::f93f:9c9f:be17:ba75%3]) with mapi id 15.20.4457.024; Tue, 31 Aug 2021 06:04:26 +0000 From: "Wang, Haiyue" To: Qiming Chen , "dev@dpdk.org" Thread-Topic: [PATCH] net/ixgbe: slove mbuf leak Thread-Index: AQHXnhhjFoDBKt//4kuFLsQQm5KtiauNHyxw Date: Tue, 31 Aug 2021 06:04:26 +0000 Message-ID: References: <20210831032805.5520-1-chenqiming_huawei@163.com> In-Reply-To: <20210831032805.5520-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: 5bf3e953-4333-4d59-43da-08d96c45302b x-ms-traffictypediagnostic: BN7PR11MB2820: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1923; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 22An9rOu+67mfG3mFmZvKm0Sy6DPx6sP55ggOy+0NhUy8YB+2Gkp4Bgp1xTcAnRSh1p+AQ1Nrz+xmE68qeB1UShYyJ6KIGC/DycZ695D3gOfaH8EQgpfmkpMZ32eO6UVnmj0cdWAxdD+4Tw79Ucb1x+0QD5N2kHIAT/URZaWl/wP+hFYb/UizrEaJvez3QmGLdKLRr5JBnIV2ajfCO3zFFwOrOq7ZfO2aJj+M2LwQgu1HUOqzbyeLfOduAxdnPxesZkfbGnYLi2r2FtQHpPNlR/Si9NWW0q2NUbZgiDl7WslNcouSF/ojlL8Q8Z8cIOnXu9OxOwksegkPCcGnROIIqtiBjjoK2pQbqaMUFlEoMrnH09gilB5H9RDgWAw6U5BYgeWEXAq06qAygEqq2eoOpGmPEc/qkDpcHpESrhTQ3h6iLoFZ4L9PTjjgB1DnaggSXcYU5osso1HJRZa6Rwf4USNtKpQdAiF1S88TdlKglkzOkjstWuHonDKGymIQzJU77RFH4AyDbdYEWMGOKP8hFjvlRv2W7K5yEKu2eHkCiNQXQe4ecZaThzwhIbR7gTcsut2U5LOvoo2GXIiI6LNeFLXOiQdYdkeFbtb/b3Kp/sbU3DMtphq0OMzBqBl5/gxYjCnZfGxXxMII9dzk64xc+i0mA2auHo31wVj+5mTeG3VL1v2Mi8qcMBVtPQSfrLG2lZAW2b6D+KkMNkNvxcJmw== 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)(366004)(396003)(136003)(376002)(346002)(39860400002)(5660300002)(478600001)(38070700005)(8936002)(186003)(4744005)(2906002)(6506007)(76116006)(33656002)(83380400001)(66446008)(38100700002)(122000001)(316002)(55016002)(110136005)(26005)(9686003)(53546011)(8676002)(86362001)(64756008)(52536014)(7696005)(66556008)(66476007)(66946007)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0wdpoYeC8pNzc7oIoEBcb55F75kNfLE3+e8s5pDJ7m4fgylOEk2BOlhvSvp2?= =?us-ascii?Q?OFD/3bNNEhJpOuiS7cbxHJOrFzRzjE/RO55srlf//8b3Lcp1yq/GzLFRc0e9?= =?us-ascii?Q?CjnERihGW+07yTKZrpV2CgkxFhwGqoiKjcW9xe/zW0Xi1GZZ+UiIb6/D9zfm?= =?us-ascii?Q?1VWQdfZ/kC0N+uFLwEbDZuhDfwBDcPriLBJ03nD84z1rzPMcfWxa1EW0YjUP?= =?us-ascii?Q?YqRCRIOpOVCDX3dQB+d9du9C0TEfFfM69GK2Tjl8riFP6T1hfvsU8dS9QskT?= =?us-ascii?Q?oTQBGoWHpl7L8YyrWKemLu/UyoBYu2jTK5cWf5SPHRMV/7tJHf1xrSw5M0Tn?= =?us-ascii?Q?6vz85q4fmzYgNHI/DWecjOlnchOydneqFOc4U4jZrV7NsoyNKSudRlVkanT/?= =?us-ascii?Q?QYYuJBfomLt3z4f3s7/EV1ms3Eoqt7oBW17mEIPRcx3Z/bVH5XVPC1HQKt7F?= =?us-ascii?Q?3yx/aOWlMOElI7y67qOPdiu+FuBlJrUJ+kpDr9Vwcn99R2e9ubhWjMzBssqH?= =?us-ascii?Q?tS7qlwZp4ZF0aC6E4I5dykQcUBSuON7H4o+564+tWj7e93xI72njXFZ4KXzK?= =?us-ascii?Q?fdTx7iviJfXvMFn9/QcHHSYGALZdkOSQmt5cag6dBYzjGS5kYoE0hu11jsTe?= =?us-ascii?Q?+cLs57OsS0apyQo7PBbolYOsCw7KFUKljcwi3RPBUY7hU6+8tvQK+Wg6mtQi?= =?us-ascii?Q?L74drz0580gisW8rEFmev0ZyJDlT68JCKQs2khVd+13jTra0In56z4XKiy2X?= =?us-ascii?Q?K9ixvuGYKC1Wf8dNhBdmozWIXDQJts7RiL4Te9z5ctojV3p77smELqT7bHZv?= =?us-ascii?Q?VbkLFydDbSXJVhLMwugYbaDF8SIlzMw9wIOYJ177hCRMIlBVUCiA/Hx18dEd?= =?us-ascii?Q?dlga8smul910yWJ53/vE9sY6/4NPB1uZHWX1doJljGdGXV5KRFKUeFn6tUrL?= =?us-ascii?Q?y+TIWC3GiUOovguPlGrvLSNs60kLjCMUF7+T2SAJLpdacJok0RRe0BISnsR+?= =?us-ascii?Q?s2KTOjfKwEQtmGug9TgsTQTVu7P/+ieicS/bihRzwlFq9mLVSW6o8wt034AX?= =?us-ascii?Q?T2fp2CZAGZh/oSeoqDDXF8HDHMUzRD7oPwfOTUniuunmkYmiJmALqsZFJL+q?= =?us-ascii?Q?v271YSoqU+4ZlYpYm05vqkUYMC+7iTahA/iUQMsd3zu7llzGV9qhwbLtvY7g?= =?us-ascii?Q?sPgig77fIzzbwzpqwF2fAHLtfF3NCEHzjcHENB/FwgpnDsPxtq6TtsHQH1X0?= =?us-ascii?Q?qJxBvV+txyhJfBKw2x/bHKw8iPlV0HeU9fyxOzAquJDvmkhJImaI15SWcB+n?= =?us-ascii?Q?qQc6UFDD7vlexgCn6zzy5O3+?= 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: 5bf3e953-4333-4d59-43da-08d96c45302b X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2021 06:04:26.5681 (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: 0pmOIFbor3u+4w/Y2d2XjLcmtFExngvkXRrCRxlCJbtUMyuZr+IvF1SnLtEdbAE3Ml2MxHem4x2bAn9fBRoLVA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2820 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: slove 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: Tuesday, August 31, 2021 11:28 > To: dev@dpdk.org > Cc: Wang, Haiyue ; Qiming Chen > Subject: [PATCH] net/ixgbe: slove 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 > Signed-off-by: Qiming Chen Backport ? Cc: stable@dpdk.org > --- > drivers/net/ixgbe/ixgbe_rxtx.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 Acked-by: Haiyue Wang >=20 > -- > 2.30.1.windows.1