Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp659612pxv; Wed, 14 Jul 2021 12:20:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztkcgu6UCBll16e5qnhf3MyMoJDz9isi2rp/VAuMpXD6y7nQhIpFEoxdj0KNghQW8OfEty X-Received: by 2002:a05:6638:2390:: with SMTP id q16mr10177213jat.59.1626290453196; Wed, 14 Jul 2021 12:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626290453; cv=none; d=google.com; s=arc-20160816; b=0r5Jw5/6il6wwd/+SxzvaO4pRaSUG1F8kUrSDB8cdLHKFRZb7Y2nscSQmBbMA7knLa uPGbiUx2zTSD8LfOVnb9fnyERBHVjceQElYN5qtc9+rNv6pbC3bUaZu4eqmkq+gDZdRG ha05QDPxiT44jrnfdQC5raccGMOKuGkuvf+DZW3TSTzf/ItPhzpVoEW8plI5Q6JMKcaM 2YPnc0g9nLnFZfoVtnr43IGXdvV6DN2SscTYG4idZ0A1qqfAlSwbrNd0xClKioVJZAOA TZh9Wt4NxWdhe6dNPhlSwdA0+8vbGg8t0SfBT84s2DC/88KllkRrD4kHS2GsgpPVYCce 0DWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0Vu294fMLWIi7gFkQR70Ggc20BScAncxP5pTxianCVo=; b=QF7Ny4t+cFIQvCwl9pV5KTt1hHnvL7qd5/drdLHfDDABv/xiTQpCSxMyIw9Gu5SX6i 4SEZP32QSrUcAiuVsSnCZchr9uDFFGo1UYStxuGMbC+LImnpbr6LVdffV1sJkYvSY4V9 QUvtnDKFUHR39jH8CpDNFLLD/JcF+A84IumI+KS2pwhlYkVkt49MMGmT9oTjyXb7+vOi Q7CmZXGAG4SeIm8Ypi/Ho6kajDVpdrsWSS0SQrUB94AY7qp9fs9UCJ4D7Fq+X2Hba8rh MkWKkytuJVy3/M6tM9EvxODjjTmcShjbjyyWtzyqhlEmpX3yD5RH2JDcGzZVrkeKIpBl SGIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=QLHTr+1K; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si3566165ilu.104.2021.07.14.12.20.40; Wed, 14 Jul 2021 12:20:53 -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=@gmx.net header.s=badeba3b8450 header.b=QLHTr+1K; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240151AbhGNTVR (ORCPT + 99 others); Wed, 14 Jul 2021 15:21:17 -0400 Received: from mout.gmx.net ([212.227.15.18]:48889 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230185AbhGNTVM (ORCPT ); Wed, 14 Jul 2021 15:21:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1626290287; bh=0Vu294fMLWIi7gFkQR70Ggc20BScAncxP5pTxianCVo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=QLHTr+1KaDMeaIooUyH6iPx6kKaUUXbvZ9290LCAN0rZWfYJnObH8KTsPxpEjKkw1 OGUdDUTTSMQp4VVPCE7PWIUb0ks82jg2X8zMzzENm7rVOpix9fZ3ku87j2852FVqVx 5CLlvdV4ypEd/PzBlmzJqCYMSIckFgbzHOzYCwGY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([149.172.237.67]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MWRRZ-1lejeW1jWF-00XvkV; Wed, 14 Jul 2021 21:18:07 +0200 From: Lino Sanfilippo To: woojung.huh@microchip.com Cc: UNGLinuxDriver@microchip.com, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Lino Sanfilippo Subject: [PATCH 2/2] net: dsa: tag_ksz: dont let the hardware process the layer 4 checksum Date: Wed, 14 Jul 2021 21:17:23 +0200 Message-Id: <20210714191723.31294-3-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210714191723.31294-1-LinoSanfilippo@gmx.de> References: <20210714191723.31294-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:JCoB5BM+Bai/xCSzcnAL1DpJwVTKmW5Z3yW1PB+KpAG290y0d/2 nsDriOHoXw8vLXrLGyqKwZJX7CpsFKZUIY41S1ydmFF1CIAhg6tHUqFFE340YBg+uftBTgY ilN55HxyelA7ZZAiPyykc0Zq5XQkPD2lRi2ozjqtUaBk3rJb1vAAUqkwTZGkJ4TWZLzU0dH lzwcvFsCy6S9gv5qFnQ7w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Dy0uXD9Ok10=:D3rSzTC6gEaoRX4EfHM7xC RJonplED3trLlh7qeMMCKBIEF9MdfWCe/divPw1ewAwaTbj4ZqazDXG5qJaLX29o27zXeWhvy 8wFFHRsBpWN6jcMJF/FNFsaw7lNWT7kYRnvh1AY2fRGU0UakrmHmzbR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