๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20089

Re: [PATCH net v5 2/5] net: qualcomm: rmnet: Size the first device from the requested data format

#20089
From: netdev-bot+sashiko
Date: Sat, 21 Nov 2026 07:04
54 lines
10066 bytes
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 commit message understates what the patch changes.

--

net: qualcomm: rmnet: Size the first device from the requested data format

This commit moves the IFLA_RMNET_FLAGS merge in rmnet_newlink() so it
runs before rmnet_vnd_newlink(), and passes the resulting data format
down. The new device's MTU is then computed from the egress headroom of
the requested format, not from the format already stored in the port.

> net: qualcomm: rmnet: Size the first device from the requested data format
>
> rmnet_newlink() sizes the first rmnet device from the data format
> currently stored in the port, before the requested IFLA_RMNET_FLAGS
> have been applied. The MTU therefore does not match the egress header
> overhead of the format which ends up being used.

[Severity: Low]
This isn't a bug, but is the "first device" wording narrower than what
the patch does?

The reordering in rmnet_newlink() in
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c is not limited to the
case where port->nr_rmnet_devs == 0. Every newlink now merges
IFLA_RMNET_FLAGS into the local data_format first, then sizes its device
from it:

	err = rmnet_vnd_newlink(mux_id, dev, port, real_dev, ep, extack,
				data_format);

Before this patch, a second or later device on the same real_dev got its
initial MTU from the port-wide format left by the previous newlink.

After this patch, that device is sized from its own requested flags. If
no flags are given, it is sized from RMNET_FLAGS_INGRESS_DEAGGREGATION
alone. Its default MTU can therefore differ by the size of the checksum
header (no checksum vs CKSUMV4/V5).

The message also doesn't say that port->data_format is a single setting
for the whole port, and that every newlink overwrites it.

Could the subject and body say that every device created through
rmnet_newlink() is affected, not only the first one?

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261117060737.2764327-1-subash.a.kasiviswanathan%40oss.qualcomm.com
Technical Details
Message-ID: <179524464231.3135.13518069516506821127@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368287-linux-kernel-netdev=dewy.ru
References: <20261117060737.2764327-3-subash.a.kasiviswanathan@oss.qualcomm.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368287-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v5 2/5] net: qualcomm: rmnet: Size the first device
 from the requested data format
Date: Sat, 21 Nov 2026 07:04:02 +0000
Organization: Usenet Network
Message-ID: <179524464231.3135.13518069516506821127@kernel.org>
References: <20261117060737.2764327-3-subash.a.kasiviswanathan@oss.qualcomm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3352624"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Z1iaKlY4UetwM6LY4tiHehYxToY= sha256:BPXHWfEBtoty64/P3nzTo2nANBGt/ykJuA/dL1qZ93g=
	sha1:TfEAZilUhTl5ciYwERPeJPPWUe0= sha256:mcv1xKS4RDctQ2liQUPytAXWk020DKp4TiI74iGyv10=
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 03D0F115B32; Sat, 21 Nov 2026 10:04:26 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
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 DgMyKolMzDV4;
	Sat, 21 Nov 2026 10:04:22 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368287-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id EF239115B2E; Sat, 21 Nov 2026 10:04:11 +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 637BA652F7; Sat, 21 Nov 2026 07:04:06 +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=1795244645;
	b=EVn+d2izchpezsa56B/0nrO19JRo4BdZzcVO/8eGXhUi2MpkGD5/4WjmOHzmcEkYY9Wb
	 YSv+e8/jlkrEI6WELOA71n21okG4a+nNwW+cXlL1//cEkn9dKhAP9vvsoKgOJ4YtbTHxT
	 qhV75LHIQ+uIsKpSMIMoTPSBgSWVtLXnWzUFpHJjcvO3J5edettoFi2/ak6Gd3kklBuAo
	 nK76IPxibnvWUfVdxrXbmWphOZIkleM+tTUdTpIfvHJdLSn3AbZEczfzGBVFz3XkPGdDb
	 sL0oy/ModLqDB8LNHmoLUZaXWFLfehdXUY3MGS/nrzJTsKyVLPwlpC1qY/ereY9u7ag==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795244645;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=ib1cVhC/gicU8Q7E4PlbGBhkmfSff8Izf/vgTL+7LIE=;
	b=Cx5gzcoM+TVj7x1ypFgEIwSDACP0qWIblvtBBSJLZhSMHY03xIhchjTFs+za85k+Chkm
	 OR6hp5WDW1wElBdYICHJkgFClk4Zkhd2CCwQYH6gSOG7WMRcmur9esaXKOVn8ameKIZxG
	 PQl3ER79bpCpXv0kPQcxljiSP5AMDR6jBTPbd//B6FwW6ksHhDgaNMYmikNCwYmD7HGhI
	 tDqxBlQ3PL7k/5o574zNAJ6sj7mS/CgibyXw8EMmSwPpfP1QKhX1fgNPiH9kspHoCoBSn
	 Ft5Vz4iGFLa8LKNmB+H4FvFQTFiQ/iK9JtPkBXXUP7ukVEP/w5ECyJpz2ONJMptX5MA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QspA9gdF;
	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 70185606A680;
	Sat, 21 Nov 2026 07:04:05 +0000 (UTC)
