From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DEFA31A068 for ; Wed, 15 Oct 2025 09:25:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760520359; cv=none; b=BUKQ0iu7AIS1S+wuIsDKK3LEBQdJLzI4M0R2NpQR9EI3oRrJqBj5D7+a3W31cMbpoaT96XrsbwQSoCfxd1X+fWDfaqLCHGEUt3YvBWqFWTAbjfZh7Ech0uKoFasoXal6u5r8+SPJ6pabfs3LG5DAPa2VXI6HNNhls8HrqSK78ZA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760520359; c=relaxed/simple; bh=5RP+NYGBCAcP9sVodp5C4Ye+lxrfMuSA70t/0cFcM6k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KOIie1cwsN1z56nFfuzghZCGG5TjHuG6jG+EZYrbdjLejzMiKIHZWlUH3GoQBkQe5gY6HZjsn7GJ6AEeqEV0riSgxR32XnREJJktFJ8abTVr7VRHdQA6OK18ZTOCRJ/Iltk6ygavZTvs8sefKuLTdtctsqN++eXvTQ0gBaQj9vY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DTuyCEAR; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DTuyCEAR" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-79ef9d1805fso1555077b3a.1 for ; Wed, 15 Oct 2025 02:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760520357; x=1761125157; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Y27mfP/51Mbfw358eu1yuPjNWUXysGxqMLnfgU6NaWA=; b=DTuyCEARO4iQJQ9fb2IWfSW5dkdngCRKm4XqHkB4PQTxsYQtbIfkER/oJJEHWF1QNq h+N08UwTzYDKH5Z1ff4VRpqIS9KUbJK67EKewtoHRklIho7DoRM6hzzJTe4DXg3n3AgB Pk9KOhWtJ03yY+ibQFlEWzNvahgMuzA6jMx4KDDmT8U/e1BaSw8A/+pChNq+aOqIwzzM Xbor6SV+qrT1hZKJEIsUEJWeCesvmNovglOc9oYEFrRPWL+4lPXfafRV+bBMiqBqoCHd xCQkLoIzSb49dI+zNphxQMwzxHdq+9LmU2N/+WulJgTOUKjCZmVD9AJ7BVUrFmTo8/3Z GRSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760520357; x=1761125157; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Y27mfP/51Mbfw358eu1yuPjNWUXysGxqMLnfgU6NaWA=; b=topYdNYYIDWVmZONruWQPt04VB0nvn0hHnXebbWJ4OBouTdAb+QDJ/MYWPrqLDtk8t 464HgTuGLBp8GK+B2V208YQA1EClB48uq6qUhz+AxHKdIpNIHH4mtng8xceWWpZutY1c BwysFRNsvpXHu8EQvchVDMYqlNAySN3K4XKNNEN7ty1JcWf7/XbgsZiP4Y5ALmQa6yTV oV2yHghNOCHhPs3iYqrfczSlpNUw1C9kW7KjA4VFBqSWsWgWbduxH66JbH4YZRFMviLr F0xJYH4Kdkr5qhKuPSy5P4DjY5vEAF5miEMdvxLlEe70YfAXDcO5nnF37Lpr8GnMORz5 GF7g== X-Forwarded-Encrypted: i=1; AJvYcCUJA24DikadkJDDW3Ca1SmeJFJe1al/LQWGy8c03W0BM7MfG7lldKBbjlleYeP1qd2Kmji2m5M=@vger.kernel.org X-Gm-Message-State: AOJu0YzJ3Q4DemBK0b+XrYGmsQTQ5OAKP8bw3zBR5wpNaphOnpq4gtNQ 4IBlnHzp71GKkOryVAV6D8SbCaIpYMR+RHNbBHpTwNog4Xar7MOUq03j X-Gm-Gg: ASbGnctfyB546NRwzZ54xnv9/GrJiKZgntMY1f3KEKuHVD4iqJbDid5v5Q61k66C8/+ oIJvPx58ImQ5g0UMT20of9R3yRtXBO74VAlDyHWMBztUMXa07owUMT2i7pFqnJtbmy/izN4wmpx Uxv6nlBTdgPuGldg7+phXF51nIGQ8xRNbB+2+Ryk5eESR2kjpwjbOkDvYKthwXi1+mcD20fOHZF iAVJ4hZovwi3Gb1YQNfNi3p84gqCmSjBzM+bsBlk4BL94YOt3RisGZnSm15bmzfRT+WwY9j3Cd9 y7VakwGDAigTUwh/IsvhGjuAgxdT2dMNeAU/FkVvpcb5NTv89arsXZhCRG1XTDedqW4XRTdMd0k qUSudYali9QIDfYCInFaj5Ce+JdIOpwUAFWcrerWvPHehUlaztfgKXGk= X-Google-Smtp-Source: AGHT+IFOSPYmWJ3lrYXq1lbkUMvnb1m+5qpQqFhS676gcwftEHa0HVMKsOIxqxjQgumwhzpSXoOROw== X-Received: by 2002:a05:6a20:3c8e:b0:2ea:f131:e25e with SMTP id adf61e73a8af0-32da83e54b6mr34186934637.47.1760520357151; Wed, 15 Oct 2025 02:25:57 -0700 (PDT) Received: from archie.me ([103.124.138.155]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7992bb19d3csm17895109b3a.31.2025.10.15.02.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Oct 2025 02:25:56 -0700 (PDT) Received: by archie.me (Postfix, from userid 1000) id 3B8E44209E9D; Wed, 15 Oct 2025 16:25:54 +0700 (WIB) From: Bagas Sanjaya To: Linux Kernel Mailing List , Linux Documentation , Linux Networking Cc: Subash Abhinov Kasiviswanathan , Sean Tranchetti , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Jonathan Corbet , Sharath Chandra Vurukala , Bagas Sanjaya Subject: [PATCH net] net: rmnet: Fix checksum offload header v5 and aggregation packet formatting Date: Wed, 15 Oct 2025 16:25:41 +0700 Message-ID: <20251015092540.32282-2-bagasdotme@gmail.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2271; i=bagasdotme@gmail.com; h=from:subject; bh=5RP+NYGBCAcP9sVodp5C4Ye+lxrfMuSA70t/0cFcM6k=; b=owGbwMvMwCX2bWenZ2ig32LG02pJDBnv08+7/YzS1Iov5ExLFkp6veDeYokp//6YBnbNj9pox mcWJHiuo5SFQYyLQVZMkWVSIl/T6V1GIhfa1zrCzGFlAhnCwMUpABN528vI8GD1puM3Hu8yXbLh Qlu7XL77e/658eXJKdnWVx47xt7TfMnI0C4a5atecnLN+9Dcv3YLd//+UHeC663FLHlV/px8ra/ reAA= X-Developer-Key: i=bagasdotme@gmail.com; a=openpgp; fpr=701B806FDCA5D3A58FFB8F7D7C276C64A5E44A1D Content-Transfer-Encoding: 8bit Packet format for checksum offload header v5 and aggregation, and header type table for the former, are shown in normal paragraphs instead. Use appropriate markup. Fixes: 710b797cf61b ("docs: networking: Add documentation for MAPv5") Fixes: ceed73a2cf4a ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation") Signed-off-by: Bagas Sanjaya --- .../device_drivers/cellular/qualcomm/rmnet.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/networking/device_drivers/cellular/qualcomm/rmnet.rst b/Documentation/networking/device_drivers/cellular/qualcomm/rmnet.rst index 289c146a829153..6877a326058206 100644 --- a/Documentation/networking/device_drivers/cellular/qualcomm/rmnet.rst +++ b/Documentation/networking/device_drivers/cellular/qualcomm/rmnet.rst @@ -137,16 +137,20 @@ d. Checksum offload header v5 Checksum offload header fields are in big endian format. +Packet format:: + Bit 0 - 6 7 8-15 16-31 Function Header Type Next Header Checksum Valid Reserved Header Type is to indicate the type of header, this usually is set to CHECKSUM Header types -= ========================================== + += =============== 0 Reserved 1 Reserved 2 checksum header += =============== Checksum Valid is to indicate whether the header checksum is valid. Value of 1 implies that checksum is calculated on this packet and is valid, value of 0 @@ -183,9 +187,11 @@ rmnet in a single linear skb. rmnet will process the individual packets and either ACK the MAP command or deliver the IP packet to the network stack as needed -MAP header|IP Packet|Optional padding|MAP header|IP Packet|Optional padding.... +Packet format:: -MAP header|IP Packet|Optional padding|MAP header|Command Packet|Optional pad... + MAP header|IP Packet|Optional padding|MAP header|IP Packet|Optional padding.... + + MAP header|IP Packet|Optional padding|MAP header|Command Packet|Optional pad... 3. Userspace configuration ========================== base-commit: 7f0fddd817ba6daebea1445ae9fab4b6d2294fa8 -- An old man doll... just what I always wanted! - Clara