Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp658279pxv; Wed, 14 Jul 2021 12:19:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpmzXN2L2EFn2ez3G/4NwAJYZDlMBdd0NrWHO5DWc1ud63p7PLDNl+HL5hZj1v7GacC5hz X-Received: by 2002:a02:c7cc:: with SMTP id s12mr10187998jao.37.1626290348482; Wed, 14 Jul 2021 12:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626290348; cv=none; d=google.com; s=arc-20160816; b=VJl4AS5GnTI57fqZGA7JI4pYXCcQQb+v3wV9dHYI9UcacnAA6ouYDtKGvbXo/om2Pw /ZzrmTp7sEJEGglJ27/sOoRf1Ns+AJL4Omx3LqnaDgnLywXs/RFOD5Od4AcGEeakl2HZ CsgizypgAp5t3qNomRBgDmtrv1xa071EiHbztcM9rknFRavE8X78YpLSYgNroKDJWR/o d6Q2hJdMptU18sgHhOP82D+vveFBIEXzege1DuiRPsgAVlmNPe4MYMS8b/9jKzU1JzmU vUb0NmeJIdsSlK3kNqB2BZpiJmR/zX+Mt2kqGqlzJCIZdHLjPGzuuJ49G3zAKjoFRwR1 Z6nw== 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=1NBRlTgjfqUeCWVZMGYnD8k80BqYbSqvVSZtm5STHYw=; b=RHajEmiiv1U3OpThsw2mNQMTHBpzjkJhIS8gDmDYLJYSRHtsthtsoVfZV/6AUH/SEi LlhVdZreks2iGxggehDtmWAtL5etVid1U5kFZo1xU0/YH5khDw+fnFvwiy5qIGzQXdM+ +YzuJHtHRhOTEIzPNmQogG0cNVob1SVjqFKSkmh9+sj06wR/Ac1YQpit0/wfTHZ5YYX7 RDwAFTgEnvtpgkLQ1LB1uGA1BGd5SqNO/BDiBvBcF+A87zbOtWdLVt92Pt5BAoc3jU0Y zdGwu/fqkEYZgjfrfmPoxQ/6+uV+JWRQ0wDBXUWx+xTj2D1DJa+eFstj326r6nqPtnnf vUTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=iwjHP7qU; 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 s9si3393679ilq.3.2021.07.14.12.18.55; Wed, 14 Jul 2021 12:19:08 -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=iwjHP7qU; 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 S240064AbhGNTVM (ORCPT + 99 others); Wed, 14 Jul 2021 15:21:12 -0400 Received: from mout.gmx.net ([212.227.15.15]:33871 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbhGNTVL (ORCPT ); Wed, 14 Jul 2021 15:21:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1626290287; bh=1NBRlTgjfqUeCWVZMGYnD8k80BqYbSqvVSZtm5STHYw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=iwjHP7qUtqKnQKBWIxYUHizE+HCQt/zk9Eow4mRTslk5m+/3Kr8ZAjtyJ589s02Tw ZrHnROogL083TTqUcFTDJ94tUZNI5ur8x6Mrvym4b1dmzC0dQ4MdCbWt+3/RtC3iua fnKIOmTV3nhYZ1XKhXqbfW9IJ/chSdxOeKXeG2gs= 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 1Mq2nA-1lPgk9046k-00n8DO; 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 1/2] net: dsa: tag_ksz: linearize SKB before adding DSA tag Date: Wed, 14 Jul 2021 21:17:22 +0200 Message-Id: <20210714191723.31294-2-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:zG9W3k55wS/h0OdIs+SlIeLtet69YyCpxgFOl5IYJvy4b/Nigpi HFDEIoFeEx/5nfNXKJwgyEyt9p/fzo2c06lbL3Mns/iyo3g2C77QW9br1evxgLVAdfwyosn 6LR5E4HhR1kH2u1cqEhZVqf0gcNE/uWQQFbE3wQlTeyZoamC9vKKteEMBX31l5dBBNuRGFW OLexEsVIsFCaxg0LHegXw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Ylk+XbVU5vY=:hTz0CNh5cPeJvElCX4T9Xi KqnxY0hlGQvK6WKNlAj27HEb8+LLnwnY2RJ+4rvR37WMjTTtfJJuyicysYGcyMsUui6F4AoiI 2jUjOMSxO8MUDR9gCaMqf/aUgOqXk+7i+uUlOpdDrWDto/WWw2QQ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