Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3761526pxj; Tue, 1 Jun 2021 12:30:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMDMEZ5E45+l+6rXGvQBLccCtttMhdku2dk10hWFdOV+aS0OwT7NZP5u7KcULa2bWlCv1o X-Received: by 2002:a17:906:76d2:: with SMTP id q18mr18323070ejn.294.1622575843320; Tue, 01 Jun 2021 12:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622575843; cv=none; d=google.com; s=arc-20160816; b=0lQyQQVTz4nfAQxvwuJc4CXqbh0oTeUqpxT3KDmZCyF0fYWZvwzYI7GFQaqdWUmq/O 6rM9Y3PJlBr4yEN8V+coW5tH+nyRlwIUcN2AHR2SzezdLBCG9XvP1KCcnMBAla4FiPTF 8PKGV/EJcNdhPBsLlSj8lOu4NwuMmi/Uwrw7aXFWcaYUs2n8l5RDFnxKhG91yvcVxc7o czjuFIbp+BGgYLYCFIAOBXK5qINv3hx0Rs+w7uXH8IdLp7HWz0lB/oYSFbofg88Sght1 CYoAn7NXn4Xu7qwhxZnvQyB1DU14OSSBf95eMQ/4D7RC0ie3bCWim2OLwi1ZF/LD5QfN xlAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=IXojnZomeL2M1SfU/E6nWYLv9q7MmRAE/sdo4Qiv96k=; b=WAHiM9xno8XYZ9oXjQdhDFftDjR7xp0YnsSR1q8Kt+DygA0SbLUdsFAZRjaa83GwLV bvkFm/f7+hRSnA6FlWDPpoQWLw6l7NyeEoDm6r3D+UNmRSxM9gWjHyrDjcSWPHgJl6z4 HhbVjrdRTjV6ctiVLR6Lie+I3yYIYBnFN91xGcog7pSbqMyXsMdpfMzsFcJUtLEutO1c lURfO9JZ+7jGVMjkMcF7Cx2lBSl9GJqHstforELFwB2kbgz5ujGqZKJvYDGS1+nqGI/7 dtfqYnWl8R543BdiVBXCcyKlm+GzPtGf8sOwgP41547bV/GHaDjGuJs1aHbe+1r9EtgY DyJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=iodjb3h9; 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 u7si953eds.594.2021.06.01.12.30.18; Tue, 01 Jun 2021 12:30:43 -0700 (PDT) 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=iodjb3h9; 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 S234758AbhFATax (ORCPT + 99 others); Tue, 1 Jun 2021 15:30:53 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:18088 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233853AbhFATav (ORCPT ); Tue, 1 Jun 2021 15:30:51 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1622575749; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=IXojnZomeL2M1SfU/E6nWYLv9q7MmRAE/sdo4Qiv96k=; b=iodjb3h95sBKhR/IS1l8C/6XuFkbd9/02MivutKmMucE/CwA9bwBJ3F51251tw3Skn7Ucv2Y DJfEsf7B0XUufarr79SGCUo/Yp8+Azv82lO/X97Qp1Z/GkxyMIxXJqt3e3dJaTCoJ5yk2jQG b1Cha/wYKXx16c8LPMUylvbtttE= X-Mailgun-Sending-Ip: 198.61.254.9 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-n05.prod.us-east-1.postgun.com with SMTP id 60b68a71f726fa418865fe07 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 01 Jun 2021 19:28:49 GMT Sender: sharathv=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 9BEB2C43460; Tue, 1 Jun 2021 19:28:48 +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 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 3FAF0C433D3; Tue, 1 Jun 2021 19:28:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3FAF0C433D3 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, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, subashab@codeaurora.org, stranche@codeaurora.org Cc: Sharath Chandra Vurukala Subject: [PATCH net-next v8 0/3] net: qualcomm: rmnet: Enable Mapv5 Date: Wed, 2 Jun 2021 00:58:33 +0530 Message-Id: <1622575716-13415-1-git-send-email-sharathv@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series introduces the MAPv5 packet format. Patch 0 documents the MAPv4/v5. Patch 1 introduces the MAPv5 and the Inline checksum offload for RX/Ingress. Patch 2 introduces the MAPv5 and the Inline checksum offload for TX/Egress. A new checksum header format is used as part of MAPv5.For RX checksum offload, the checksum is verified by the HW and the validity is marked in the checksum header of MAPv5. For TX, the required metadata is filled up so hardware can compute the checksum. v1->v2: - Fixed the compilation errors, warnings reported by kernel test robot. - Checksum header definition is expanded to support big, little endian formats as mentioned by Jakub. v2->v3: - Fixed compilation errors reported by kernel bot for big endian flavor. v3->v4: - Made changes to use masks instead of C bit-fields as suggested by Jakub/Alex. v4->v5: - Corrected checkpatch errors and warnings reported by patchwork. v5->v6: - Corrected the bug identified by Alex and incorporated all his comments. v6->v7: - Removed duplicate inclusion of linux/bitfield.h in rmnet_map_data.c v7->v8: - Have addressed comments given by JAkub on v7 patches. - As suggested by Jakub, skb_cow_head() is used instead of expanding the head directly. This is now done in rmnet_map_egress_handler(). Sharath Chandra Vurukala (3): docs: networking: Add documentation for MAPv5 net: ethernet: rmnet: Support for ingress MAPv5 checksum offload net: ethernet: rmnet: Add support for MAPv5 egress packets .../device_drivers/cellular/qualcomm/rmnet.rst | 126 +++++++++++++++-- drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h | 4 +- .../net/ethernet/qualcomm/rmnet/rmnet_handlers.c | 40 +++--- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h | 11 +- .../net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 149 +++++++++++++++++++-- drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c | 1 + include/linux/if_rmnet.h | 30 ++++- include/uapi/linux/if_link.h | 2 + 8 files changed, 321 insertions(+), 42 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project