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 AD451A04FD; Mon, 4 Jul 2022 09:10:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 16714427F0; Mon, 4 Jul 2022 09:10:57 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 0B53840E09; Mon, 4 Jul 2022 09:10:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656918655; x=1688454655; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ikxaCgVxuBycxSvZespqeiLu00jMTSoyVXn4w/Lfs2E=; b=mvl1GP5mIHwdTO+4krxwUEg0bJDkW1/2RXnm8nOHMiMjbv+1QONvnQBd d4o2kNHbJ5CqzsLxhz13O0MI2i5ixAQd6vmm1xQrt7gA3sJsI4iKIMK0c qiWt6uFZ6G1EtdgRprMBu1h4QqjF5rdHtFTrWh+E6H+vdygtedG36oUXp MbvJQ06fEGplNUrevViTzeHY9u6QkbMU49WgXodDoA5sQ/sLjRU3fXNHT Lvasf7rv0dy0wsLpUNSYykKLxdleIsYuLNLz5hBc4DJk6++ydhxYd3pvY vOdW+zlb0ll0tUB87tUovkroR95KKU0a2psMRP3CqVv0b6b2ctWkCLx2U g==; X-IronPort-AV: E=McAfee;i="6400,9594,10397"; a="280607360" X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="280607360" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 00:10:54 -0700 X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="619159998" Received: from unknown (HELO localhost.localdomain) ([10.239.252.55]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 00:10:50 -0700 From: Yuan Wang To: maxime.coquelin@redhat.com, chenbo.xia@intel.com, dev@dpdk.org Cc: jiayu.hu@intel.com, xingguang.he@intel.com, cheng1.jiang@intel.com, hkalra@marvell.com, david.marchand@redhat.com, Yuan Wang , stable@dpdk.org Subject: [PATCH] net/virtio-user: restore callfds index for Rx interrupts Date: Mon, 4 Jul 2022 15:04:28 +0800 Message-Id: <20220704070428.2051264-1-yuanx.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The callfds[] array stores eventfds sequentially for Rx and Tx vq. Fixes: d61138d4f0e2 ("drivers: remove direct access to interrupt handle") Cc: stable@dpdk.org Signed-off-by: Yuan Wang --- drivers/net/virtio/virtio_user/virtio_user_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c b/drivers/net/virtio/virtio_user/virtio_user_dev.c index 35aa76b1ff..f9cada05e4 100644 --- a/drivers/net/virtio/virtio_user/virtio_user_dev.c +++ b/drivers/net/virtio/virtio_user/virtio_user_dev.c @@ -417,7 +417,7 @@ virtio_user_fill_intr_handle(struct virtio_user_dev *dev) for (i = 0; i < dev->max_queue_pairs; ++i) { if (rte_intr_efds_index_set(eth_dev->intr_handle, i, - dev->callfds[i])) + dev->callfds[2 * i + VTNET_SQ_RQ_QUEUE_IDX])) return -rte_errno; } -- 2.25.1