Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1329238pxy; Fri, 23 Apr 2021 05:50:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5DEOgkv5PlDz9v9k/MPgJNPT1A1BpxWUXSLF349utsrbUSn59HqGOiQ4EMEZrBexZwjv7 X-Received: by 2002:a17:906:9990:: with SMTP id af16mr3904190ejc.195.1619182202727; Fri, 23 Apr 2021 05:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619182202; cv=none; d=google.com; s=arc-20160816; b=Tecy0QTbpysBXCXhHLYuIFRiLxb7UsuPP+QzImbT/Rz4A39EICZjARcCUGJqiv0Dpf unFkX1zycFK3LgWTmXuIqdKugk3aK5GtNF5NiKiSoZ44GIlmbb9dKLKkjhBujk47lwAQ F5ycXfauFHUFh2/vGzLx6XRYUFL0Gn0YJiREXv1v69MFVj4GgF0qxQSphQH5MfY5jbX+ pFkf5HI6SmXN4T5szAtm2JLd7GILkas11MGEA7l6A/ax2JxjTIS0LF935fPwLCdEFvPr LR6/xsW2J8Rd6NsE5nY1YgpxtG6yYQnjtXwreIQbLAc0JaPRmsS/NFVthLBp5I0Qv/g2 DfDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=mWfAtGdxpFEp4LVoo+rqb8Rn9YokussnKSoryb4RU5M=; b=gZzWnBJ9CuAM9Lm6RiIERmhcP8XQ08BuUAtmftAOEWfe9QOunWOqUm6cKhVnU/AazN +KNoxXOyhOP8AFVplWrlg3FYXv2bxG9VkVFsh6lkKlRSopIlZWhYE8Tu+EJjfHkfv9wR Oodeit2aqcFyhCv/HLuJrARqCIXOcX+BXvRdiT+v7iFYzcAE4JzcT7lgX4Eox1B4F5Az I6EbnMBUUyfw4G/YHY4uq5zsiapfbgx6zyuFemTJM3cqtQYBrO96Le1ciCSQQepYiLzH vH8piLM8PIEBHG29A+HiyaqpRVaQtWxTtwGAxv9QK7Q0aFTQIuOiBWW/BNJbD2OBjFGv OX9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=GPM1lSeP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si5184661ejt.333.2021.04.23.05.49.38; Fri, 23 Apr 2021 05:50:02 -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=@ieee.org header.s=google header.b=GPM1lSeP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229479AbhDWMtV (ORCPT + 99 others); Fri, 23 Apr 2021 08:49:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbhDWMtV (ORCPT ); Fri, 23 Apr 2021 08:49:21 -0400 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE11CC06174A for ; Fri, 23 Apr 2021 05:48:44 -0700 (PDT) Received: by mail-il1-x133.google.com with SMTP id l9so4841217ilh.10 for ; Fri, 23 Apr 2021 05:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=mWfAtGdxpFEp4LVoo+rqb8Rn9YokussnKSoryb4RU5M=; b=GPM1lSeP//ZNKPiXG9KWBfZNpNlCEb4eR/mfOGUqMRlymkABLJtitF7ZktuD+LYuqF Q2w+25DvrTWzTaQVM7ylqyGA4V6T6n8EygMAMpz66XPOMzIiAQJTt9ovnZ4Nx6z2OwtS z+IqQAXWHcmZvGsYlknsdjJlsvndBvKI3SKbY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mWfAtGdxpFEp4LVoo+rqb8Rn9YokussnKSoryb4RU5M=; b=A3Le+2QG2Wza1aivrK7m67CB1gNpZj821MAhR9TrLkTYSMuMGUxAjXS8goXuir6ru9 tLT6q+szq+UCJPKaZpT31qJ1pLQ2uycrI610GeeAF7M9FKeHlFUnJ+IVFB4jb+20gB19 BZE2zWoiBDTUDVBhEOFpm4ehxLXJPL2d//ZEBwoUaoMflY82HBONEvGIP3RoOJ9h540g nG2hJmIC7i4KuLqm5/NJmhkcTWHtFrJYvPwOY54HVzwl80UvK9q0FHqxoiPc+PmEXOap jmdXw3aG8tfeTeDthY/xNGT/bDIyPENW1BaoXjuBmw3uzwOetmvvEnwRR7K1vB3oL9kw Mk2w== X-Gm-Message-State: AOAM532q0A8D0R1XBKhQ+xVfMbjLogNEs7Oqobavg0MIJ0qVzLjc1/12 ++flwzfpNotO1/sBGy/e86WCKxkvLjpkUQ== X-Received: by 2002:a92:d143:: with SMTP id t3mr3024278ilg.241.1619182123496; Fri, 23 Apr 2021 05:48:43 -0700 (PDT) Received: from [172.22.22.4] (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.googlemail.com with ESMTPSA id q5sm2732695iop.17.2021.04.23.05.48.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Apr 2021 05:48:42 -0700 (PDT) Subject: Re: [PATCH net-next v5 0/3] net: qualcomm: rmnet: Enable Mapv5 To: Sharath Chandra Vurukala , davem@davemloft.net, kuba@kernel.org, elder@kernel.org, cpratapa@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1619180343-3943-1-git-send-email-sharathv@codeaurora.org> From: Alex Elder Message-ID: <2c7d9807-0b9c-2334-b059-c3c18f63a341@ieee.org> Date: Fri, 23 Apr 2021 07:48:41 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <1619180343-3943-1-git-send-email-sharathv@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/23/21 7:19 AM, Sharath Chandra Vurukala wrote: > 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. Unfortunately our e-mails crossed paths... I'll reproduce my comments on v4 here. I'm sure you're going to grow tired of this feedback. I see one thing that I think might be a bug in the third patch, but maybe I'm mistaken, and you can explain why. I tested the code you supplied me last week, and with a bug fix applied I found they worked for: IPA v3.5.1, IPv4 in loopback, checksum enabled and not IPA v4.2, IPv6 using LTE, checksum enabled and not Both of the above tested ICMP, UDP, and TCP. I will retest with version 5 of this series. I did not test with IPA v4.5+, which is unfortunately the main user of this new code. I will try to do so with your updated code, and if all testing passes I'll send a message with "Tested-by" for you to add to your patches. -Alex > 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 | 31 +++-- > drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h | 11 +- > .../net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 151 ++++++++++++++++++++- > drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c | 3 +- > include/linux/if_rmnet.h | 27 +++- > include/uapi/linux/if_link.h | 2 + > 8 files changed, 320 insertions(+), 35 deletions(-) >