From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 82322A04D6; Tue, 11 Aug 2020 04:33:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0187A1C01F; Tue, 11 Aug 2020 04:33:36 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by dpdk.org (Postfix) with ESMTP id 671391C01F for ; Tue, 11 Aug 2020 04:33:34 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1004) id BEA5420B490A; Mon, 10 Aug 2020 19:33:33 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com BEA5420B490A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1597113213; bh=Dv3gie5WZ4DNy/VKNtcjU6jD/i+FaOyzKqeOy3wavgA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JraRNBrnmHrYFGB6sQ0oouauonJM3Ub4Ie8KFkdOpZHm5h4L6j6XfeUal9Y1JYMWh 1AoeMeB4fhuYqCMW5UwtFQGQWf92k17e7ZnBdE6gq+TSC7xej0LXbU54hsMSCY+vv2 Ywv9Js/cSOQLtnsmkzcyLYuhCh4db8TphtKATHq0= From: longli@linuxonhyperv.com To: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger Cc: dev@dpdk.org, Long Li Date: Mon, 10 Aug 2020 19:33:12 -0700 Message-Id: <1597113194-90208-2-git-send-email-longli@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1597113194-90208-1-git-send-email-longli@linuxonhyperv.com> References: <1597113194-90208-1-git-send-email-longli@linuxonhyperv.com> Subject: [dpdk-dev] [PATCH 2/4] bus/vmbus: remove vmbus_send_interrupt X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" From: Long Li netvsc is a high speed VMBus device that uses monitor bit to signal the host. It's not necessary to send interrupts via INT bit. Signed-off-by: Long Li --- drivers/bus/vmbus/vmbus_channel.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/bus/vmbus/vmbus_channel.c b/drivers/bus/vmbus/vmbus_channel.c index 4f5578e2c..f67f1c438 100644 --- a/drivers/bus/vmbus/vmbus_channel.c +++ b/drivers/bus/vmbus/vmbus_channel.c @@ -26,18 +26,6 @@ vmbus_sync_set_bit(volatile uint32_t *addr, uint32_t mask) __sync_or_and_fetch(addr, mask); } -static inline void -vmbus_send_interrupt(const struct rte_vmbus_device *dev, uint32_t relid) -{ - uint32_t *int_addr; - uint32_t int_mask; - - int_addr = dev->int_page + relid / 32; - int_mask = 1u << (relid % 32); - - vmbus_sync_set_bit(int_addr, int_mask); -} - static inline void vmbus_set_monitor(const struct rte_vmbus_device *dev, uint32_t monitor_id) { @@ -55,7 +43,6 @@ static void vmbus_set_event(const struct rte_vmbus_device *dev, const struct vmbus_channel *chan) { - vmbus_send_interrupt(dev, chan->relid); vmbus_set_monitor(dev, chan->monitor_id); } -- 2.25.1