🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16775

Re: [PATCH net-next v4] net/mlx5e: advertise tcp-data-split support

#16775
From: Dimitri Daskalakis
Date: Sun, 15 Nov 2026 20:59
49 lines
14049 bytes
On 11/15/26 2:39 AM, Nimrod Oren wrote:
> On 11/11/2026 19:05, Dimitri Daskalakis wrote:
>> Changes in v4:
>> - Nimrod and sashiko pointed out that not reporting DISABLED for
>>   tcp-data-split makes the feature look unsupported. This conflicted
>>   with my attempt to block users from setting DISABLED, locally sashiko
>>   found several scenarios where ring changes would get blocked.
> 
> Can you please share those scenarios?
> 
> I think blocking 'disabled' was the right direction. Allowing it doesn't
> give users anything new, only a way to pin HW-GRO off, at the cost of
> another dependency between the two knobs in mlx5e_fix_features().
> 
> We can still report 'disabled' when HW-GRO is supported but off.

I should have saved the review, I reapplied v3 and added an else to 
disable tcp-data-split if the merge type is not SHAMPO, here's what sashiko
reports.

 [Medium]
 Does this reject a value that get_ringparam reports?

 When HW-GRO is off, mlx5e_ethtool_get_ringparam() reports DISABLED. That
 is accurate, because SHAMPO is not in use. Before this patch,
 "ethtool -G eth0 tcp-data-split off" was accepted in that state. Now it
 fails with -EINVAL whatever the HW-GRO state is.

 This affects any netlink client that reads the rings config and writes
 the same attributes back. The whole request fails, including any ring
 size change sent with it. The changelog does not mention that existing
 users of "off" will break.

 A narrower fix may be possible. mlx5e_fix_features() could clear
 NETIF_F_GRO_HW when hds_config is DISABLED, like it already handles
 ENABLED. That would also fix the mis-reporting and keep DISABLED usable.

Netlink users that call get then set with the received parameters will
get a failure. This generally applies to users who save the current ring state,
and try to revert back (via netlink or ethtool). A subsequent sashiko run
highlighted the manual use case via ethtool.

I recall sashiko had more severe feedback, but those cases may have been
from the incorrect feature updates I fixed here [1]. The feedback is technically
correct, though I'm not sure how much it matters in practice. v4 implements the
narrower fix sashiko suggests, so it works for users who write back stored ring state.

[1] https://patchwork.kernel.org/project/netdevbpf/patch/20261017005401.1582755-1-dimitri.daskalakis1@gmail.com/
Technical Details
Message-ID: <cc814750-79f5-4eef-9c9b-e7bda86acc78@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363851-linux-kernel-netdev=dewy.ru
References: <20261111170558.1654691-1-dimitri.daskalakis1@gmail.com> <baf3a990-c9a7-4bf1-a1a7-a2b8976591bc@nvidia.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363851-linux-kernel-netdev=dewy.ru
From: dimitri.daskalakis1@gmail.com (Dimitri Daskalakis)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v4] net/mlx5e: advertise tcp-data-split support
Date: Sun, 15 Nov 2026 12:59:10 -0800
Organization: Usenet Network
Message-ID: <cc814750-79f5-4eef-9c9b-e7bda86acc78@gmail.com>
References: <20261111170558.1654691-1-dimitri.daskalakis1@gmail.com>
 <baf3a990-c9a7-4bf1-a1a7-a2b8976591bc@nvidia.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1897407"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:vhO/O5T10zeEjULm5B2r9Xx62L8= sha256:HuAJKMnhz6FFPfG1y6DxQXlCmIHwM0N7TApsaNfN4Y8=
	sha1:6PH2Rl0ORzCTQN4CdJaieASDRnk= sha256:/11i2f83M6Q39kdGYib8GQQd5Z+FC4PhNDevi2iH9uQ=
