From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796313117; b=0pLxeebjHCa6AdX6xRmmh2k0ZQpcy/Ci1spn69dshRK7Ih8CwbQaCnuu3TJKJ9aBhZ9W 1iKuD1fGUoavJ1bTFFskS/Vko1cFLeXramBHpp+jMKBtiQeIq1n+E5v7aeuQuq2K+swBm D7to6KAAs1tOw2twRNOMfqOYVBoSPUqGD+pJ3g3Z7wKykNxuy769/OoqAjdSmDPMJMqQf z9AUs15dQpn7hPLqtmsr2KRC2fAk1/aEg5PsXIzIZ07R6DcRTUVMGOo/WzY7hv9BwkWSy 5oaWEQNpXbjdx0NPOG7oYuPpE+UUmZS45AVQN/AswI6qXwn9+YWM/OZPjfOWuN9Isfg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796313117; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=QERWBbMX/wECHtUzeA9lYqWnJ3oJCY46arc146DPtYY=; b=ML7D4fcXhxHa6MYMaRA1wfB6H7vIglYUw2uvoWw+Fh+R74dvBar7EdkkX4VfNfDvVKPy yQhot7jQ+D2rDb1YZDvCPOejEZzU7DYowG52/urzEmvYOjaQTZbyN7r06DQYLZn31/PgP aZasgtrPLTGByZq8pIAUEuF4ZEk+RciHbYU7sml4//pQ8vOImQHXJjM5BlV3E0zNE1wVh LjrSazeg9FT4MNwLJ6dwhCeYk5AKZZeU9mInEiHLLY/qGtXiLGZi2RPpDKtM7vHhMU+cz qxyQmY5+r6dLGw0Cb5V0DovzNLRCFXS2B+PpVG1tist3Xbkjftknaw6pzCydWQfQjTg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LhW7HJ+V; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 666B9606A32C; Thu, 3 Dec 2026 15:51:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LhW7HJ+V Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24A791F00898; Thu, 3 Dec 2026 15:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796313117; bh=QERWBbMX/wECHtUzeA9lYqWnJ3oJCY46arc146DPtYY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=LhW7HJ+VzPVEuMeX2azRw/mCaJ9X/CCZHOLAjEASULjMe2rfgk42QjJ3s6JwauJFm IBdiOYObkdpP8BuFp75PTp0V6nTZ+HdLmF5yp0fVMv4qpGXj3hvRYEZtNVOHofCwJV hmmF9ocM9KtgbDKJCOePFvlT+ypTchFvQq+zlpaksiX7lUfWqrV/MYvlRUsyZsfkD+ TcfXgVCEyri0zL8SdB6wy3JGZqNtAG2Ms3DizW9Dicc6cuce7H94J/dMFOeowk9pju 65J69EGkWd26LwFR4w2U65QlBan0zEdFGaZL7P6hN0xF1o+7xwubcPk6M5jGwPFJn8 sHyjfWA2DfIkg== Subject: Re: [PATCH net-next v24 14/14] virtio_net: Add get ethtool flow rules ops From: netdev-bot+sashiko@kernel.org To: shshitrit@nvidia.com Cc: netdev@vger.kernel.org, mst@redhat.com, jasowang@redhat.com, pabeni@redhat.com, virtualization@lists.linux.dev, parav@nvidia.com, yohadt@nvidia.com, xuanzhuo@linux.alibaba.com, eperezma@redhat.com, jgg@ziepe.ca, kevin.tian@intel.com, kuba@kernel.org, andrew+netdev@lunn.ch, edumazet@google.com, danielj@nvidia.com Date: Thu, 03 Dec 2026 15:51:55 +0000 Message-ID: <179631311569.3146.15980565420294958624@kernel.org> In-Reply-To: <20261202150502.3350030-15-shshitrit@nvidia.com> References: <20261202150502.3350030-15-shshitrit@nvidia.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The author's DCO sign-off in commit "virtio_net: Add get ethtool flow rules ops" misspells the author's name. - [Low] Registering `.get_rxnfc = virtnet_get_rxnfc` in `virtnet_ethtool_ops` also changes channel-count behaviour, and the… -- virtio_net: Add get ethtool flow rules ops This adds a get_rxnfc ethtool op to virtio_net. It reports the rule count (ETHTOOL_GRXCLSRLCNT), a single rule (ETHTOOL_GRXCLSRULE) and all rule locations (ETHTOOL_GRXCLSRLALL), taken from the driver's ethtool flow filter xarray. > Signed-off-by: Dniel Jurgens [Severity: Low] This isn't a bug, but the author's sign-off has a typo: "Dniel" instead of "Daniel". It doesn't match the Author: line, and checkpatch.pl reports it as a From:/Signed-off-by: name mismatch. > diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > index 6fcc157464f3e..a5fe4a5b383ed 100644 > --- a/drivers/net/virtio_net.c > +++ b/drivers/net/virtio_net.c [ ... ] > @@ -6712,6 +6786,7 @@ static const struct ethtool_ops virtnet_ethtool_ops = { > .get_rxfh_fields = virtnet_get_hashflow, > .set_rxfh_fields = virtnet_set_hashflow, > .get_rx_ring_count = virtnet_get_rx_ring_count, > + .get_rxnfc = virtnet_get_rxnfc, > .set_rxnfc = virtnet_set_rxnfc, > }; [Severity: Low] Should the commit message mention that registering .get_rxnfc also changes how ethtool -L behaves? Before this patch, ethtool_get_max_rxnfc_channel() in net/ethtool/common.c returned early: if (!ops->get_rxnfc) return -EOPNOTSUPP; As a result, ethtool_check_max_channel() fell back to max_rxnfc_in_use = 0, and flow rules never blocked a channel reduction. With this op registered, the core now walks the installed rules, takes the largest ring_cookie, and rejects the request in ethtool_check_max_channel(): if (channels.combined_count + channels.rx_count <= max_rxnfc_in_use) { if (info) GENL_SET_ERR_MSG(info, "requested channel counts are too low for existing ntuple filter settings"); return -EINVAL; } The ioctl path, ethtool_set_channels(), and the netlink channels path both apply this check. The new behaviour looks correct. validate_flow_input() only checks ring_cookie against curr_queue_pairs when a rule is inserted. Without this op, a later "ethtool -L combined M" with M at or below a rule's target queue would succeed and leave that rule steering to a queue the driver no longer uses. The commit message describes the patch only as read-only rule reporting. Could it also say that the patch turns on the core's ntuple-aware channel validation for virtio_net? Anyone backporting only the set_rxnfc patches would then know they need this one as well. -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202150502.3350030-1-shshitrit%40nvidia.com