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 87C0AA0562; Mon, 3 May 2021 19:43:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6E7A4407FF; Mon, 3 May 2021 19:43:58 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2042.outbound.protection.outlook.com [40.107.92.42]) by mails.dpdk.org (Postfix) with ESMTP id EE8044014E for ; Mon, 3 May 2021 19:43:56 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aKDj3MZ+De/y6WJbbiEwraCgp9B7eWaxdrWOqeH4GU0hYO24KQHvjSmcG1a5NZJagojl0pFpd4Rh03GmZD+l4uY1byj5Q/DX9Yeua01eGmh27shiZrzdX9GCT3xC6FtIRUa/dbz+jeALje245pwJ4E34ZqXDogD+RInietdnmmdqnHYqZv72sDnPjcjGCkAHgauRz1wu2ORTbLH0SwCsISvEGP9ZUbRvwDHuSbXop8XwjkcOvgjstGaLscYZpzpIVni1PlDziN1U6qekTDVkEbET48qgnmG8ueRuy7056zD1+olsULPJiyszXVRzeyYR56IfU4HipMYhtqB7ljDmCw== 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=9cK4oClNFyni/Hzvly00PE41oEK8sydSsIRMOoyH/E8=; b=nGsOh1zSNsIiL5BQzButuwTMxh7KnKXEeRxoLxZ39T2RwmHlsdS/uykA8aC+/xGVlGgC1kEh7NQe/9gvrp/N3VIcTsIg5EMMhSpYteVJFHISgCTWZD1Fb75z9BV+az9C0n6cLkakZsRtQZsQn+Yr2l/xuDgIo1+FqAM3AiWhcwAHPy9WALvO1oSpglZ0kgi8lOSR3zkpkoxI9XKNQ20sAkZDl4SBzqVemmXv4xa7d9jJfJIgokRkHZ94UcK0rYbiPgN7IVpG0m5DL16387BEABKC0RLvlfbatVx12VHlbgUJ/pg1+YkhNltI2SGRkMsbkez7fIAsgO+9EIVEDrCaRw== 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=9cK4oClNFyni/Hzvly00PE41oEK8sydSsIRMOoyH/E8=; b=QNC+LzN+ZOwtp2cR3sVPg5impTN08Aa2Lxzx4iR1kpd0EV+sZWgQl4Lk7GQf0xgWtm33O3c9iJiVnpCCfxED4/23UJn0d/58J5nX+KIxA6D5ar+Qhs66yzdBQ6IxKxWjckRdPTZkjKv7d5Makm5GhCn6e/az1RjDP6L8eZqVbnUAml/OSu/+nzki4lM/eDTkk+pF0ZeZ9i0v+x+R6lbOuPAHipOIzxc5VI1HNP/J5gOv2/9La5kB2lLfaqnhrdUMQT+G8ZNrUbas6m/79UwHkUxp5yHlxiN4Jv18VcyoPIS3V4d+zyJzKTXccdJ3T02kNujFlEafrp0p8nReAm5yYg== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39a::7) by DM4PR12MB5280.namprd12.prod.outlook.com (2603:10b6:5:39d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.25; Mon, 3 May 2021 17:43:56 +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:43:56 +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 03/10] eal/windows: add device event stubs Thread-Index: AQHXPemiK/t+4p+rYEyiv7wcIVzk0KrSC9uw Date: Mon, 3 May 2021 17:43:56 +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-4-git-send-email-jizh@linux.microsoft.com> In-Reply-To: <1619805162-10684-4-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: b0d51544-8034-401c-29d9-08d90e5b0664 x-ms-traffictypediagnostic: DM4PR12MB5280: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1824; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VgOModvtwPs1rndxys/ns6tMa1WNE+HTwnowFGDfyP48kMHpzI5TGiiuPC2JYKjzxlN61C1W1QisAIHYbP93kwECi+iEBupWfv+fvTo2KaKpw/idbOlMKJeWFSpByk5VS6+NyXR4ViS41HgYV5HJFNqyvkR33tWmXEeeAcd7UD1M/Ugc+n4UnZAd5BDbQPs22DtBAUHIvDyRwd24tV+XhJbYLNVj5NwwL+7OsVhWxSmJHP9XZNhne1ztJwa+Kb1ayLsjUitY2ae01ElyA8MMSb4/VHQgrjd0zffUihGdfDsf1UzM/k3OoNMAaXgWf5wvzCUpjH1R9dBri/woqMtuxRUAPHeF7G+uXyTn1PpyHwrVps5SSdXE50c/XgDcOA4hj4OZzI+uTK4RMw61/+E0U98xpPLyaFb61mx1tiqH4s2KtShKe2vqV80yFQPwiQikCxP7pOtL6fc8NJt2uvGL+HYZcFlvKf62J4NVuJE9wnrKtoOS3igJaX1cggABtzTrURGUa0oZ5Ow6AxgT6Z7j4gxvkwXO5vlYAjpiELZuGAJD6dI909qzERNMiP02oFfpztZ3HbJX3kwgcsy1PzjTv31aCjkEM5hKXDZWp9ev3Ys= 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)(346002)(396003)(376002)(366004)(39860400002)(136003)(186003)(7416002)(54906003)(26005)(38100700002)(122000001)(52536014)(2906002)(9686003)(7696005)(55016002)(86362001)(33656002)(110136005)(8936002)(6506007)(5660300002)(8676002)(316002)(71200400001)(478600001)(66556008)(66476007)(76116006)(4326008)(66446008)(45080400002)(64756008)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?cz3nIR2y34wQaa2gcTKQLPLGtAz9pta7ybvH2rvYQ4DIoiHQDrr46btRuBkb?= =?us-ascii?Q?pCgEeekYWEruW2iglm9uPCUx1RBB8U1w0Qs2r65OnnpsyP+k1JYBEDCxxR/u?= =?us-ascii?Q?NlUfMBOzGgqtM1NKc91Vc6h93BC7QZ+JxpRYyvoLEv4H7uFxJNH5HsAA7u5r?= =?us-ascii?Q?cQl3aQ8xSrGey/FfbIQ7gbI7v1LakjRx04E97K/MmkKFbcQiLXyQKCQP0bdE?= =?us-ascii?Q?4SoMmnG5RiCzHP4dxGF9P6WhkuJqVBqGe0cahVj3GjTplu64n3xHO38L9jkb?= =?us-ascii?Q?mWc0XGyP/kQcmH/Cw3W2L6pR9/3ZxMpV7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SjnBK/Ote3AGEz7MCcaostonCnw404dxh/9jtSuSmnRXH2CN3Gdf8G9ADpt?= =?us-ascii?Q?L+bXWY5UL78c5HXzIYgOUC8AgH5htc78bDVxnx/eQUPwfbJYAYVeCXAbMJVO?= =?us-ascii?Q?R+4=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: b0d51544-8034-401c-29d9-08d90e5b0664 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 May 2021 17:43:56.0710 (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: rabc4rX8FeyIEEH0pnyY5411VOpUrJoEROPB/+Trjie9Ulcsf8kmprUQhl1rMtCY3QNcwyEgQ3xKeVeIxeZKlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5280 Subject: Re: [dpdk-dev] [PATCH v9 03/10] eal/windows: add device event stubs 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 03/10] eal/windows: add device event stubs >=20 > External email: Use caution opening links or attachments >=20 >=20 > Add device event stubs in eal_dev.c for Windows >=20 > Signed-off-by: Jie Zhou > Signed-off-by: Jie Zhou > --- > lib/eal/windows/eal_dev.c | 33 +++++++++++++++++++++++++++++++++ > lib/eal/windows/meson.build | 1 + > 2 files changed, 34 insertions(+) > create mode 100644 lib/eal/windows/eal_dev.c >=20 > diff --git a/lib/eal/windows/eal_dev.c b/lib/eal/windows/eal_dev.c new fi= le > mode 100644 index 000000000..35191056f > --- /dev/null > +++ b/lib/eal/windows/eal_dev.c > @@ -0,0 +1,33 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2021 Microsoft Corporation */ > + > +#include > + > +int > +rte_dev_event_monitor_start(void) > +{ > + RTE_LOG(ERR, EAL, "Device event is not supported for Windows\n"); > + return -1; > +} > + > +int > +rte_dev_event_monitor_stop(void) > +{ > + RTE_LOG(ERR, EAL, "Device event is not supported for Windows\n"); > + return -1; > +} > + > +int > +rte_dev_hotplug_handle_enable(void) > +{ > + RTE_LOG(ERR, EAL, "Device event is not supported for Windows\n"); > + return -1; > +} > + > +int > +rte_dev_hotplug_handle_disable(void) > +{ > + RTE_LOG(ERR, EAL, "Device event is not supported for Windows\n"); > + return -1; > +} > diff --git a/lib/eal/windows/meson.build b/lib/eal/windows/meson.build > index ff9cbec41..fc12fefd0 100644 > --- a/lib/eal/windows/meson.build > +++ b/lib/eal/windows/meson.build > @@ -7,6 +7,7 @@ sources +=3D files( > 'eal.c', > 'eal_alarm.c', > 'eal_debug.c', > + 'eal_dev.c', > 'eal_file.c', > 'eal_hugepages.c', > 'eal_interrupts.c', > -- > 2.30.0.vfs.0.2 Acked-by: Tal Shnaiderman