🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #17638

[PATCH net v5 1/5] net: qualcomm: rmnet: Account for V5 checksum header in headroom

#17638
From: Subash Abhinov Kasiviswanathan
Date: Tue, 17 Nov 2026 06:07
31 lines
12674 bytes
rmnet_vnd_headroom() only reserves space for the V4 egress checksum
header. A device using V5 checksum offload therefore gets an MTU which
is too large for the real device once the V5 header is added on egress.

Include the V5 checksum header in the headroom calculation when the V5
egress checksum flag is set.

Fixes: b6e5d27e32ef ("net: ethernet: rmnet: Add support for MAPv5 egress packets")
Co-developed-by: Sean Tranchetti <sean.tranchetti@oss.qualcomm.com>
Signed-off-by: Sean Tranchetti <sean.tranchetti@oss.qualcomm.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <subash.a.kasiviswanathan@oss.qualcomm.com>
---
 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
index 5f921cddf82b..fd10aa418be7 100644
--- a/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
+++ b/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
@@ -74,6 +74,8 @@ static int rmnet_vnd_headroom(struct rmnet_port *port)
 
 	if (port->data_format & RMNET_FLAGS_EGRESS_MAP_CKSUMV4)
 		headroom += sizeof(struct rmnet_map_ul_csum_header);
+	else if (port->data_format & RMNET_FLAGS_EGRESS_MAP_CKSUMV5)
+		headroom += sizeof(struct rmnet_map_v5_csum_header);
 
 	return headroom;
 }
