Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5345384pxv; Wed, 7 Jul 2021 01:18:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2f+vVWsTItFUMIq9/Lh2+r4M6niJ6LRgZv/YKhRLAZ0IEL09EIJ7a1AR1cep8JGyaehrI X-Received: by 2002:a05:6402:10cc:: with SMTP id p12mr29011973edu.328.1625645916983; Wed, 07 Jul 2021 01:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625645916; cv=none; d=google.com; s=arc-20160816; b=vINHBLr7X5lVkLtGXMEdsVbY45qWo6w0Vyecm6Q2skBc7GGk6LP2oipZolqdOEsWJR ns0LG9YHx0gtwPu1OosA/P8SMqs9fQe88WbLfEbvJHNOeGh4WSlcieDZYQZh7o80AaJ6 k0/rk/f338G+p7nfBmHitk2+pzIzzZ4pjp5ZKQaPpMKxIdt/FOtB4PBnrAJZqeqGXxG7 nLVYeop9z2KQ+YN3VvQLSGutZkp3kIvwpkCVA9E0l0AFQzvUsC3KBOimT7c7hih2GdKr JUOyqSk8piY9ix6VbXh9aAo+T2PSqphlKv9CQUumepqUUN4VKCSw2vMYxRQ3QxLWtweW RLIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AH8+qU/Qk2ZD3toq2Bni7BQkSLoZvZC7btng1e/jRFo=; b=WwGgYYOUvBex59cRF9rZUI+BGsIqjUm3/rn+z5g5lR6tqpCCQhtFad+NG3lvmvm9aq LvgTrHpy3QlfyEUddev5jzo8I5PYdcifg+x+EfArm/KqlOHzH9o+hCzlvgPpVyz9QAE8 0B1eeEDfaDLsooXoj+B3JN6zqwxiUpSvq7pdz5qbtI2qA1OyEsWNRX9h2nuu3dfYbiHc aj1tGB98NzotUd9xDnRoW4alvU07/yjs9GGuQS8kzvFXXfRyR95KoarH2Z5mohOykJRr 00+/mVOREs6Psot3wab9gquKEm/ULZc4oOuRCbjwhz1x88PRpfI9BrePJjMmng0sAg10 25yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KIVELfwM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd28si18411540ejc.701.2021.07.07.01.18.14; Wed, 07 Jul 2021 01:18:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KIVELfwM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230408AbhGGITu (ORCPT + 99 others); Wed, 7 Jul 2021 04:19:50 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:45425 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbhGGITu (ORCPT ); Wed, 7 Jul 2021 04:19:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625645830; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AH8+qU/Qk2ZD3toq2Bni7BQkSLoZvZC7btng1e/jRFo=; b=KIVELfwMScErJRxCLqgJFtZlha7Bu4GThSMGKwbTow4q7HEssMLxq7zzkT8bS8tU3Uvau9 HYDM3c9/KEjIwdCGd3m8mnoHjboeJP3PP4shSDRkSBGz94FtrFSDtoKFOGO+UnQD7xazuf B3KOsPRSqO8/kXSHk5lleH2cUXl7jXk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-206-I5fXroH0ONK-KSRgdJyozw-1; Wed, 07 Jul 2021 04:17:09 -0400 X-MC-Unique: I5fXroH0ONK-KSRgdJyozw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9AB8D800050; Wed, 7 Jul 2021 08:17:07 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-155.ams2.redhat.com [10.36.112.155]) by smtp.corp.redhat.com (Postfix) with ESMTP id 138605D9F0; Wed, 7 Jul 2021 08:17:01 +0000 (UTC) From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= To: ecree.xilinx@gmail.com, habetsm.xilinx@gmail.com, davem@davemloft.net, kuba@kernel.org, ivan@cloudflare.com Cc: ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ihuguet@redhat.com Subject: [PATCH 2/3] sfc: revert "adjust efx->xdp_tx_queue_count with the real number of initialized queues" Date: Wed, 7 Jul 2021 10:16:41 +0200 Message-Id: <20210707081642.95365-2-ihuguet@redhat.com> In-Reply-To: <20210707081642.95365-1-ihuguet@redhat.com> References: <20210707081642.95365-1-ihuguet@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 99ba0ea616aa ("sfc: adjust efx->xdp_tx_queue_count with the real number of initialized queues"). It intended to fix a problem caused by a round up when calculating the number of XDP channels and queues. However, that was not the real problem. The real problem was that the number of XDP TX queues created had been reduced to half in commit e26ca4b53582 ("sfc: reduce the number of requested xdp ev queues"), but the variable xdp_tx_queue_count had remained the same. After reverting that commit in the previous patch of this series, this also can be reverted since the error doesn't actually exist. Signed-off-by: Íñigo Huguet --- drivers/net/ethernet/sfc/efx_channels.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/sfc/efx_channels.c b/drivers/net/ethernet/sfc/efx_channels.c index 4fa5d675b6d4..a4a626e9cd9a 100644 --- a/drivers/net/ethernet/sfc/efx_channels.c +++ b/drivers/net/ethernet/sfc/efx_channels.c @@ -912,8 +912,6 @@ int efx_set_channels(struct efx_nic *efx) } } } - if (xdp_queue_number) - efx->xdp_tx_queue_count = xdp_queue_number; rc = netif_set_real_num_tx_queues(efx->net_dev, efx->n_tx_channels); if (rc) -- 2.31.1