Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp416156pxv; Thu, 15 Jul 2021 07:14:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO0ZSjg85Y6sKUDse1gdbP1BoA0AE5mcCHHXBrUqoNbydBGjbj4iuO2aMtlF3AACDrBVFO X-Received: by 2002:a02:380c:: with SMTP id b12mr4226316jaa.68.1626358457015; Thu, 15 Jul 2021 07:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626358457; cv=none; d=google.com; s=arc-20160816; b=VSb61h58uU+0I1GR8rtZiJ3znkeeAJhXhxLZjLCkG1hxSp+I4QegYkrek/4sGTo91V 592K/QIuHucTCj0RXtGSl9fbuLkcEBbdRRIDD73VujpSM+kNRu4XyzAjum5h1/1G5vO8 FgNKJbHuL2iriJDqCNRuaMmW6i1m4EAw+Oaf6rf+KRqTfCR24dnDCqyGSkhP0HX2MX/R o3ZgSTVJ07M/TbiAggQxqRnKcsk0h7ijIX+mt4SIsUsrY9iYehm5WzNq8VT30PP+/VGl BdkY4BT2BOmXe9LtDpC/NtXxfuxvfkUgEcigvDt+uD+wSBTIsGxRGRJ82HSZ+NBROGBh f3yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=i5BqZo+UJii6eVoVtrvlFBm02AdZ6ngSZGRnTQ9knW0=; b=XqaJbXQSxIOqBXymMRu808N2uEbrocKgQbtEd0ASLXFaLMoXNiK3jekV++sfRdym5Z +P4HkQWHbsZoMHeWIjDB2ZuwRXbLKWdsRo7RF4NFbeLqQZE1m63QROBylcQbjN+dDkDg oGBt6rLXh91p75iFIE8V+00sEQQ1xsaMJcKCaAnDB59irnYub9wQjqgKeHdgHzSihWm3 TseVKKzTkf9u7pKNEXswrGH/SxhI5n31uhwxgd1Iu6tLF6wU98ArN4fXAY4Jds7XUzVS 1uZ1kD12If4bsWJTzLSf7ZIiPaexF0JRB4nqNpEcqJOQMv021+B6uJohSR4xC4E/mvWZ reJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q5wPxqWu; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si6605009iot.9.2021.07.15.07.14.03; Thu, 15 Jul 2021 07:14:16 -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=@gmail.com header.s=20161025 header.b=Q5wPxqWu; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237384AbhGONPu (ORCPT + 99 others); Thu, 15 Jul 2021 09:15:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbhGONPt (ORCPT ); Thu, 15 Jul 2021 09:15:49 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD6B9C06175F; Thu, 15 Jul 2021 06:12:54 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id m11-20020a05600c3b0bb0290228f19cb433so6040278wms.0; Thu, 15 Jul 2021 06:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=i5BqZo+UJii6eVoVtrvlFBm02AdZ6ngSZGRnTQ9knW0=; b=Q5wPxqWuyRTCvaA4qSWrVpkXPVblBrXMdEmusZz0L4K4OoH3J00/VnCLF5UkLwFuxc /ym+2Z5r+nFS4JaFkIPtdFcgKWyIr/KOwpQ983k87dwKrJlb7zzPOJWiiTcKVBmakMun kr+7zEktxOIzyaEVcqbbKcNL2eDhNR4LPqEr0zyhU+IsMei34ydapf1pZGMSooKIHV7+ q+bkC7OZXWjU/cHx2Vzc9+Z7fFMrMPrjo/ZMcvZODt7yLQA7esgNm4zb+I2zxYQGr7wP tokrmlPnTN//zTH/j+e/UPP1h41qvfk5cyrMO1A3GQ3liB7OW7IQAt9GG18rpJWUOuDD /ogg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=i5BqZo+UJii6eVoVtrvlFBm02AdZ6ngSZGRnTQ9knW0=; b=pFJd1eo2x1bjcPBw1uuX+eK7R/2moqxhUxBeHaPBToHgqvgcVZb1dFVS9rO8H/Xxzi hpZOKlAyRURL6cUqSEY9jq1YwHIJg/vj0ymTCW+zr/ihM93lISn0IjSpsLNgYwEheL9T qMHR8EW9FDgIq/okFCMdeVKlQ6cowc9/FyaXSFlKiGUxnyVdhPEY0gYJerpbL1KflwZX rZJUGzNLk8YyYLesLqHSbCGOFXrH4t8q08sK17WLYwJDDcIrzyfNQM5JtUKs5tJwgHuj JoNGsm2BFNcI5HQUQlboEwKk37/wq1yTCkj4zKiW0Nb2T5dKrpoL2HDy9Orevt9xcZZG zArA== X-Gm-Message-State: AOAM531NjGMmHJbpxHbGL7nKVmoHWx6DuEpDnPCrl/NvqM4oqsO8k0rx 5epYTSMfB3lWvPGRh4ZuYq4= X-Received: by 2002:a05:600c:19d1:: with SMTP id u17mr10731754wmq.40.1626354773280; Thu, 15 Jul 2021 06:12:53 -0700 (PDT) Received: from skbuf ([82.76.66.29]) by smtp.gmail.com with ESMTPSA id v30sm7092964wrv.85.2021.07.15.06.12.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 06:12:52 -0700 (PDT) Date: Thu, 15 Jul 2021 16:12:51 +0300 From: Vladimir Oltean To: Lino Sanfilippo Cc: Andrew Lunn , woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, vivien.didelot@gmail.com, f.fainelli@gmail.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] net: dsa: tag_ksz: dont let the hardware process the layer 4 checksum Message-ID: <20210715131251.zhtcsjkat267yrtl@skbuf> References: <20210714191723.31294-1-LinoSanfilippo@gmx.de> <20210714191723.31294-3-LinoSanfilippo@gmx.de> <20210714194812.stay3oqyw3ogshhj@skbuf> <20210715065455.7nu7zgle2haa6wku@skbuf> <20210715114908.ripblpevmdujkf2m@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 03:04:31PM +0200, Lino Sanfilippo wrote: > Please note that skb_put() asserts that the SKB is linearized. So I think we > should rather clear both NETIF_F_FRAGLIST and NETIF_F_SG unconditionally since also > header taggers use some form of skb_put() dont they? The tail taggers use skb_put() as part of the routine to make room for the tail tag. Some of the header taggers use __skb_put_padto() when the packets are too small (under ETH_ZLEN). When they are so small they are definitely linear already. We don't have a third form/use of skb_put().