Content-Language: en-US
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id E62EA114A67; Sun, 15 Nov 2026 23:59:33 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ByI--6mzcKla;
	Sun, 15 Nov 2026 23:59:30 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363851-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id AA1FD114A1D; Sun, 15 Nov 2026 23:59:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id CE77E2BBF9; Sun, 15 Nov 2026 20:59:16 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794776355;
	b=GpQYTSqQLRUnGQ7kpuwqaoewWsGofOVQOSwH6aaOpvyXXTWBRLS1xYdCrpnYCt/sYI32
	 qzsxBwnZYqju17JHn4tqM0OsxRJ2gUabXjEI1exVXM3SSGHJRlD1YdhHMvmophtqjYhwV
	 CjZTqFjgErGrnmS2DKd/hou/1Mo5nnlmxcR1Xy6LIYCwxKRWTH2GEkoyhaK1YqpyavLiG
	 ao3NZO1vJyEQPpFyc2jsyq57Gxzs8EZCjcnheb478Tm1StZYEerCCtHIWxmqhe+0JiLqK
	 Fb1RrWmOhZzIU+87ZzgcEKPM40wl6CxX6JGEh/vKVyP7Bcr3Fuium1RifZh1YTpQ3ng==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794776355;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:Message-ID:Date:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:User-Agent:Subject:To:Cc:References:
	 Content-Language:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=OSA4KWND5TQ05YE5/BgdoX8/OyyIe/X6PGTfGzhUEYU=;
	b=FKFoSmEwLo41W/9LChL+9SbfMoSaNHgKLsB3AG720LRdG2/afmqRHyA5RO1dS5EiVSxT
	 5aLrAEJfmVoyv8Cu6J2xVDvswKoT7Z9KbB5kL/gFaXmjOiKBNKg+94+rOjCiJW8fzKw5d
	 UA8gk2lJzyE3ruqcXbm99+d1W9dgM4ksRlivm4t7lJq7LZjNUKOgm90unyHfYlbxNkziP
	 14MHyIEbusXpeBI57qFlXyfV1Tu0+vhPrXY6otBRCPIxOx/kOCDq1N1PUhqF2Q+oNvV0O
	 7OmvcaKHDl/P55t/zOhsHwYloISjUS7WUahXX5Is3VIaEY7sm9EFK/otQqsKQt3EUBQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=QhJZICFu;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 63A61606A330;
	Sun, 15 Nov 2026 20:59:15 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=QhJZICFu
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.181
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794776354;
	b=4ohi9jnQHExG2X+baUGgtpiqIHCCv/PPhjfFu8SGxsSaAP554P+mkkoFsTMo/R628fr0
	 XWDw0v96vOdp6iz39fqOcWGPh5FEkXQxxqBlLj93U2NhELDDrPJk4Zj6kE9klmXpiJiMY
	 EiprLQ3+wd//V9bXCmZTwfjmwcYG0cMei1ZkSvUHNJIfeOaDhunvzljb/TICIB6fW7GUl
	 ibRIo58IyNuRxZhiNEk4BJGGHMotwa988wDknBoOs791u54qTvM0lxj/aVpSKMJLW15Oh
	 kbZMwOxDy2JgVSNxb002mEmFAUPgYjkErkWljbDtzhE1xf+yHLy2dSW1sHTZEwyp+rQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794776354;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
	 Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:
	 Content-Language:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=OSA4KWND5TQ05YE5/BgdoX8/OyyIe/X6PGTfGzhUEYU=;
	b=TufhSCwxqeJBhuJG+A5BOqG3tOROhrTaukpDM5TbTA0mVBbyUi80XRMGWY5MoTC7XDr+
	 0iJFRsljgNlr7CFCbr6DX5VKqHSsLkp86U/GbF5haL83FoQKuS5x0YDf6v0L98jijMBYb
	 w8lW5UiRb/hzYhiKGyqzItznvd17CmWsNuqpXpjjgXfcW9G9dWiQSF3SfHH3HqQDP3W8A
	 5z6tFpvazo3J81GlWfbyJrfMpsjFOx2VhMrQNS0h7U1m0wvWpeB8CA3B6x06uIahSf6d6
	 e28qs9qmFasfjG3rJ1pIzl01j1XhioeI1ee1zN+J+pmuAX49biGgioondVnzQ9VlkWA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=QhJZICFu;
	arc=none smtp.remote-ip=209.85.128.181
