Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3190808lqo; Wed, 15 May 2024 02:25:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6jmrZj+kJ8kewwrTx6oxpYdIVwOTVd8zyheDjKrsJUdaCibV/rf1G2kgj2rNDvC8rWuGyjmDG0VknmsmS14Vxb0FXeQX21iyZR6432Q== X-Google-Smtp-Source: AGHT+IFNgxbiu3GbYL4GPQxfSx7O1vUnbafVfsSCPHPmNwBHA/gEwtTit5e9ACf1iinhU+b+v6SG X-Received: by 2002:a05:6512:124d:b0:51e:f2bb:158a with SMTP id 2adb3069b0e04-5221006cd7cmr10498025e87.64.1715765157224; Wed, 15 May 2024 02:25:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715765157; cv=pass; d=google.com; s=arc-20160816; b=KNpqxn4qwZm6YpTtM34unlai6uKF7xcI/EJ8b6JMrC9P6jStHJu1kvR2F83+WV+HMm TWEij989SVVkLNR+mJ7i+VU/bF2DgfGWi+wMel2QyxCV6n5Gg9BrYCacNJEzDtOdzIKQ UyIY5diebnW+ZBIi4UAnTb7AtYq7sl5wjvM3fOfxgdmkdaeqlTfsA0stjSrdT8dn10A2 pdMPJ6YwG+hcWOCAEFGhXEpuFHhCXkvVjC55qW8seQQEnmoYrJbwLyJCa3o9AlR3hFjm hHtl3r3vk5XU+EQY0894jB3ID31CPNmC6Ai8Xla/iiROEtoYGB87umO48G3XSt+rhlJy zJaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=cwgmU20xqKj4JxIRaIo+XjkFH1Bokj6japGSVd7cJpA=; fh=JCGGKBJdkNPOC/beeKkPG+r9mMQuFo9dQyDUvbXOiQk=; b=Pbgyr2uhbDoQzbG3ue/HtU/oquIbVljJZomPpYYCta3EiNWTJNKQ69wtglJLGKfsp7 p6QzjI+ZqAw+0jKjWYJi1ew1N5OxOf91hGgJrI3k+qDzruPst/mkCaXuiL0lK10Jrd4e 8E88fumm0ytyd2v28FFTRwj2YQ2rQxUG6vefotpPgc9dx2YolehFGlV0MxVKVRfuK8PH 8LXKD9ckFSa5pO2RN7K1Oc98x9x5vmADF4xB1BKfxMHaGpbq/3Fj5evGKgRYfRq5m4gY /IdcLek2kCByxDupXGvMU7gGP7yF+48kbYOnizLfYN3oOPCjSIJMyAYkOYB1sx4jAulm cxWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=awlq6Y1s; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-179699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179699-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c327509si7239351a12.387.2024.05.15.02.25.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 02:25:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=awlq6Y1s; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-179699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179699-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EB44C1F234FB for ; Wed, 15 May 2024 09:25:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E53257C8A; Wed, 15 May 2024 09:25:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="awlq6Y1s" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1946127456 for ; Wed, 15 May 2024 09:25:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715765147; cv=none; b=auV2Du2f5KHtrD39suesEYpD7E3n99rK9VfuUUULSGAC9L7qMNBm4pFthZfazOBjKO2i9gDnuB+/8i/t0vgNoYjUZws12EuMnCBbr+QYHO7ZqZHUePmAtJ6Dfaw98XxERHMgVpJdpCQZW44JRqpdaUrORGZm3HEv2YNq8rjx7YQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715765147; c=relaxed/simple; bh=Jo9dFJJk8Tej8ZAq1jgfwvB+c2XB/wn2uoUdHvg4kCs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TdW30lH/b5BUfwRzIfMWaM6qCfCS0/AGLixzfZCU7CF2r8i+v3U90rSdJi+zWDXB7m4fehscfyb4hvPPbFbdubcuRyeY+v87++Vkrn1ur2/+rKoEy9xXnqnb5aSSgdzWe60c+zgM27sfi4irphPiVs0LP6X67U/AaDs1ZecKC3A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=awlq6Y1s; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715765144; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=cwgmU20xqKj4JxIRaIo+XjkFH1Bokj6japGSVd7cJpA=; b=awlq6Y1s6zDz3Ddr4eanns8Aq6uHVsKNFpMlwuUC2+QajU6IcVxwfgbhH1fA43LwpZ83Wk 46nXYNuYv4nlONUwGkbbP2MSh2SAqXdKn5Trrzw+tItIyFzdol9MWs7JWAdTPoeJKcRFZi ObdYuXrqlKmhrUM37TdjRoWr1CjmJQw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-66-ko1Hznd6OVeBiirvtz07Sw-1; Wed, 15 May 2024 05:25:40 -0400 X-MC-Unique: ko1Hznd6OVeBiirvtz07Sw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4D643803785; Wed, 15 May 2024 09:25:40 +0000 (UTC) Received: from localhost.localdomain (unknown [10.45.224.127]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3649BC15BB1; Wed, 15 May 2024 09:25:37 +0000 (UTC) From: Michal Schmidt To: Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Przemek Kitszel , Michal Kubiak , Alexander Lobakin Cc: Xu Du , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net] idpf: don't skip over ethtool tcp-data-split setting Date: Wed, 15 May 2024 11:24:14 +0200 Message-ID: <20240515092414.158079-1-mschmidt@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 Disabling tcp-data-split on idpf silently fails: # ethtool -G $NETDEV tcp-data-split off # ethtool -g $NETDEV | grep 'TCP data split' TCP data split: on But it works if you also change 'tx' or 'rx': # ethtool -G $NETDEV tcp-data-split off tx 256 # ethtool -g $NETDEV | grep 'TCP data split' TCP data split: off The bug is in idpf_set_ringparam, where it takes a shortcut out if the TX and RX sizes are not changing. Fix it by checking also if the tcp-data-split setting remains unchanged. Only then can the soft reset be skipped. Fixes: 9b1aa3ef2328 ("idpf: add get/set for Ethtool's header split ringparam") Reported-by: Xu Du Closes: https://issues.redhat.com/browse/RHEL-36182 Signed-off-by: Michal Schmidt --- drivers/net/ethernet/intel/idpf/idpf_ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/idpf/idpf_ethtool.c b/drivers/net/ethernet/intel/idpf/idpf_ethtool.c index 986d429d1175..6972d728431c 100644 --- a/drivers/net/ethernet/intel/idpf/idpf_ethtool.c +++ b/drivers/net/ethernet/intel/idpf/idpf_ethtool.c @@ -376,7 +376,8 @@ static int idpf_set_ringparam(struct net_device *netdev, new_tx_count); if (new_tx_count == vport->txq_desc_count && - new_rx_count == vport->rxq_desc_count) + new_rx_count == vport->rxq_desc_count && + kring->tcp_data_split == idpf_vport_get_hsplit(vport)) goto unlock_mutex; if (!idpf_vport_set_hsplit(vport, kring->tcp_data_split)) { -- 2.44.0