-- 
2.34.1
Technical Details
Message-ID: <20261117060737.2764327-2-subash.a.kasiviswanathan@oss.qualcomm.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364974-linux-kernel-netdev=dewy.ru
References: <20261117060737.2764327-1-subash.a.kasiviswanathan@oss.qualcomm.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364974-linux-kernel-netdev=dewy.ru
From: subash.a.kasiviswanathan@oss.qualcomm.com (Subash Abhinov Kasiviswanathan)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net v5 1/5] net: qualcomm: rmnet: Account for V5 checksum header in headroom
Date: Mon, 16 Nov 2026 22:07:34 -0800
Organization: Usenet Network
Message-ID: <20261117060737.2764327-2-subash.a.kasiviswanathan@oss.qualcomm.com>
References: <20261117060737.2764327-1-subash.a.kasiviswanathan@oss.qualcomm.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network; logging-data="2254689"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:xW2M7B78hWxos92VnsiwqEvsl20= sha256:PLXhz6LvX/t1MfipjASdiNXvjT7ljUH4DZ0JgClXZHM= sha1:Dtgx+eY1IfAKut2yku8Cq7QHXFk= sha256:PIwgqJS9R9XfyesHIzZ0kLv8ykZ2lGmvJPE5/40zHNo=
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 2A023114E5C; Tue, 17 Nov 2026 09:09:32 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.95
X-Spam-Status: No, score=-2.95 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=qualcomm.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 40eOWOjQwFjG; Tue, 17 Nov 2026 09:09:29 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-364974-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=oss.qualcomm.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 186B8114E58; Tue, 17 Nov 2026 09:09:19 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 6B1A12BE47; Tue, 17 Nov 2026 06:09:14 +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=1794895744; b=0MsMqGStknsW7XWkvfUCaNZAnhedycDZxlVm6KfaAKhZmafqftIrT8Av2TTKSTiJNP/p JMI220dylDIMduLcoTBNVvE4FX7LAapN30bPTY+luGkM0OcdbcB9s0hZ6wrkyIma1mqnY kIAkCTCYAQQhRrt2b9k4qN3bXVaCaZmQaCXfyumzv749oh3UdD+A+wo3+4oNbePPz+vdo Pi4UU/KeA7sWlYDyzy2RqwR5AdrZo3ze/E1MMJPWgo8PYTSXS+x0XiOB80VWwh3hwnMoN zRknqK27APrH99nQDyc3Hlzksw3MZlzu2e3JY8rl6qywtRWzlWHbviv2XPZNzCiMjPw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794895744; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Received: Received:Received:Received:From:To:Cc:Subject:Date:Message-Id: X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Transfer-Encoding:X-Proofpoint-Reinject: X-QCInternal:X-QCInternal:X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Spam-Info: X-Authority-Analysis:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=hsTRLBmtpbZOCBfIiR7TlwejdQd/X/WdkM8lYKfEiuQ=; b=kM0V4zYAdgaxRmzmJkPtvV0YVTSQi1kUbehsqusK/k9eBOtYVfqQF5MTLoTmOeMOqKdy uC5LbBDgL/NJUS3zFBMwRgDXDpXn87vlgLg35MF0HqfnGBGqKILhq8n5YFHjOHGys0d+t c0vmDQys46qEIsKnUFlOOD5zlszO7RqujjaRYZtPRQ8kb6RLbmQtUvPcncAJXshxAvbJa wlYwYNR5hyT9SNxbTYoH6gh0HraCOA/F8bL19G2mtP1QYl3R0GMql9z3h7G7sf6wQlb7h 7IZBBSJEso9Rk0jJSlRGvcY06yEgbQ1wjaOZGFVDpGIYGRcwY2qQF5IfhHk1/i6o0jw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=DK37VT+0; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=qualcomm.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 EA259606A8AD; Tue, 17 Nov 2026 06:09:03 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=DK37VT+0
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794895743; b=NcqSv+tGH3QS9PDrZcENM7TD/sLWyCS9vy+N12FX6L4uRBnn0m0bZudSLc24/I5I5g2z ptNgHGgfaOGttTqJsO4gTuPN7WtATIsEvWhxEgfMmHQWBucE3JlNw1k1zp9Sgtx9ogE43 5nHuwJ8ng0Co6vtXYvEYc5VJ7MxqCwkS7vPcL+qJrFM1ZlfQKmY16+HyzHR9rDXDBTnuU bka8/cMUmvv+CIXTQoRVGCKVmgLBc7c5iw3gj/jVSTTGInzJ8hco8sXFVerBnAXd5koCz zswvDJPaAHh9t4D7RUqlpp/3nBtfFURS1/1fLXSOns+/qZ5ZRTPlwVmbFtbyA6BOkDg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794895743; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received: Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding: X-Proofpoint-Reinject:X-QCInternal:X-QCInternal:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-Spam-Info:X-Authority-Analysis: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=hsTRLBmtpbZOCBfIiR7TlwejdQd/X/WdkM8lYKfEiuQ=; b=AZ5OZgL8CGYnyif3dgGsQd+YKwyAwAxuZ6ei/UY+pOwdcjMzHyKLborrx0+JYpHUzvdE P06RxJzvVVnF4tNRrQPkx/WfWeiaNYcFhZF7RD5t5prLvqXglqj+MPUX7u6E8cr1q0y4C an8pMlQhhdSubigCTLo8hAuoeNgRcMEPAmNl3kzLCQb6xfa6staKVE+wYN81Ow5byDlwQ JEVxLiKtbD9kEBg0u65JH31SQRl/a3vecCfB1HMrpSH7/gfzlts6x4YF7xTpQ1XFi9qz8 HFyQdg+ImMJltkeYnAj4AzjQZKPrTKdCLcwtbs6hZQ9lheGCQtorZBJqm5Tft30qtxg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=DK37VT+0; arc=none smtp.remote-ip=205.220.180.131
X-Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54B55606A32F; Tue, 17 Nov 2026 06:09:02 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 54B55606A32F
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com
X-Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AH2aQus844338; Tue, 17 Nov 2026 06:08:53 GMT
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=hsTRLBmtpbZ OCBfIiR7TlwejdQd/X/WdkM8lYKfEiuQ=; b=DK37VT+0D9mmBY4+hFuMeNkvmuI ouMQE+OFXr8wUgPLyeifFzTkFVvA6pEX4wESaZmVRW9jZkd3rO7iC+R3UnA8teLG qu77p4T/ImJiqEOLthUeDDZ6RdqXo88MY7D8rCvKJLpDWiCMVmMliISgbobnnEgb vVBFmnUA0qBnT6HD/Uhz77LmDhC+i4EdV133JDfGot1h5yjkvOb6XJvDTwKODKLE kuB4UBOGA6SgVTlu3VtOBuqjW8hIsoJ/KwGMXdp+aEBq4xI1+Gb5MtidPjn83uAm 8R6lJyr9AQjzEUFTbHNc9cPPhTe1gpcKGE54/3U+GvZ7hs08prOk1dqf61w==
X-Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j0c7h11yv-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 17 Nov 2026 06:08:53 +0000 (GMT)
X-Received: from pps.filterd (nalasppmta03.qualcomm.com [127.0.0.1]) by NALASPPMTA03.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 6AH66nZf4106987; Tue, 17 Nov 2026 06:08:52 GMT
X-Received: from hu-devc-lv-u22-c.qualcomm.com (hu-subashab-lv.qualcomm.com [10.81.24.15]) by NALASPPMTA03.qualcomm.com (PPS) with ESMTPS id 6AH68poG4110085 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 17 Nov 2026 06:08:51 +0000 (GMT)
X-Received: by hu-devc-lv-u22-c.qualcomm.com (Postfix, from userid 212624) id 7E968AC6; Mon, 16 Nov 2026 22:08:51 -0800 (PST)
X-Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Subash Abhinov Kasiviswanathan <subash.a.kasiviswanathan@oss.qualcomm.com>
X-Mailer: git-send-email 2.34.1
X-In-Reply-To: <20261117060737.2764327-1-subash.a.kasiviswanathan@oss.qualcomm.com>
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-Proofpoint-Reinject: loops=2 maxloops=12
X-QCInternal: smtphost
X-QCInternal: smtphost
X-Proofpoint-GUID: YRSUssQ6YRlbqitZC-to0Ql_s_IM3YoY
X-Proofpoint-ORIG-GUID: YRSUssQ6YRlbqitZC-to0Ql_s_IM3YoY
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE3MDAyNCBTYWx0ZWRfX7u7EiLS8nueR 5DXz+dinphHsyGdY6u8gn5Bej1hO/e1rNbV371843vp9ln3JpvrRsvB1aF8+RRSn/RFlMO3kFcl jy18lkgZ7U6QrY29Osiwz02VcMApw713kfn5xXpatIfKH2RmPqV/iRl+HD9Jgx25ffUhdsRgCOv //4OCASYZ3Z2lXmXuAJbOKmuZEncTFbg1N5kIZa0CGhrgkDl8Y6MjdaVbVNVmSMm134k7j82hnH 421jVCzxJ5GE9nWv3E9LOs2hQQGUwc6c6P8znhiV0i6Donb8BcB2fsinLg80wox/gxSSgyI0wpz UK1gZub8Ct35b3AiJpCVj3WIkVZicAyFc67iyfrrr/pPHjwoZBiwvugxdicNsudoCYQGcgQHV+7 KOWQ14OR4ojtuL6FuCUq3XBjcj3nC52zb3L2f/6J3mKnjK20tdHki2fqjUtS1sBe2AFBE6CKmXB 3xWUPMxhftXx8o2qfAg==
X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE3MDAyNCBTYWx0ZWRfXx1W/Vu5ZR/sy 0Eg2Du9F7nXJvlw/LTrNhzzUkZ2kmlkE4yvjC2+ZLHiRzzTc/3bM4ZY+exdbqZzebtho3lsRn1s R39Sf8T8xRMbZi7kO1YqpPWJB4rLuxA=
X-Authority-Analysis: v=2.4 cv=bobZl0ai c=1 sm=1 tr=0 ts=6afbef75 cx=c_pps a=ouPCqIW2jiPt+lZRy3xVPw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=S7Ml1HACSiscvrRVoNkA:9
X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-17_01,2026-11-16_01,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 suspectscore=0 priorityscore=1501 phishscore=0 clxscore=1015 malwarescore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611170024