Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4474350rwb; Tue, 6 Sep 2022 08:03:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7w4dzD0/mIcTz25D78ZamEoOrE9hPCs4Q6TkoepdiL5gLXASfCpTmnGGhVxPVjhv3MkA2i X-Received: by 2002:a17:907:1c23:b0:741:8389:12e8 with SMTP id nc35-20020a1709071c2300b00741838912e8mr29895747ejc.131.1662476604856; Tue, 06 Sep 2022 08:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662476604; cv=none; d=google.com; s=arc-20160816; b=gbLh36LJuTLkMgBxB6IJ2PdW+gu4Yf4062Igz89pmNs95q04SiuwEcTBFWdAb9+0G7 DXojfTqKlD1ssk7Vv1B+reDm/8bv0pIIcy8F4U1o3yftFdLAS4ietmHzU3HV5D5uY934 9USGpManWXmSl4Y7e28drxpwbex8Nc9y4e1A31k8EL49dfZyINDuoJ9Opq+NVNGplOac 6X/mSkQANHTjzFA+i2i/Nt0oDDG6oNH6mt3ihlUHwF9J1GToQlTXdYwBg4QfR/pwaN5g ijwRMMWU219sdfUeGXjppICyrm4t6LDF0XPFaQP1WP3B6PyZPTpfA8nlCbqcEUEX4Yuu erZg== 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=UIdcX2cx4NLj4kGfgOlWz1XhLC0OFLd+gY08GPhgnLc=; b=h+QR6+aztNIbOMqoelB09edeJhVrloSA2QMK+Ke+xMjQ3xdtoYL7c64FXnGAX+9i7y dsqdzV9bu4BQOFHt/R78vgD02LgOXhJQrB+zsCEmDkVJWTeqCja4+HriQBSpYvZzpJ7i iSIXeD9iIBkA2uTVpIiT3E5FuEPnBbm/Ss4LTNloeRC2VuTKCidpuVMVsi1NFNz+LY9F 4GMam/DRNgjKNWC632ubIO78WNqGourAJB3Yno8/aKw2RdHBGczICwohPDmM64UYwBU0 KLiFiQoBGlBisQ6sN4u/x9dyOzTwVq7hH2cBsrPHRRxVwgGtr2Fd2UZSsSeFFndyMWUF SVAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=h7yjQWuW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fi25-20020a056402551900b0044ea569baa2si3165397edb.557.2022.09.06.08.02.59; Tue, 06 Sep 2022 08:03:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=h7yjQWuW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S240865AbiIFOHI (ORCPT + 99 others); Tue, 6 Sep 2022 10:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239618AbiIFOFT (ORCPT ); Tue, 6 Sep 2022 10:05:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6ED6844D5; Tue, 6 Sep 2022 06:45:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4D675B818CB; Tue, 6 Sep 2022 13:43:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6C47C433C1; Tue, 6 Sep 2022 13:43:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662471819; bh=jFqC3NCS7H3Pju3ftB1g7imV8vsTqyDWLuDnUeSRCrw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h7yjQWuWcJU9hVC2pVkJigeHm85hL/t5YB1NS8L6F2/9nCwz6dtG94/4RHvgj6FI6 lv/PDtZPXeNvzg4tr5qoovhvkB+bVu1SmW5DkhDy7jP942Zl36avNjDr/pEa2uLDlI lGIMMcogZnSTjVaPn64/rc94O+33woldEn51Cq6M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jakub Kicinski , Sasha Levin Subject: [PATCH 5.19 050/155] Revert "sch_cake: Return __NET_XMIT_STOLEN when consuming enqueued skb" Date: Tue, 6 Sep 2022 15:29:58 +0200 Message-Id: <20220906132831.536075762@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906132829.417117002@linuxfoundation.org> References: <20220906132829.417117002@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jakub Kicinski [ Upstream commit 0b4f688d53fdc2a731b9d9cdf0c96255bc024ea6 ] This reverts commit 90fabae8a2c225c4e4936723c38857887edde5cc. Patch was applied hastily, revert and let the v2 be reviewed. Fixes: 90fabae8a2c2 ("sch_cake: Return __NET_XMIT_STOLEN when consuming enqueued skb") Link: https://lore.kernel.org/all/87wnao2ha3.fsf@toke.dk/ Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- net/sched/sch_cake.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/sched/sch_cake.c b/net/sched/sch_cake.c index a04928082e4ab..a43a58a73d096 100644 --- a/net/sched/sch_cake.c +++ b/net/sched/sch_cake.c @@ -1713,7 +1713,6 @@ static s32 cake_enqueue(struct sk_buff *skb, struct Qdisc *sch, } idx--; flow = &b->flows[idx]; - ret = NET_XMIT_SUCCESS; /* ensure shaper state isn't stale */ if (!b->tin_backlog) { @@ -1772,7 +1771,6 @@ static s32 cake_enqueue(struct sk_buff *skb, struct Qdisc *sch, qdisc_tree_reduce_backlog(sch, 1-numsegs, len-slen); consume_skb(skb); - ret |= __NET_XMIT_STOLEN; } else { /* not splitting */ cobalt_set_enqueue_time(skb, now); @@ -1906,7 +1904,7 @@ static s32 cake_enqueue(struct sk_buff *skb, struct Qdisc *sch, } b->drop_overlimit += dropped; } - return ret; + return NET_XMIT_SUCCESS; } static struct sk_buff *cake_dequeue_one(struct Qdisc *sch) -- 2.35.1