Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2485418pxb; Thu, 11 Feb 2021 13:41:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJw63r1t2PZ0tV1VUh3QoVKUwHG/FxQK3Bdd/TfkEo2NYp8b0CDPfR4ejP2B8wRCvp7/92Iy X-Received: by 2002:a05:6402:31af:: with SMTP id dj15mr142886edb.59.1613079670128; Thu, 11 Feb 2021 13:41:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613079670; cv=none; d=google.com; s=arc-20160816; b=FEBuXWfTzI9yoEmKw+SRUfS7QiiXQIX84i+4HgxDS9+BJps3xv28Y5MWDSB+vNkFAz lvmywKPWbVN6ASSjOHs81oE79vXbNC4PzRpLMGMKSQRanRMpbt0tQptc082UmlmEb/RR 0Um7FsK/D4qV4mG8N5pdxzXNbQF7nqdY3vZ+BRF2D34rntdR/BVX5M8ihyGajznpOyM+ DPmiibY4Lm68XrtFenTODA5tWE2qcxkbN7lK4BA9PCuo5MU3A3pvI/jIMcPRpLdnMx7q yQOQZyq29rChbkwGZPwT/wtRIhls7nBgmPhpeIi7pn+JDUDwPW3y+nGGXNb5OvXtA/Zo Ticg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=t0cz53IAX+/FneoR+vsyiw9pb0SsZhCyMYdQLz+4UIY=; b=LTYTIEYSWROitfwn+hJLtQZsXWoaP377rRdCL3m5ee9g90o2+FEXOitqdzJg/Uvi/C HerzdGh6vhlf4YsgrOjlJ02vVjnYOzFjrrx3lQGWJ9ZhpJOHk+0s6J7N7+uDPmXCOL7O xVBHedEpE0jB/OHnYWAnHrPWgiqXhEAZSqhxOYuCa5o6k8ZZ9OkfBZu9z/zv4AAgnxXt rPxOXh3cO8sjSVtyG3b/Wd9ucUvEJlOwzOnEFiGg6AVpiT8mR8K+vEjU1HG3/BIphlAF aT8wKgtLZlR/VVDau53MfGkVfaXsPhYyCXjHMMKssdqWOj0msgtF8VgV8tpgt6Kk4rmg c/Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Ci5VgIDF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qt10si5129573ejb.462.2021.02.11.13.40.47; Thu, 11 Feb 2021 13:41:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Ci5VgIDF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbhBKViM (ORCPT + 99 others); Thu, 11 Feb 2021 16:38:12 -0500 Received: from mail29.static.mailgun.info ([104.130.122.29]:63250 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbhBKViJ (ORCPT ); Thu, 11 Feb 2021 16:38:09 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1613079488; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=t0cz53IAX+/FneoR+vsyiw9pb0SsZhCyMYdQLz+4UIY=; b=Ci5VgIDF0mE1N68kFChKS+6KNDwkJpLQy5PWKpH4b7SE7W85+guMzVXClKMFz9mWY5UryluD hSbtfSsVguqR8XOtkrIXl/x1hD/vfJUeHNdB7lDCdsJi5TPbZBIaTtjIxZiN9K9p3E2luqTV 8SQZVS1CuU/y2hiyKiat6LfSBOg= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 6025a343e3df861f4b30bbdd (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 11 Feb 2021 21:36:03 GMT Sender: sharathv=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id CF121C43461; Thu, 11 Feb 2021 21:36:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from svurukal-linux.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sharathv) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7ABF6C433CA; Thu, 11 Feb 2021 21:35:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7ABF6C433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=sharathv@codeaurora.org From: Sharath Chandra Vurukala To: davem@davemloft.net, kuba@kernel.org, elder@kernel.org, cpratapa@codeaurora.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sharath Chandra Vurukala Subject: [PATCH 1/3] docs:networking: Add documentation for MAP v5 Date: Fri, 12 Feb 2021 03:05:22 +0530 Message-Id: <1613079324-20166-2-git-send-email-sharathv@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613079324-20166-1-git-send-email-sharathv@codeaurora.org> References: <1613079324-20166-1-git-send-email-sharathv@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding documentation explaining the new MAPv5 packet format and the corresponding checksum offload header. Signed-off-by: Sharath Chandra Vurukala --- .../device_drivers/cellular/qualcomm/rmnet.rst | 53 ++++++++++++++++++++-- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/Documentation/networking/device_drivers/cellular/qualcomm/rmnet.rst b/Documentation/networking/device_drivers/cellular/qualcomm/rmnet.rst index 70643b5..8c81f19 100644 --- a/Documentation/networking/device_drivers/cellular/qualcomm/rmnet.rst +++ b/Documentation/networking/device_drivers/cellular/qualcomm/rmnet.rst @@ -27,7 +27,7 @@ these MAP frames and send them to appropriate PDN's. 2. Packet format ================ -a. MAP packet (data / control) +a. MAP packet v1 (data / control) MAP header has the same endianness of the IP packet. @@ -35,8 +35,9 @@ Packet format:: Bit 0 1 2-7 8 - 15 16 - 31 Function Command / Data Reserved Pad Multiplexer ID Payload length - Bit 32 - x - Function Raw Bytes + + Bit 32-x + Function Raw bytes Command (1)/ Data (0) bit value is to indicate if the packet is a MAP command or data packet. Control packet is used for transport level flow control. Data @@ -52,7 +53,51 @@ Multiplexer ID is to indicate the PDN on which data has to be sent. Payload length includes the padding length but does not include MAP header length. -b. MAP packet (command specific):: +b. MAP packet v5 (data / control) + +MAP header has the same endianness of the IP packet. + +Packet format:: + + Bit 0 1 2-7 8 - 15 16 - 31 + Function Command / Data Next Header Pad Multiplexer ID Payload length + + Bit 32 - 38 1 40 41-63 + Function Header Type Next Header Checksum Valid Reserved + + Bit 64-x + Function Raw bytes + +Command (1)/ Data (0) bit value is to indicate if the packet is a MAP command +or data packet. Control packet is used for transport level flow control. Data +packets are standard IP packets. + +Next header is used to indicate the presence of another header, currently is +limited to checksum header. + +Padding is number of bytes to be added for 4 byte alignment if required by +hardware. + +Multiplexer ID is to indicate the PDN on which data has to be sent. + +Payload length includes the padding length but does not include MAP header +length. + +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 +indicates that the calculated packet checksum is invalid. + +Reserved bits are usually zeroed out and to be ignored by receiver. + +c. MAP packet v1/v5 (command specific):: Bit 0 1 2-7 8 - 15 16 - 31 Function Command Reserved Pad Multiplexer ID Payload length -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project