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 209E243EDA; Mon, 22 Apr 2024 15:23:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 956CE40265; Mon, 22 Apr 2024 15:23:53 +0200 (CEST) Received: from CNSHPPMGWESA01.NOKIA-SBELL.COM (unknown [116.246.26.71]) by mails.dpdk.org (Postfix) with ESMTP id 6F8F84021F for ; Mon, 22 Apr 2024 15:23:52 +0200 (CEST) X-CSE-ConnectionGUID: uzp5+Jc5SPW+CY4Pyhk8YQ== X-CSE-MsgGUID: XnIlsiLYTvy3roLLXFD7LQ== X-IronPort-AV: E=Sophos;i="6.07,220,1708358400"; d="scan'208,217,223";a="26699770" Received: from unknown (HELO CNSHPPEXCH1609.nsn-intra.net) ([135.251.51.109]) by CNSHPPMGWESA01.NOKIA-SBELL.COM with ESMTP; 22 Apr 2024 21:23:50 +0800 Received: from CNSHPPEXCH1605.nsn-intra.net (135.251.51.105) by CNSHPPEXCH1609.nsn-intra.net (135.251.51.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Mon, 22 Apr 2024 21:23:50 +0800 Received: from CNSHPPEXCH1605.nsn-intra.net ([135.251.51.105]) by CNSHPPEXCH1605.nsn-intra.net ([135.251.51.105]) with mapi id 15.01.2507.035; Mon, 22 Apr 2024 21:23:50 +0800 From: "Jianyue Wu (NSB)" To: "roretzla@linux.microsoft.com" , "thomas@monjalon.net" , "david.marchand@redhat.com" CC: "'dev@dpdk.org'" Subject: [PATCH] eal/linux: enhanced error handling for affinity Thread-Topic: [PATCH] eal/linux: enhanced error handling for affinity Thread-Index: AQHalLhQxrpyXKy/B0qhqFMATVnoyw== Date: Mon, 22 Apr 2024 13:23:50 +0000 Message-ID: References: <6edc5c20ca9e4bc5822bcf3f87cab66c@nokia-sbell.com> <930beb572a814989b86186c55fa574be@nokia-sbell.com> In-Reply-To: <930beb572a814989b86186c55fa574be@nokia-sbell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [135.251.51.115] Content-Type: multipart/mixed; boundary="_004_fa21c475248e4a42850697eb76b0de50nokiasbellcom_" MIME-Version: 1.0 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 --_004_fa21c475248e4a42850697eb76b0de50nokiasbellcom_ Content-Type: multipart/alternative; boundary="_000_fa21c475248e4a42850697eb76b0de50nokiasbellcom_" --_000_fa21c475248e4a42850697eb76b0de50nokiasbellcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, Good day~ I hope this message finds you well. I am writing to submit a patch for cons= ideration, which primarily adds enhanced error handling for affinity sets w= ithin the eal/linux of DPDK. Unfortunately, my current environment does not= support git send-email, so I am sending this patch attached to this email. Thank you~ Best regards, Dave --_000_fa21c475248e4a42850697eb76b0de50nokiasbellcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hel= lo,

 

Goo= d day~

I h= ope this message finds you well. I am writing to submit a patch for conside= ration, which primarily adds enhanced error handling for affinity sets with= in the eal/linux of DPDK. Unfortunately, my current environment does not support git send-email, so I am sending th= is patch attached to this email.

 

Thank you~

Best regards,

Dave

 

--_000_fa21c475248e4a42850697eb76b0de50nokiasbellcom_-- --_004_fa21c475248e4a42850697eb76b0de50nokiasbellcom_ Content-Type: application/octet-stream; name="0001-eal-linux-enhanced-error-handling-for-affinity.patch" Content-Description: 0001-eal-linux-enhanced-error-handling-for-affinity.patch Content-Disposition: attachment; filename="0001-eal-linux-enhanced-error-handling-for-affinity.patch"; size=3326; creation-date="Mon, 22 Apr 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u bzogJWQsIGVycm9yIGRlc2NyaXB0aW9uOiAlcyIsCisJCQl0aHJlYWRfbmFtZSwgY3B1c19zdHIs CisJCQlyZXQsIGVycm5vLCBzdHJlcnJvcihlcnJubykpOworCX0KKworCXJldHVybiByZXQ7CiB9 CiAKIGludAotLSAKMi40Mi4wCgo= --_004_fa21c475248e4a42850697eb76b0de50nokiasbellcom_--