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 095F0A0524; Tue, 13 Apr 2021 19:19:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 582AF161206; Tue, 13 Apr 2021 19:19:34 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 1D2701611EE for ; Tue, 13 Apr 2021 19:19:29 +0200 (CEST) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 72A8520B83D9; Tue, 13 Apr 2021 10:19:28 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 72A8520B83D9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1618334368; bh=Xby0PoQZ3DQ3eCcgRsTaDeoCH+4xrN/xfL7yNfzLUYw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VYimSOhwyRijzGipvGK0SvSYiHLpSJYytI1TvZr4AOnuEGgXQFPq+r3X8TNcBoTrn hL4/MRpfFKfyh05kK+hbur/H2GH8EuPdWfguHZd58vDMhQPNaH4+Hn/yJx36GdQLD6 6gwYmCNqhkC781uqFBwvCh082xOcNXafkLxoZplU= From: Jie Zhou To: dev@dpdk.org Cc: dmitry.kozliuk@gmail.com, xiaoyun.li@intel.com, roretzla@microsoft.com, pallavi.kadam@intel.com, thomas@monjalon.net, bruce.richardson@intel.com, ferruh.yigit@intel.com Date: Tue, 13 Apr 2021 10:19:21 -0700 Message-Id: <1618334363-15147-5-git-send-email-jizh@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1618334363-15147-1-git-send-email-jizh@linux.microsoft.com> References: <1616172695-28505-1-git-send-email-jizh@linux.microsoft.com> <1618334363-15147-1-git-send-email-jizh@linux.microsoft.com> Subject: [dpdk-dev] [PATCH v3 4/6] app/testpmd: add device event stubs on Windows 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" Add hot_plug related device event stubs in eal_dev.c on Windows. Signed-off-by: Jie Zhou Signed-off-by: Jie Zhou --- lib/librte_eal/windows/eal_dev.c | 35 ++++++++++++++++++++++++++++++ lib/librte_eal/windows/meson.build | 1 + 2 files changed, 36 insertions(+) create mode 100644 lib/librte_eal/windows/eal_dev.c diff --git a/lib/librte_eal/windows/eal_dev.c b/lib/librte_eal/windows/eal_dev.c new file mode 100644 index 000000000..4c51d07df --- /dev/null +++ b/lib/librte_eal/windows/eal_dev.c @@ -0,0 +1,35 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2018 Intel Corporation + */ + +#include +#include +#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/librte_eal/windows/meson.build b/lib/librte_eal/windows/meson.build index 42ff5c2d5..9bd395a37 100644 --- a/lib/librte_eal/windows/meson.build +++ b/lib/librte_eal/windows/meson.build @@ -7,6 +7,7 @@ sources += 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