X-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=QspA9gdF
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795244643;
	b=R6zelO8KMsadLCcU6bjIj3srBM1e6XLDzapljuJUPErG82P1shoLXZDVEGA/sXyCE2au
	 GI+OCFXWp4M/tnZERxwlxP1EcXw2sTaRQ7e4olfwOqw704LTF/8cUrwxRxun3eJohR6+Z
	 1ANNgrQ9vz/LQbJyoik/GdXlmuGcMrGttympgrtfN2hQMk9T51p3OFU0Jf96Enbnp+MHd
	 JBQvS/gVG4Vwp9roFctQkNTeZx8YNr633U3neJPPelwuXMbg+FSJFaTxscEIqWn9+nK1L
	 OkR3O0U5MTGUsnp3vW5vR5mR+XUzubWc0exF9akevI551yQkXWBfupEIJpZofiLI77Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795244643;
	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=ib1cVhC/gicU8Q7E4PlbGBhkmfSff8Izf/vgTL+7LIE=;
	b=EI8p8yDOLKhBA8gqgeUKI6uSLq8ME5rfeXdgmEx1ngVuEv3I1ZrCaj9DQhBlwUY2FmWV
	 r1V13Nx43wMatNCz82ZDGFRLkTI8IYZ++HMqH7ErO5I+cLzfryaBoXvfDggUGeN84Woow
	 CoWCbAnbp7aEibgvoEFrmUVPZRgH0kWt0OHS/46skMv17ld+b9kqqO9GpaasgHrmHY1Eu
	 ubr8bg2mHmUJsxFTxuv+M3lAzj8wwfkdn4eDDU9CFEjDzihI5mCo/qh0jRkfsYobDui5D
	 lDJqyXavxX2BkTNJFLQhh/bFXeuCQ3fqzTvZSJvNO42ul5gG26yBwOjKnsDg4hdw9rg==
X-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=QspA9gdF;
	arc=none smtp.remote-ip=100.103.45.18
X-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 A2E26606A320;
	Sat, 21 Nov 2026 07:04:03 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C497B1F000C4;
	Sat, 21 Nov 2026 07:04:02 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795244643;
	bh=ib1cVhC/gicU8Q7E4PlbGBhkmfSff8Izf/vgTL+7LIE=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=QspA9gdFBgd7721Lu04WSUlmobPeVzacnre8GSQwekrR+A6aMqBsHPhR3FPlFkIY4
	 wVe120QesIPBq1IPa70Sbq2euDbb6Hn+KLBul53NXRC+Fqgvx4j7YcJFKq8XZNxN9Q
	 wpP6oioVdSNhzR+DP9tFmzYhiiaWakgXNCJIYSmCnA5V3nGMLuj3rkVu9MnCQyiynQ
	 RpPE8KaoH0kFEa7iSe04RmKermH0ONWB+d3yLY1iuJq1bZJfZs+lCOb72ACgvzP/ua
	 Oy9nX+JmIgXpL6wCTnW/0yQvODn5xuuXROKa4uKqiDTgKDUw+hl3y9ew9YQTVmqRNO
	 eQGLBDEBFUI0Q==
X-Cc: sean.tranchetti@oss.qualcomm.com, andrew+netdev@lunn.ch,
 davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <20261117060737.2764327-3-subash.a.kasiviswanathan@oss.qualcomm.com>
X-sashiko-severity: Low
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