Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3336408pxf; Mon, 15 Mar 2021 07:25:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7dY5lHpJzH0jiJhUQ3XQPQIkiBH+TacKMzeS9cYiSa94sy63KMzVHShwkqZFSZSSSRqXt X-Received: by 2002:a17:906:f56:: with SMTP id h22mr24309491ejj.494.1615818301628; 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=IyQx2vv1VKnXKdRw4XslSM/3osBUiv0x+uF8WNqhOjQc8XJzd0DSGnVWfdBsP90Gjp AFfESM5lYcR8SV5wAxaioWkrylKPNxc2wG+CKblfGyrnmWkHchnSrU8+KkV6ohfngCAm mhn6r3oGVh9AuKfsneUiKaPTplunEo32C3xDVWTvzQVE/2Qc12bf3IcTpSQ44nvv5o43 sH30WTPLNl988cp4rfMs4S3TspPZ3gLQznKXyeaqhierYOhdP/nKn1lmMbWSEEJwH4Z9 gSCdMyP4Uj8yAwLyVXTDGdggOueQEj8GpdHNcHhelA5YXC23i7+yzj3PMhb2eS1Mh5rb Sa3g== 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=8TOge8j4si7Me8HsS7a9elOSw+wCLk+Xgohoa3/F9QI=; b=X6KFJKBRgcednmFJcrgV1wcD/GslTDPw1pRcUP0CLZYeR/7o/1MGfFKDZuy6tMDIWz 3KhmLg5CYfM8o+XPcWijWDOEJH1lmvqaaktnJ1mgr5iJcrKwB9W/9lmbNPOQpBrz/6um Tky4vFfmKnIXbb9FujnuS6d1KC8pkHcaIMkI5RtT95friRetk+UwayuuPPxVtDHIPO78 HaS7y0jA0ajjXZe9LCfOPmR++VW3tngPGm4h5bFI+7toE5ulQLWW1pv0oTFbFLHB8Api SgsdS1iqlO1YBsfqqU8rrxMhvumZAs/dsWxjqdTxrz4LXth6XNiv/R2vIZzrPXUJHyem wshA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HsqwoN1b; 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 lv19si2090585ejb.553.2021.03.15.07.24.35; 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=HsqwoN1b; 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 S237743AbhCOOWD (ORCPT + 99 others); Mon, 15 Mar 2021 10:22:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:35904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232903AbhCOOAG (ORCPT ); Mon, 15 Mar 2021 10:00:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 41AF264D9E; Mon, 15 Mar 2021 13:59:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816792; bh=+0Nz8HKkIPVZmCJ9gBvMAOuONetGn2ZfuTmsTBZRdyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HsqwoN1bRAUrFCQW+7A79aHL+M703vFxBMPRLUfKyJA6YOGWWHKWt1ZnC1wJdEQkX udmh7fU4Hfg9IUyXtPnxyBoXffwUQli6rpam+zVL+oUgHQ3/oSmPMgTTl30yPBcEjf mHugdTVXqh8SfUH+oeExqZv0gAZbQSKgOvxTjy3I= 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 117/290] net: dsa: tag_ocelot: let DSA core deal with TX reallocation Date: Mon, 15 Mar 2021 14:53:30 +0100 Message-Id: <20210315135545.876382369@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 9c5c3bd00557e57c1049f7861f11e5e39f0fb42d ] 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_ocelot.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/net/dsa/tag_ocelot.c b/net/dsa/tag_ocelot.c index 3b468aca5c53..16a1afd5b8e1 100644 --- a/net/dsa/tag_ocelot.c +++ b/net/dsa/tag_ocelot.c @@ -143,13 +143,6 @@ static struct sk_buff *ocelot_xmit(struct sk_buff *skb, struct ocelot_port *ocelot_port; u8 *prefix, *injection; u64 qos_class, rew_op; - int err; - - err = skb_cow_head(skb, OCELOT_TOTAL_TAG_LEN); - if (unlikely(err < 0)) { - netdev_err(netdev, "Cannot make room for tag.\n"); - return NULL; - } ocelot_port = ocelot->ports[dp->index]; -- 2.30.1