Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1794609ybi; Sat, 27 Jul 2019 18:57:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdWwJAdHvakZz0EVqdQSf32Oe/Bbt4xbscpvsob0Lq8kSsg9rT49d5RxWvrgm4+jcYagW4 X-Received: by 2002:a17:902:e6:: with SMTP id a93mr103173117pla.175.1564279067257; Sat, 27 Jul 2019 18:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564279067; cv=none; d=google.com; s=arc-20160816; b=eBWCHIvOsbAiY11T9KR47+VaNiElJGmgUq0nMjQyeK1/c8uLTwXqC6YW+exfFVMNZt iHZzNZO5xETczmuwZPVZA78yGUh+D2fKTtGDhCeEuUHgzvNCL60lCmE8zUtLG0N5OPHz wO5/jtBkZaA5xnOnWumXes23zb7za4MO+4NVnvch3/fteh3IoZT8pqWEtaHdTX14+dUG cXycgKUI5cLl70e5yE6Co7McxtxKOBnxy6K6BAZxtU52qPo99N3KqeG1dcXN3WJGA0Tw xPH00X2RSX8wtmYE+r01wi1d7JIMRrEXGSk+u3Xi9ouviPe9yQ5dVrjgfIqi9X9dL4/l Pg+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=ZIqB9c4q6lN44PyPxcoCMV7r219u87AEU3TH3a5CGas=; b=KQeT4W+BgZc7grSkCEXTEaUpbbkes5H9SksiCBOgk8VNtWOTULqpkbAOiE4Wa8fk4K kwQ9kqCAfMq+pJVqk2I5HliJ2W2nCIoS814lxt73Vj+yFhiljCHev/sJHZJN+1I7cNct asdqS0zcNmrNk10bpfR3ZEIjfzNXK/Q7fAfvAI/cktsGrFWJKxoutG7MYqihc4uY7yWz 95WrIdimYjTzO+WmUHbf/gTd5yYw+6u2ekEsYW+gWvkp9PdTnhVih1VysZNfp3KA/Z8u I4t1SxMH21jh5RPKNFK64NUs6iNzveaqGZhjSGlLlDvoaKBjGA0SYGWBJY7Vj0hj+H6B fFYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s59si22394889plb.294.2019.07.27.18.57.20; Sat, 27 Jul 2019 18:57:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726044AbfG1BhK (ORCPT + 99 others); Sat, 27 Jul 2019 21:37:10 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:33982 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbfG1BhK (ORCPT ); Sat, 27 Jul 2019 21:37:10 -0400 Received: by mail-lj1-f193.google.com with SMTP id p17so55096570ljg.1 for ; Sat, 27 Jul 2019 18:37:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZIqB9c4q6lN44PyPxcoCMV7r219u87AEU3TH3a5CGas=; b=ReCshGPBRPhg8Co0BNPLZT9vREYsGam4cGdaeearjxONFJavZVKf+LhXePnkr6GjDd dv055zQEh7WaubQiWMfbDBSXBVEnE69NjHs8/Dhwhs0Z21WvqAyGsK3+zGsH7eFuvEmy 0puWL/Z5h9AvHLyLF+tTBNS7E8BkvAJxrKO+z2q7SOqFOi5E1EDYpVFJ73irpIhurNAL nvmpBwAhpYhvBoMkvrAgi1/hTRq4UTTF6DVBB8Rly5XNHtjwK9qcek30L+aGHLNXhqlQ /AEnVh3tMutbuoIoehWu91rd+nTcMJBmRa05EvmcNrGREiGzQOT9I3ik+zvyD7F5ak9P 2tyA== X-Gm-Message-State: APjAAAWexsc15sKF4hG6xlol5RxCosVxPAdaPWK6OGwhJk/PLeVyve3g 9wEE2qocSaDhh8vf2PoyovfNysGKCqCkRwCtj597qQ== X-Received: by 2002:a2e:9117:: with SMTP id m23mr53783934ljg.134.1564277828052; Sat, 27 Jul 2019 18:37:08 -0700 (PDT) MIME-Version: 1.0 References: <20190725231546.23878-1-mcroce@redhat.com> <20190726125715.GB5031@kwain> In-Reply-To: <20190726125715.GB5031@kwain> From: Matteo Croce Date: Sun, 28 Jul 2019 03:36:31 +0200 Message-ID: Subject: Re: [PATCH net-next] mvpp2: document HW checksum behaviour To: Antoine Tenart , Marcin Wojtas , Stefan Chulski , Maxime Chevallier Cc: netdev , LKML , "David S . Miller" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 2:57 PM Antoine Tenart wrote: > > Hi Matteo, > > On Fri, Jul 26, 2019 at 01:15:46AM +0200, Matteo Croce wrote: > > The hardware can only offload checksum calculation on first port due to > > the Tx FIFO size limitation. Document this in a comment. > > > > Fixes: 576193f2d579 ("net: mvpp2: jumbo frames support") > > Signed-off-by: Matteo Croce > > Looks good. Please note there's a similar code path in the probe. You > could also add a comment there (or move this check/comment in a common > place). > > Thanks! > Antoine > Hi Antoine, I was making a v2, when I looked at the mvpp2_port_probe() which does: --------------------------------%<------------------------------ features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_TSO; if (port->pool_long->id == MVPP2_BM_JUMBO && port->id != 0) { dev->features &= ~(NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM); dev->hw_features &= ~(NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM); } dev->vlan_features |= features; -------------------------------->%------------------------------ Is it ok to remove NETIF_F_IP*_CSUM from dev->features and dev->hw_features but keep it in dev->vlan_features? Regards, -- Matteo Croce per aspera ad upstream