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 CB363A04FD for ; Mon, 4 Jul 2022 09:42:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA2AE410E5; Mon, 4 Jul 2022 09:42:31 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id B8DAB40E09 for ; Mon, 4 Jul 2022 09:42:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656920549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EhwYnzahFXXISGVd5lAp5EtknIZTIJTKdALbhum7NLM=; b=KUA7sUZi+SOtQ41irIgihizzFTVTvTfuTIfri9fsmhH1TH3Zb+baTHAyMmGRg3ZJjs5tXT DL6+JAZkYVEms+5BT7cbKsugTSC6r9zzTwpJwKfdSfWVbZmonLUjCmd5C+PJNgg3YoFP7B 4ekw6DkCFf+b8w97oXeLxEhLtZvuXaw= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-173-uFpdUOD7MpiSviSDzAqbfQ-1; Mon, 04 Jul 2022 03:42:27 -0400 X-MC-Unique: uFpdUOD7MpiSviSDzAqbfQ-1 Received: by mail-lj1-f200.google.com with SMTP id d24-20020a2eb058000000b0025a7f5ccae6so2528089ljl.14 for ; Mon, 04 Jul 2022 00:42:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EhwYnzahFXXISGVd5lAp5EtknIZTIJTKdALbhum7NLM=; b=uPTJa6usrJnTucywdGVw4jc0Cc+7bAms9zp6SuC+x2uEOsG6akbmkzvEow28ZXVovE aLxuswMS6Ukw3i1gxAsjtlpA8hiDzWLXbtWBt0HfDVHA0RLZQJR1lOT+/79wJUJFlVUZ bWbxKUhVk+l+qqeKFMnFdrFdovW7WdOE04C+CmmEqLu6FFyR1g3BpmVFyykEfU0FrqqL u6inyC7OHN6LA2ZgiIHB9IczOgamTRvfL8c6VEQpKRyXRXTErYz0PioCVj9Ohq7L8V6o YAA28Juydx72H0iZj/1/CNVwfbDVn70sPCIpWS1FVPIkQy8EJPAUHkEtCVEOnU32cnSK /pMA== X-Gm-Message-State: AJIora9RHSlr8+m3dYoxfr8QViQT3nrRYaNfwlvP61Rd5BlazDb/DpWa 5gOrz36Nw8oPZ/SVL5Fpdim8c3sO7N74jJ/21w/creFMPrQpdfDdzCxrw85RrJu/AJJHiZtNrT3 fgtopDtvarLq7CwgdkU9gEE0= X-Received: by 2002:ac2:4e97:0:b0:47f:b53b:4af5 with SMTP id o23-20020ac24e97000000b0047fb53b4af5mr17773755lfr.499.1656920546374; Mon, 04 Jul 2022 00:42:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uz7KUUgjP9IUWhDD06upKrTabp4gJUgnEblAPL+oZceUCGKQ0N0nLKVD0nSm35CUqQ1PYMIHfpf/Uh4wBcSxc= X-Received: by 2002:ac2:4e97:0:b0:47f:b53b:4af5 with SMTP id o23-20020ac24e97000000b0047fb53b4af5mr17773740lfr.499.1656920546051; Mon, 04 Jul 2022 00:42:26 -0700 (PDT) MIME-Version: 1.0 References: <20220704070428.2051264-1-yuanx.wang@intel.com> In-Reply-To: <20220704070428.2051264-1-yuanx.wang@intel.com> From: David Marchand Date: Mon, 4 Jul 2022 09:42:14 +0200 Message-ID: Subject: Re: [PATCH] net/virtio-user: restore callfds index for Rx interrupts To: Yuan Wang Cc: Maxime Coquelin , "Xia, Chenbo" , dev , Jiayu Hu , "He, Xingguang" , Cheng Jiang , Harman Kalra , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Mon, Jul 4, 2022 at 9:11 AM Yuan Wang wrote: > > 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 Good catch... This is what I had fixed in 848e93d9001e ("net/virtio-user: fix Rx interrupts with multi-queue"). I suppose the issue has been reintroduced when rebasing Harman series. > --- > 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; > } Reviewed-by: David Marchand -- David Marchand