Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1316932pxy; Fri, 23 Apr 2021 05:32:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqCQjQeoxGl0H09gqiLXAe7unAIs/pu2qL2W0it9zQYNCKEaOjFlku0ZQHJCv2yggEwNVP X-Received: by 2002:a62:63c7:0:b029:251:4c9a:5744 with SMTP id x190-20020a6263c70000b02902514c9a5744mr3753187pfb.39.1619181174745; Fri, 23 Apr 2021 05:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619181174; cv=none; d=google.com; s=arc-20160816; b=v0J97+8hFKdJ9zwNFHjgNnfk+G+F+4Mc/uaBpP3NAt6JL742wdsmGZyLQks9iJPnQC BTFLemITOv/YG+olfKA858ZQFsgmwLGldGnzKyYNOgA2HavcS7LJz0uGNi0JActs/Yhf xAxctbFt4qcxY8Q4fqiV/fUVkjxp/hrSpW83GbocfaZ8I4KW5zg9z1ZKgchi6VPP94aI sIVMuHB8Xewfjv8O3nVSveF4TUt0pOq5JzGlxmULEexdotAnZqc86XZDioB8QQd0fwo4 BF9CRw/byHZfQ17EJ0UVWbyg3xddBQ5RQ0uDJs1jWXlVyIEQRnDX6axxZF+twXFRaN3e uM7A== 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=HKActNop4gfNe3Hlyu9iK5cONXIFZVN6yVZQhfm5rPQ=; b=yYxGnWKd6ace8ceMaEwZ/hSpLJISstL0eWi5E6DwKd9LOk9bgdeK2scx5DGfPOJkQc gcjHTM1YXH7sMdyCSJiIUkcXYwlReRIxlyoCvl2bBoKwAv7frJmUnsYXWAzmyixsSIaN 4DZDXHgf/9IxBujlmZDStTrMeruqU9l790IpVs+I7vWj3dlJFiX/A28q3rt8f9VYoPEu 0M1FF1pCPFZJAoWzFYLF2Yp1XL1xdnN+/fNhI2kNhfc4KJAWm5r+PpaoqNfuCiEVFEGP JisA5YPopEmZf/gr6PC9e+KG4TVVptO5yvVIszEKIQQkvO1ZMYjKevWJK1avD7bMCHjF 3WXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ECve+nuT; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si7054599plr.118.2021.04.23.05.32.40; Fri, 23 Apr 2021 05:32:54 -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=@linaro.org header.s=google header.b=ECve+nuT; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236811AbhDWMck (ORCPT + 99 others); Fri, 23 Apr 2021 08:32:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbhDWMcj (ORCPT ); Fri, 23 Apr 2021 08:32:39 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22E90C06174A for ; Fri, 23 Apr 2021 05:32:02 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id f21so12617899ioh.8 for ; Fri, 23 Apr 2021 05:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=HKActNop4gfNe3Hlyu9iK5cONXIFZVN6yVZQhfm5rPQ=; b=ECve+nuTRjnE8hpecoqXVT13cPTOKj/FXQ9pOX79XUhj2sscUJtt2GHZD0DHbHMxJZ bVWjOrPy3PHryAtGSTzpEQ0HTSEHtKEPcaxBY8y8PyTi6x1OIZVWx2Ws/k+y82Ngxhg2 YiS1cFOXUlDzSJAlS+L1XVsKXNeCvi7s+D12rsTqgwSMRyPi/CiNESh5Ox+xCqKBUkQu I1CdO6H9Hmu/cxbqZcjgoaZD66Tha8Qkx/826mx62TQLqYYsh+qiqGxGzlASSv0ATQnx dIgyhwWESaaFL5XZ0pM0VxKMc9D7TwcG8VfIcKCbCzD8d2/oOxs6xYL+IoH0cCnSKN/b ihlQ== 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=HKActNop4gfNe3Hlyu9iK5cONXIFZVN6yVZQhfm5rPQ=; b=UncTD3nj6yUN2zwOdApVc4h7E+cS9yj8yvUmpw3+V4mJm+gHlJCy4TgjVcGPPhri9a McQWHkC3eaR3Plawb/CdtLb24UuJ0G8AHsk66jBTsAosDAik6PKq5rNvdw4dDi/WhKAa o/DRcMBVwK65FEsp3iPx4mxaqz8HLImIaqEndQH69dUSL6Z2cJiXEWA3ED+vcRRDJCl6 BmSyfWNHiKhu72nc0N8rcz3K/Cnsuwp7E5iykiT0NXciwhzpgypT63+APFT22VhkcPMB mUEA5Jo+xPd1bDQLtaYLJqqehZVSW7+6QWCFcs/qrgg1vhKzTeYrWLaCh8l39+Qc445F czvA== X-Gm-Message-State: AOAM531lhfytofuEIgAbqqzXKj0vs1ZjVck2EibPBFGdT8ycoWBA+puR 0ztyxBgIvVmlOmOhAGfqGVmabTpAVcSk2Q== X-Received: by 2002:a6b:f602:: with SMTP id n2mr3169787ioh.174.1619181120360; Fri, 23 Apr 2021 05:32:00 -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 b8sm2814913iob.30.2021.04.23.05.31.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Apr 2021 05:31:59 -0700 (PDT) Subject: Re: [PATCH net-next v4 0/3] net: qualcomm: rmnet: Enable Mapv5 To: Sharath Chandra Vurukala , davem@davemloft.net, kuba@kernel.org, elder@kernel.org, cpratapa@codeaurora.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1619121731-17782-1-git-send-email-sharathv@codeaurora.org> From: Alex Elder Message-ID: <0cbcc4aa-8457-f17a-6d73-a99699bd5a2c@linaro.org> Date: Fri, 23 Apr 2021 07:31:58 -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: <1619121731-17782-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/22/21 3:02 PM, 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. It turns out many of review comments from last week were ignored without explanation. So I will repeat some of them this time. 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 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 > 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. > > 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 | 29 ++-- > 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, 318 insertions(+), 35 deletions(-) >