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 42791A0562; Mon, 3 May 2021 19:36:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22485407FF; Mon, 3 May 2021 19:36:51 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2055.outbound.protection.outlook.com [40.107.94.55]) by mails.dpdk.org (Postfix) with ESMTP id 87ECB410DE for ; Mon, 3 May 2021 19:36:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NBrl5BWBqg/ijEWwGSfQO1LZNPdPGqsz0h8pr2s53VR3LZfZbnV8wTe7Nxx2B9kJnEHr6o0Mzo4WCwwiTwirhDZIIperTUtdqpqj80gmWT4JGKHrK1Zykvwh9Vrny+x+G28hT5SXJZ961Y0ACbhbkC6Iem5f8ph6czv+LIKDXZH8Epel5gCy9pqt8Z0FCOC8nPEoagkpFEa3zZDuy4znXasVIimHjDi3wV1g3wONvoMV6dhcihhQk0aKHEgBPS3Ww4ig8/20As8y8qhaL3iaDs53JzX/6zHDgNQx0rYX5Lww19ea+ljQa/Crg6KLVvvynsQNwS50K93Pfa+QFL32cg== 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=AKq2syCsVomhywD03KC5PYU4PzHYnvRqqItEYc/Y6jQ=; b=goQHGZNh2+Ir7o4YndNU3CylFmOOP2AJG2KDUaa6e9lclfSqvnXeFzi12MEFYKAhVhdmTzVtnt0ZK332R2V+MWBay2eQjaP7amezRInxaFt8MacuCGNEMpQnbaQQCVJCBst9+kMPQOW81zL+zNB48W0t7mxyOrccp7ThukC3EDKE90IAFhxwucZuQYZbYd96WPRs0Uer7bxYLrIC/rDEwtK5XgjzEwUseAv/XMwI19eLaJUx37W2kNyt5Dh/lfRe2fMAkjDG9SV6UUhpem11afgnKxQ4tDT+OIGdcHJTNw7YZ4Ul7uCzOXuzzq5YjvU+1kYRZ9L5n+evd0X4UwzzbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AKq2syCsVomhywD03KC5PYU4PzHYnvRqqItEYc/Y6jQ=; b=T4hRC+mY+RRiXrmzFKSzcYIYaz5SfC4ccAybyc3T7TdC6DuyzGeTE/IYY0nvOHIWd5MJh/tHqKnwKHGbgEt7DZY9FtqJm4LGE5jFKIBTJM7ptAPi4Sj228OKopnj7zQbwFuqq8L4eBPvOs9YyHXVLKpP7DIxaLWcCVSgbh5iNnnraTIS4KpKI6WG3bz4FJ5RKoLtnG6Le6TIXHbnAVnll7wLtNcTet8nEIslpjIy5abPbyjZqPl38BDXArwyu1Ryw4CbEdleic2zCiCKFPHH0373+P5e/FGsJLtg7mZe3jlUWMKKkcSbod0MHgYQtMgceDgY8Stna895hm9vLB+f1Q== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39a::7) by DM4PR12MB5168.namprd12.prod.outlook.com (2603:10b6:5:397::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.38; Mon, 3 May 2021 17:36:48 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::70df:ef1e:d98c:ce4]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::70df:ef1e:d98c:ce4%6]) with mapi id 15.20.4087.044; Mon, 3 May 2021 17:36:48 +0000 From: Tal Shnaiderman To: Jie Zhou , "dev@dpdk.org" CC: "dmitry.kozliuk@gmail.com" , "xiaoyun.li@intel.com" , "roretzla@microsoft.com" , "pallavi.kadam@intel.com" , NBU-Contact-Thomas Monjalon , "bruce.richardson@intel.com" , "ferruh.yigit@intel.com" , "konstantin.ananyev@intel.com" Thread-Topic: [PATCH v9 02/10] eal/windows: add necessary macros Thread-Index: AQHXPemiHjF8TU3XyUe0FLpZVmoyhqrSCQaA Date: Mon, 3 May 2021 17:36:47 +0000 Message-ID: References: <1619553721-5220-1-git-send-email-jizh@linux.microsoft.com> <1619805162-10684-1-git-send-email-jizh@linux.microsoft.com> <1619805162-10684-3-git-send-email-jizh@linux.microsoft.com> In-Reply-To: <1619805162-10684-3-git-send-email-jizh@linux.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linux.microsoft.com; dkim=none (message not signed) header.d=none;linux.microsoft.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [5.29.16.219] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 13bf3b06-fd42-4bdd-2d92-08d90e5a0735 x-ms-traffictypediagnostic: DM4PR12MB5168: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:972; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UGrbk5CwLavg9l3G8+Mp4Bn98b+unLkmcV7S1gldhReAk6bAvnAN6EFEmY36XxnpWoXaHSPmifQiWGYpXd0St/jbs39KcnkACTDHJ07oxVSE/GQ/BKcefDOjJhnkp3+aeVbnyGFEfd9okWlLcfRp5bWPx9/tkVk91Hjp/Bts9mzN52LsGBFsrrkL9AUYCGPIsVo63sCaentbSPPcg92mdyQMb2st7JXFti6ggBK1drDsSZfRsvBgQtfBdFvM1/u1bhyh4uW0EnQ0NU4cvb0g999HGp5tiWV5LQ49Al6Wu7ou40s6DgMpTv6qlXB3NZQeKXXEUCso6zGU9yDB+cb24zMk7ygZCDbzVJBLFSd0qdt5ydugXqSi58h9yodLloi3pRLsS3odN/oa9kAHMf7QxX46qN42/PlYnoT+qSkG9HIyfXXwhINCJ/H/2zpXqQhrYvKt27oJx0n9Q8lnm7dXllNCfL2pXETgBxHmI/tI223ayBPzF41FUiHcydRjUWBsFBSoIXTMT8LYladEv4sSvKgdAfbtt2Y4pf6FmTLdmcatZmf1WqQiBM2+9ECtI1iNsUq+11sSrkX/QAlASIf79Slv9ZZ5vEG4ol+d+hW8gsA= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5389.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(39860400002)(376002)(366004)(346002)(396003)(52536014)(66946007)(66556008)(64756008)(2906002)(33656002)(66476007)(6506007)(66446008)(4326008)(71200400001)(38100700002)(86362001)(186003)(7696005)(76116006)(122000001)(7416002)(8676002)(8936002)(54906003)(5660300002)(55016002)(110136005)(316002)(478600001)(9686003)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?+30/sKExcHoPIGYN5CbWLAyCW9qQE+8JFMY8PZJ7XZ6+WurdEYmB2YLfClRd?= =?us-ascii?Q?RGU2SgkXi9UxC+JjuLg/Km4YLf0z7D+jcC9NzPfIEGkyiTBymUCu303yhAym?= =?us-ascii?Q?4KtrxQhEdpU8vpbKEgIGuKRgqiTAXQjQPN0P0slqhGfTJnA1eGM9T3/wiCmp?= =?us-ascii?Q?YpTwwhK8pKOCloVqrL8QNaLbbl4sXoZk/YU7f3wahigSPViNFITTjw4PzpGY?= =?us-ascii?Q?OqX+ab3mGY/rbCKYnfTa7hyNtYnd+2kzwaQBQ+f5Xc1Cw/FeZ6GheF8t0PD1?= =?us-ascii?Q?mnBjMj72T91/WEGth65LpbwlLNjusFpQ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ilPd0XycLCkBvHiPdch7zB2tMGL1ywtTGi6aF9LXpbOoOiMggWYir55S5E?= =?us-ascii?Q?385jgKF0qbLUlL0vmxF+V5fmq9W7Nl+NJ0k7+pFBMOE21ZFAVGOAM6TakuYq?= =?us-ascii?Q?eYw=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13bf3b06-fd42-4bdd-2d92-08d90e5a0735 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 May 2021 17:36:47.8993 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ssghI09KiC7hVnjCIS6owsl8KtAA0WROUg6xROn1dq+4RpThfObwBIVXTyUpSfd/AYYrBfaZ8Aitaa7l0mZIMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5168 Subject: Re: [dpdk-dev] [PATCH v9 02/10] eal/windows: add necessary macros 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" > Subject: [PATCH v9 02/10] eal/windows: add necessary macros >=20 > External email: Use caution opening links or attachments >=20 >=20 > Add required macros by testpmd on Windows in rte_os_shim.h >=20 > Signed-off-by: Jie Zhou > Signed-off-by: Jie Zhou > --- > lib/eal/windows/include/rte_os_shim.h | 9 +++++++++ > 1 file changed, 9 insertions(+) >=20 > diff --git a/lib/eal/windows/include/rte_os_shim.h > b/lib/eal/windows/include/rte_os_shim.h > index 433fa02c4..e60f27400 100644 > --- a/lib/eal/windows/include/rte_os_shim.h > +++ b/lib/eal/windows/include/rte_os_shim.h > @@ -20,6 +20,7 @@ >=20 > #define strdup(str) _strdup(str) > #define strtok_r(str, delim, saveptr) strtok_s(str, delim, saveptr) > +#define strcasecmp _stricmp > #define strncasecmp(s1, s2, count) _strnicmp(s1, s2, count) >=20 > #define open(path, flags, ...) _open(path, flags, ##__VA_ARGS__) @@ - > 36,6 +37,14 @@ > #define IPPROTO_SCTP 132 > #endif >=20 > +#ifndef IPDEFTTL > +#define IPDEFTTL 64 > +#endif > + > +#ifndef S_ISREG > +#define S_ISREG(mode) (((mode)&S_IFMT) =3D=3D S_IFREG) #endif > + > #ifdef RTE_TOOLCHAIN_GCC >=20 > #define TIME_UTC 1 > -- > 2.30.0.vfs.0.2 Acked-by: Tal Shnaiderman