X-Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3716A606A323
	for <netdev@vger.kernel.org>; Sun, 15 Nov 2026 20:59:14 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3716A606A323
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-8b3402105b9so20169857b3.0
        for <netdev@vger.kernel.org>; Sun, 15 Nov 2026 12:59:14 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1794776353; x=1795381153; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:in-reply-to:from
         :content-language:references:cc:to:subject:user-agent:mime-version
         :date:message-id:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=OSA4KWND5TQ05YE5/BgdoX8/OyyIe/X6PGTfGzhUEYU=;
        b=QhJZICFuCX0Ir7QVkDno0a5nNP6Uh0X662PROz4NaQBihwFiAtqR40VMSOdjyjvcve
         FEo2d4WPi6qku6sr0xseKPsx/w+BfEQFiG6x5a86WNbtkVtT2Ker2LRKzmJ/0VtnMbET
         vtrp8f0U929gP3WovWTJw9+FC5NK16ZkCYkgB6IIBg6Pd3BR5PgY0g7Vedg154Kj9ydP
         Aoni0QRV0ImTmMmeDWOdX4+x43z0wXE+/w8nxPOBIqOI6kXgB/ab/YghlZOYRoxZQy45
         HB1qqwzSKgh59VWQCah//MzurjwIM3V56juArcgxpYfeUxA5qJMKX25q/zDOzz+z+jxL
         sabQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794776353; x=1795381153;
        h=content-transfer-encoding:content-type:in-reply-to:from
         :content-language:references:cc:to:subject:user-agent:mime-version
         :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=OSA4KWND5TQ05YE5/BgdoX8/OyyIe/X6PGTfGzhUEYU=;
        b=qsd+/RR2npQ66ns8EZDRgydfA6125uIyAnx91Tt2OBNV9i5kSLppeaOOQgqvAlJJzx
         +33HWT1gWRvYLS8UIYIGh66oUD3qtnOB43GLq7yTPcSOcPR5R5yGfQY0PffrsEsm8ZqF
         NFZIFEKJkR/eqzYk/EkF8pFhfTXIbFb830p6Xzi4xEuBzazTqxVY2MbiSQw/xmDgys0i
         /2T/JapXAA/ebCRSTZFLBAjrlEFpayBdoIonCOnQS4vu91IJHrLrJYqSK+5qQ5a4ltVr
         i8BsVDc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b0:f116:1200 with SMTP id 00721157ae682-8b4aa35a461mr43071707b3.85.1794776353242;
        Sun, 15 Nov 2026 12:59:13 -0800 (PST)
X-Received: from [192.168.4.64] (76-224-22-216.lightspeed.sntcca.sbcglobal.net. [76.224.22.216])
        by smtp.gmail.com with ESMTPSA id 00721157ae682-8b4aa933d5esm71793097b3.19.2026.11.15.12.59.11
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Sun, 15 Nov 2026 12:59:12 -0800 (PST)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Cc: Saeed Mahameed <saeedm@nvidia.com>, Tariq Toukan <tariqt@nvidia.com>,
 Mark Bloch <mbloch@nvidia.com>, Leon Romanovsky <leon@kernel.org>,
 Andrew Lunn <andrew+netdev@lunn.ch>, Eric Dumazet <edumazet@kernel.org>,
 Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
 Gal Pressman <gal@nvidia.com>, Cosmin Ratiu <cratiu@nvidia.com>,
 Dragos Tatulea <dtatulea@nvidia.com>, Carolina Jubran <cjubran@nvidia.com>,
 Björn Töpel <bjorn@kernel.org>,
 "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
 "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
X-In-Reply-To: <baf3a990-c9a7-4bf1-a1a7-a2b8976591bc@nvidia.com>