Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp102782pxv; Wed, 21 Jul 2021 16:58:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaWRxmXGYDaqESHs3wysDu2aMsjLokwOYH+mvwPSl08FkOITYi7AZJ8OapUjzQ+DAzvhU6 X-Received: by 2002:a92:c142:: with SMTP id b2mr12228185ilh.26.1626911882167; Wed, 21 Jul 2021 16:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626911882; cv=none; d=google.com; s=arc-20160816; b=lJAuLzDfuQ/L6rn57oQGXaBvGtFThfLDKhwCkH6nj2RlAAeQGlcwZpCGBNT16NaPjJ 6Iva+cZx7qioQWlEe1Os21xr/1bg83YxdaY5Mh28gneQdWuU9lPd5cg5Dr7lb9AnyzU0 SBoDzm62yQZJca8EAG4FN7KCNbZ/xjWnZIM/wN6D1jArZAmEFv8L1AWy641zhGHSkqe0 j3saTiIaku9ej/47mGKuWRkRfzkLgvgwyY/LKFDYBq50BPMCS8c57RgSOuf30+PBpdrv g8oXlYiHNDE3Gm/jRAqKKiH392q1UFfR/Rtx6L0i038+juLS0vQdUUYWV0qYj6HksXFV eJCw== 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=MTzoNI+4/t77AVtRX7F3dHidZZBtCwdh6utBGbbuUCM=; b=AM8QTJ0mCbo9fyx+yj9A9IXYUazAj5J+Yga1i0sNBieF33vwdPuKgA3nOo5Bry2+t2 /6aN75MKTE5xke0jET4DHoUoWfcV1M4YEDWmPh9vj3mAQ5Le7uEdzIcl6mY+G6QZgk1d XqRFWeqgzJDo2feiWzHSdr3QsPUmBtXPJRg2r0sJP7qVWitbLpmQxxyvZ+s/JSM2H7ZC 98MGZjaChKrX87QSR5OEx35qKxTjs10Z99FXxeGS9f+vy1+CV/YvGVkV1xJHTfZ2dMOY 9AmEsiJPpUK8jXvu1jyClsr4M/EgLvTtHztvRvU1VaHvv0be/MHay4B3m3ELjAjIHjBm Dy3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=h1ixPFzU; 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 j17si24879064ilq.87.2021.07.21.16.57.51; Wed, 21 Jul 2021 16:58: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=@gmx.net header.s=badeba3b8450 header.b=h1ixPFzU; 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 S229916AbhGUXPq (ORCPT + 99 others); Wed, 21 Jul 2021 19:15:46 -0400 Received: from mout.gmx.net ([212.227.17.20]:38103 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229974AbhGUXPh (ORCPT ); Wed, 21 Jul 2021 19:15:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1626911767; bh=MTzoNI+4/t77AVtRX7F3dHidZZBtCwdh6utBGbbuUCM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=h1ixPFzUldtN6+MF1sX2ojNNcTYmbrtAtZu9qs3VOOvnt09Ry2+x0B5b9zWk97w2p /QVMTNgzHKUe3ytPAePdyF7kzV3zN3p0KmKZIUqvNXx1VtZkzqisbw7WMH3W2ODmvP w24kuQBEOESKReg/UcQrmVBH4XPffruJUfxHVI54= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([149.172.237.67]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M6ll8-1m1M8T2p1a-008KqK; Wed, 21 Jul 2021 23:56:51 +0200 From: Lino Sanfilippo To: woojung.huh@microchip.com, olteanv@gmail.com Cc: UNGLinuxDriver@microchip.com, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Lino Sanfilippo Subject: [PATCH v2 2/2] net: dsa: tag_ksz: dont let the hardware process the layer 4 checksum Date: Wed, 21 Jul 2021 23:56:42 +0200 Message-Id: <20210721215642.19866-3-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210721215642.19866-1-LinoSanfilippo@gmx.de> References: <20210721215642.19866-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:VrYRZ8zYIkA/EmJQWzaTUwoWNymemMyGpBXSXegQD3tN4gQv8hr SKV/Rfr0ylf4Afz6WxOvFNJ47HRx9YkCa8eomMPWnuPnE5rXCHl+wgYia4nV/RQI3kHRbpz JnYxqysjd8rwUEKc9obqdFK4cE/cxP91xjQpGMQz4lTk/87hb2SlbVbS5hRJHKvLZRBZ7AS 6Oz0bYceci9NqZ0ricBrg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:wttdpPwfjc8=:9y0l/U1MEUh58h4FCgqWsc uF2bw17XQlk+iIv91j6pCdIOf0hGu9AnwCR9tbVsGLQu2q0RXiHsvFhqNZPviXoWm45LXevJU b7ZGFelk9YvtIcXNUdfI0nzv4BqLToOdxFkrQi4TVI58PaVerNqmCbCdw03qv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