Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3336401pxf; Mon, 15 Mar 2021 07:25:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5wXkCuXhk3/ujWxHzZuUMs1ABez9vX1WXCM8mdYJcUx2Lj03nJURsOse/wI26TdnIkipx X-Received: by 2002:a17:906:e119:: with SMTP id gj25mr23801055ejb.509.1615818301630; Mon, 15 Mar 2021 07:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615818301; cv=none; d=google.com; s=arc-20160816; b=lisXUwEJdJ9Fsu6YRXj3FYOFNsR0AnA5/a8QhSRqVEo1F2Ztd/hCjgHYmoU9TF2Kkc KxDvWoYrPxe+5IHv/cMKisURJvk35Ma4ja6QWjFhPuz47KKH06jvskN4SrKx4CW3Y44m ducl7i87H9UZcLkZeOIGrfRh9NA68RkLzEnqeI5a6qHFcrJ4M5sdMlwh+0IE2zl+q6t2 OUK96zDMoRvAJb0bfwTOBk5WQglHhmUDPp1cchEnbXGWTdsXWPMdTKy2FTO3iv8XBupj S1bastTqx15HxoeveBXUcGG0/hmDmTid0eXWHLnU/Fkh3MujI1rc7s8dDVXDoXlmLw43 Srbg== 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=AlyfAAnl429oXlGgCv6ukc+kmAI4q+KRra5LiLIfXR0=; b=W7m1boL7renGrDmmsEVtEXTkyq93y5H8M8ik22uv6SIT3oJhrdqEUs2g+vu5c3wdgv pV9l3XMMwKy2eHQ0RI5W3gN2tT3hJJjcVz8StvwgOJmTrxewN/ioQgeBH7zvrr+9KB0q rX6vo2bZJi5OOq51T9lygm8X8mBbN5INcGJtB8171A4lhGTfruV99ogYVra40m83E97T C0RNKKHpLRbEUC8vr3J693fuvfs5CgC6mL97QtqaPbg/gjk/akEQIN0TQfFKL5JxzBFb Pq0mM5q/eoNnxatoZd3BTj7v5CGZEwclKEqKEjgAnPVpsExoIf/0YhXGgqjMR9IF17Od WR9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PdkalrzG; 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 dj20si10503228edb.500.2021.03.15.07.24.37; Mon, 15 Mar 2021 07:25:01 -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=PdkalrzG; 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 S238006AbhCOOWa (ORCPT + 99 others); Mon, 15 Mar 2021 10:22:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:36622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232919AbhCOOAL (ORCPT ); Mon, 15 Mar 2021 10:00:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3075764F37; Mon, 15 Mar 2021 13:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816796; bh=nv8CHzVD7f2ZaIXac4duHpgpItPYqcxNlTfWIkDoVNU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PdkalrzG5BYvRGmyhqR6pgJrbT97J7mt7SrWHwt9aUB4rwS0G85Ffm2fewM5C3ZjF Gm7yIeF5CTiYo8xOI3c+31a/IkSG8zKuvClv/ku4GSfhiswT18g59BumaUa4xfo4vn CXK7QpiHEUKBFLoB2P73WzFV1PVrmwsAj4ZCuzpA= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vladimir Oltean , Florian Fainelli , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.10 119/290] net: dsa: tag_lan9303: let DSA core deal with TX reallocation Date: Mon, 15 Mar 2021 14:53:32 +0100 Message-Id: <20210315135545.943540785@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 6ed94135f58372cdec34cafb60f7596893b0b371 ] 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. Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- net/dsa/tag_lan9303.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/net/dsa/tag_lan9303.c b/net/dsa/tag_lan9303.c index ccfb6f641bbf..aa1318dccaf0 100644 --- a/net/dsa/tag_lan9303.c +++ b/net/dsa/tag_lan9303.c @@ -58,15 +58,6 @@ static struct sk_buff *lan9303_xmit(struct sk_buff *skb, struct net_device *dev) __be16 *lan9303_tag; u16 tag; - /* insert a special VLAN tag between the MAC addresses - * and the current ethertype field. - */ - if (skb_cow_head(skb, LAN9303_TAG_LEN) < 0) { - dev_dbg(&dev->dev, - "Cannot make room for the special tag. Dropping packet\n"); - return NULL; - } - /* provide 'LAN9303_TAG_LEN' bytes additional space */ skb_push(skb, LAN9303_TAG_LEN); -- 2.30.1