Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2025790pxy; Mon, 2 Aug 2021 17:10:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUuQkoRkUNangD0AbdGbcbSX/kRfeWgIN7KW8zfyX99u/aWPTOL/VIzsdKt/hvm6188u4y X-Received: by 2002:a17:906:cec1:: with SMTP id si1mr13535897ejb.524.1627949408106; Mon, 02 Aug 2021 17:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627949408; cv=none; d=google.com; s=arc-20160816; b=zDZoq3ha1ksEjSgULxqEV6cvTYKRJWwbOR2WLaDSrsqtV3PdD+ruu9mHWHyuODUwT4 GLH5x7DMzjveISCye1BOFFOY/XY+nlRFzIbOkIPRXQjz5toa0hsT8fl8cC8/7ZefZycH TUpyxO2z6RQwRGg2tMaXomocl5Rx1haAi5RK4KdOfY4+KuQ9ULJRbixpVKKd7uUZhQES zsKdy6fV3Cw/CfE3AKLJOgOyjk1CCKTTHKtGpc6RoNdMLvVlrkteWwcYpCoP1pHibqeO h1mcdGscEXH3kRUsqvdwyj10R6okx8fGToVdrEJM6PeKeV4cQ4eyYbhEOTMTyyKIYi8f t6Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hnWZQqtS4cs6S2eqLlexSQq+7EoZ7X5M8SRSYOU4pSg=; b=HCVaZVt4e0FrwA6ir9VcfQUjr91KADhdBRRV300r1luHIL5pGK2thV7DtytlMXRdiz sshmyyQ+0Ut0CcJbl8NK7JuOqPDFWUlG0pjrKpmgK/ikZYzfR/Ug4JvwWuVVCLOqZDkI tfkTY5nqxB78rr7/rKg70a6wvk1w3/oQSI+qiqbqHobxHhTWjiFhpZMlKfjSjMPxcj3B ECxcCHfxjxtLAbqe0eRDT3kqOEj/N2zXC7cC8N0JAUckwUSh9sKgpUjSuhElHfI+R8z1 2vr2OgvFYbd8RVeMo4p4MTXeTmSeMTt/99GpobuFpxJdGHpRudBy/lH+FPV9pOfwKHmF n2xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fa9MN6mr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb8si8464634edb.231.2021.08.02.17.09.43; Mon, 02 Aug 2021 17:10: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=@gmail.com header.s=20161025 header.b=fa9MN6mr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232634AbhHCAI3 (ORCPT + 99 others); Mon, 2 Aug 2021 20:08:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232208AbhHCAI2 (ORCPT ); Mon, 2 Aug 2021 20:08:28 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99BD6C061764; Mon, 2 Aug 2021 17:08:12 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id j1so27419353pjv.3; Mon, 02 Aug 2021 17:08:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hnWZQqtS4cs6S2eqLlexSQq+7EoZ7X5M8SRSYOU4pSg=; b=fa9MN6mrs7i6nnx9UkVP//SvAd4Lpxw2vszy+gNUuNmEbGA4gPhMsTCzseTry+F9JA 9KUIDsbNNqZon2DqmmpXXXuYfOyiLRBWrZ0eLUt1/1OxAuHG3HW1pbgH7dkB/zl6vXYX hbM5xEg9XsQ8tZNHnpZzm3eQr3GUFkKm2VLmPVI06fJxz7CM6fMaZ0KPq6YeMdwV32n5 nAG8nhxTuypwryQ9UqbxoDeplUE7ZGbXmGn0s2O6c2/0uWsC+Tjx3uqO/3kOe+wOrEd2 h3ECjjXCaDUwQh9Ozd76QF7f/2/oMi9qvBJrUGOtqwexcoSUUFe5SgWqcQEgyuGJi08u nKcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hnWZQqtS4cs6S2eqLlexSQq+7EoZ7X5M8SRSYOU4pSg=; b=XgB3kUiF0VMPOQFdpmIIjNnBD295rxd7KJBZos3NWk9pIJTjS3k9y9uOUPXFYn73ru ajrbgfyGr7s1bhf4hViUPImIz+eMXwXqrSgfJO7hh5npvFAsLp3xStEE7fLw7lnWIXIB gQiE9w7IlMHlherVlh/poAQVOqkAuEseAe/iplJFFAGZ1UGGZx1EU8AvuMhvhJJaLTA0 aU4/ba0ADYPSunRyBxZAUeuv6LnpWlHelpZyqxx+HX1d/Qai3cAfhlRd0pYX/r6e34tq qBXBwS+6ew4OlqyksGPyMF5e3myUaW6JVhsYVSPT15yIxd4M+YqBWcUeu+LvztZI5qJA Mgbg== X-Gm-Message-State: AOAM532OipxC0PHTEi54YEIdrhmgty7VAT12vvOau2ugvoBFQraOtutT Lgtr6NxKX3UkzJ8QvVVR8CS4cv8rV6e9TqlQn3g= X-Received: by 2002:a63:d704:: with SMTP id d4mr791229pgg.179.1627949292197; Mon, 02 Aug 2021 17:08:12 -0700 (PDT) MIME-Version: 1.0 References: <1931ca440b47344fe357d5438aeab4b439943d10.1627936393.git.peilin.ye@bytedance.com> <672e6f13-bf58-d542-6712-e6f803286373@iogearbox.net> In-Reply-To: <672e6f13-bf58-d542-6712-e6f803286373@iogearbox.net> From: Cong Wang Date: Mon, 2 Aug 2021 17:08:01 -0700 Message-ID: Subject: Re: [PATCH net-next 1/2] net/sched: sch_ingress: Support clsact egress mini-Qdisc option To: Daniel Borkmann Cc: Peilin Ye , Jamal Hadi Salim , Jiri Pirko , "David S. Miller" , Jakub Kicinski , Linux Kernel Network Developers , LKML , Cong Wang , Peilin Ye , Alexei Starovoitov , John Fastabend Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 2, 2021 at 2:11 PM Daniel Borkmann wrote: > > NAK, just use clsact qdisc in the first place which has both ingress and egress > support instead of adding such hack. You already need to change your scripts for > clsact-on, so just swap 'tc qdisc add dev eth0 ingress' to 'tc qdisc add dev eth0 > clsact' w/o needing to change kernel. If we were able to change the "script" as easily as you described, you would not even see such a patch. The fact is it is not under our control, the most we can do is change the qdisc after it is created by the "script", ideally without interfering its traffic, hence we have such a patch. (BTW, it is actually not a script, it is a cloud platform.) Thanks.