Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3520606pxf; Mon, 15 Mar 2021 11:23:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKjbQ5J0HHdOae0VfLT6JIIrjTZhF/352TIa4JkUWxX6vWQQyITHSnL2eIU1dDF42nL2Bn X-Received: by 2002:aa7:d642:: with SMTP id v2mr31727192edr.257.1615832592833; Mon, 15 Mar 2021 11:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832592; cv=none; d=google.com; s=arc-20160816; b=yiLitB1NxQcVObRl0zrletxvAkfGNF9rpGdlP8Qg9DQ4Q1ewj0aGF5x4qDqKyHU/Se AERF8+RIjMqxlMZ3P8Py+2lvLzbn0Oen1bZp6pbFLoFfb70A/JyazRHoIKzJrfKEq7Wr ccvkYjDouUdz+xhRLN+iYKckqyrJUUTs3hHZl81y6fHo6io4FfuD5ZvhTuNd6lX93EEG 3p3xQLddgA0nlQR1mP6B65UnKXNSNQT2wMPvU5oBvkbAUnfzyuHiiuweJLPZ+HUZfnBx 7M26keaMpdVxfKHficMSozQ+eoaOzP4k67GflFFo3Ryk4Mb/hHhZlWRuj0h/dMtzTwY8 cDEQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=p4JJeJNi5Vl0LG5p+vULfWpjoWWbquInX/40RFI/xNs=; b=nJSthHmpOLvx96u5WUa8htDIdw/3r8RQKiSEbOLJhcBhg8CTBosaHYgdA65fGr5Kau loDfug2fFzrEr2KyhRJXonh9vK4NlPBTHeKLSK7KIQ+aqzEAsa7fk1wVheFFUDzB1C4i xT5FkYeu20qN6w2sWEZdPDSVhon/H4fpcka5Z61SPp/mXQ/22xE1Y0ws6LRBViL/zyep lB90ZWepRoLFpE+u/8HwuNroyzrlZ9mR2QW6fRoIT82t6pRWB9wwnMmTIy+dgdZdVXBU qY4LCOx1iI1NbcHvEmN9YJzQWffqQWzgvRXMA2Hl/y6hxZ3aiI+oeEDgoxqOni7T0AY+ vj2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j0HjS45u; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w26si11536638edx.572.2021.03.15.11.22.50; Mon, 15 Mar 2021 11:23:12 -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=@linuxfoundation.org header.s=korg header.b=j0HjS45u; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238059AbhCOOWj (ORCPT + 99 others); Mon, 15 Mar 2021 10:22:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:36594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232911AbhCOOAJ (ORCPT ); Mon, 15 Mar 2021 10:00:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0626B64F60; Mon, 15 Mar 2021 13:59:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816794; bh=Z8fH5rlLGbIktJTLYhpbTjBBvJ/zwgnW0HG04SHLf1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j0HjS45uHK8/9Xw/xS6e2/F4Lc2w8rLc0gyjN3fEZJt0fIEKMS/xUr6tgxvbqHiO9 mm3UskkKtvLk+ufwWDXcK1ak58H0oqnpk6E4nkradPlL/dltawwSEpJ/WUKjHttySr oX3XJSxzS2x52CT7ebIKrN1gRNjzj+Y3NwxM7LsY= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, DENG Qingfang , Sean Wang , John Crispin , Vladimir Oltean , Florian Fainelli , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.10 118/290] net: dsa: tag_mtk: let DSA core deal with TX reallocation Date: Mon, 15 Mar 2021 14:53:31 +0100 Message-Id: <20210315135545.908786704@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Vladimir Oltean [ Upstream commit 941f66beb7bb4e0e4726aa31336d9ccc1c3a3dc2 ] Now that we have a central TX reallocation procedure that accounts for the tagger's needed headroom in a generic way, we can remove the skb_cow_head call. Cc: DENG Qingfang Cc: Sean Wang Cc: John Crispin Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- net/dsa/tag_mtk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/dsa/tag_mtk.c b/net/dsa/tag_mtk.c index 4cdd9cf428fb..38dcdded74c0 100644 --- a/net/dsa/tag_mtk.c +++ b/net/dsa/tag_mtk.c @@ -34,9 +34,6 @@ static struct sk_buff *mtk_tag_xmit(struct sk_buff *skb, * table with VID. */ if (!skb_vlan_tagged(skb)) { - if (skb_cow_head(skb, MTK_HDR_LEN) < 0) - return NULL; - skb_push(skb, MTK_HDR_LEN); memmove(skb->data, skb->data + MTK_HDR_LEN, 2 * ETH_ALEN); is_vlan_skb = false; -- 2.30.1