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 6FD0945AD6; Mon, 7 Oct 2024 17:04:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0354C427AD; Mon, 7 Oct 2024 17:04:16 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id E9BC44026C; Mon, 7 Oct 2024 17:04:14 +0200 (CEST) Received: from pps.filterd (m0431383.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4979RMGL015563; Mon, 7 Oct 2024 08:04:14 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pfpt0220; bh=80A0byqeaLcRbONlVCD/VB6 cNYxcnRVzNypQo6wu4VY=; b=Hi7hUnqDaWgyeiK1ZL6AKSbEQMFZqw0pAKCmtKt djp7iPsO+CzT1AzapQ7OtqqUvOJ3cp9pmlHl6KsKrymC1pk3V/Qy6SZvvlFnxqrD coOzejddKc2Ld6HbW57W4TJ4/rvlKAcFqOImuujd66fUnJJXmccsPEA90mAsCsef FPxtInJip9fCg2TW7MKZMwA2+sJEchDBn9cIplEWlbymVfPrTwatzYDedQvyX2Am nizd8RU59adyjYKk5oi4fRkwdATN+A18XLuNZp5kLQWeLIMmADFan87B+iAIlXgR WUGRwpugGzhtpE/YGyAqECVAQbhbNYuzAquXEkviJeOvTfg== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 424d0q0me3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Oct 2024 08:04:13 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 7 Oct 2024 08:04:13 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Mon, 7 Oct 2024 08:04:13 -0700 Received: from localhost.localdomain (unknown [10.28.36.14]) by maili.marvell.com (Postfix) with ESMTP id 4E60D5E6868; Mon, 7 Oct 2024 08:04:11 -0700 (PDT) From: To: Harman Kalra , Jianfeng Tan CC: , Satha Rao , Subject: [PATCH 1/5] interrupts: fix number of bytes read for vdev Date: Mon, 7 Oct 2024 20:33:59 +0530 Message-ID: <20241007150403.1680983-1-skoteshwar@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: KD02MBhBCv4tY0KTXwJZQnA6vIxaMwSB X-Proofpoint-ORIG-GUID: KD02MBhBCv4tY0KTXwJZQnA6vIxaMwSB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.687,Hydra:6.0.235,FMLib:17.0.607.475 definitions=2020-10-13_15,2020-10-13_02,2020-04-07_01 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 From: Satha Rao Correct the number of bytes to read during vdev interrupt processing. The driver sets this value, and the rxtx interrupt handling already performs this correctly. Fixes: 99998feec90 ("eal/linux: add interrupt type for vdev") Cc: stable@dpdk.org Signed-off-by: Satha Rao --- lib/eal/linux/eal_interrupts.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.c index 6436f796eb..80eef7ec4b 100644 --- a/lib/eal/linux/eal_interrupts.c +++ b/lib/eal/linux/eal_interrupts.c @@ -949,6 +949,10 @@ eal_intr_process_interrupts(struct epoll_event *events, int nfds) break; #endif case RTE_INTR_HANDLE_VDEV: + /* For vdev, number of bytes to read is set by driver */ + bytes_read = rte_intr_efd_counter_size_get(src->intr_handle); + call = true; + break; case RTE_INTR_HANDLE_EXT: bytes_read = 0; call = true; -- 2.25.1