From patchwork Tue May 26 17:10:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 218510 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDD1DC433E0 for ; Tue, 26 May 2020 17:10:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 970A72073B for ; Tue, 26 May 2020 17:10:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Mellanox.com header.i=@Mellanox.com header.b="j3Tvt0Ou" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388099AbgEZRKp (ORCPT ); Tue, 26 May 2020 13:10:45 -0400 Received: from mail-eopbgr40061.outbound.protection.outlook.com ([40.107.4.61]:58964 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728339AbgEZRKo (ORCPT ); Tue, 26 May 2020 13:10:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BFEY73RNz77P/Fkp+yFdx5ixIc6w1Yucbb0dqVBFhblkWF6XuTcUGM3kqS0i7I256beo8LmEepe9GMph6ftJ2DefFbrUrk5M/KMNA+NYPtFxpGBKkEh32nji35lCgGqY1LZanFay4brVPh4JuBYKnAbhs1qgT0XdneBSwXvHxgPeZUKfW+59iInj6RjZAxBEecNlwf1g4WGNM3USXi8+qiScywQg2me79lbvpYva081sm1az6FPQOeStLAsjyfZcSu6gXhZMfTNG83QrbG++lxo1wdEu51eTQbLVxVgNmhO5gmlnbyuM1wDrCr8fmgsWepAm/Cfhl+Am4ocVuVtQzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qpJ6OItV4Be4W+lnnv60DCs9G8TRjZUA7ZkzI5FtPjU=; b=Sh/8q5GKkxdmnfbh8gtXdJXabO8ehlqnOmofyPsx12oUXy1id9PcLM06xu9kLs9sDJ/V7jIZ5c/UyoNv8VavwgIPNYn88YuPT4m33uMpEhY+QNni8Et1CYn+3r6AGhFDAqS/2I35S/Fbqci4gqHsVEXyK6FTwjgOm9oCMG33ikiqLPWCnKsKp8dPLPzTNns+rWnuHUQWeLYirkDIahaIo6QKsNiJhmx/lyY1Hha68JNcoXdmr9cSxNoY8VquiY3ZAJenaB7+pOHVFNUyHb6fguXdMfItVamAq522eFqiwS7eY/qNHYKtMBWQDmlnpWWCe5aZk7/+5BeelsGoCCLpZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qpJ6OItV4Be4W+lnnv60DCs9G8TRjZUA7ZkzI5FtPjU=; b=j3Tvt0OugQqnIFQ8vN5zunFulrSJ4oGQpOCedN7fb7ayKsA8ZNcJ75gyPt99CqTLFqGX7te8KbJ2+Q9d4l1N0rLIbbRtowkQ2ENJW5w8kot7nYfL/m6mTi7y0DdQGqlRlLQWS9xRSvKsZNzEHS8bUd7/daRjW/Jmxgmy2zdgZl8= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=mellanox.com; Received: from HE1PR05MB4746.eurprd05.prod.outlook.com (2603:10a6:7:a3::22) by HE1PR05MB3225.eurprd05.prod.outlook.com (2603:10a6:7:37::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Tue, 26 May 2020 17:10:36 +0000 Received: from HE1PR05MB4746.eurprd05.prod.outlook.com ([fe80::454c:b7ed:6a9c:21f5]) by HE1PR05MB4746.eurprd05.prod.outlook.com ([fe80::454c:b7ed:6a9c:21f5%7]) with mapi id 15.20.3021.029; Tue, 26 May 2020 17:10:36 +0000 From: Petr Machata To: netdev@vger.kernel.org Cc: Jakub Kicinski , Eric Dumazet , jhs@mojatatu.com, jiri@mellanox.com, idosch@mellanox.com, Petr Machata Subject: [RFC PATCH iproute2-next 1/4] uapi: pkt_sched: Add two new RED attributes Date: Tue, 26 May 2020 20:10:08 +0300 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: X-ClientProxiedBy: AM0PR02CA0034.eurprd02.prod.outlook.com (2603:10a6:208:3e::47) To HE1PR05MB4746.eurprd05.prod.outlook.com (2603:10a6:7:a3::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from dev-r-vrt-156.mtr.labs.mlnx (37.142.13.130) by AM0PR02CA0034.eurprd02.prod.outlook.com (2603:10a6:208:3e::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27 via Frontend Transport; Tue, 26 May 2020 17:10:34 +0000 X-Mailer: git-send-email 2.20.1 X-Originating-IP: [37.142.13.130] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 16940c0f-ce68-4795-d79b-08d80197b4d6 X-MS-TrafficTypeDiagnostic: HE1PR05MB3225: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:296; X-Forefront-PRVS: 041517DFAB X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FOrka8Et4Fx3ysJUH7NsVhqTRtNBAOdlc8UAOxodaUUKGEgFDV1KmR9L3wlx6GNchnVM6RUjLB565QYSYmt2anUZetc0sKQ20KzwK2UDNBvPSNjbgGoMCwCJHS/62Q0lygv0gQ1NbFjiZjn/jk8MSfKkzgKKn7Nje1mRd7GXSfqQynn8Mmj32meaU0zsiuC89mLpzNJ0RLPacTRe98Iv7kf3y9xKQaZG8WzSNcdy5VaDZ0N15gRfJP93yYNe+kq6v2F5o4609a3OvrISPwpvirdRPJfzgGJEXre6U2DhLGJr7PNbu8XNY2u4ku6cTvkyIJHXnoWtpRQeFDU8quS5cQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR05MB4746.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(376002)(136003)(396003)(39840400004)(366004)(956004)(6486002)(2616005)(26005)(186003)(52116002)(6506007)(86362001)(2906002)(8676002)(8936002)(16526019)(5660300002)(6666004)(36756003)(6512007)(54906003)(6916009)(66556008)(107886003)(4326008)(4744005)(478600001)(66946007)(66476007)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: fMDpYmdJaspnbSSbTETJ900Qsb7k19EdedrGCXVfwbRbR2sPTy+hS4oHhSzsHCwFNOzPg0ql80tnzP0Ko0UcgqYf3oa58KSbbUgqytPtit/o0XJALqE0vm4IMv2IFz3UZSsv0zpXmlkyJwYkrAn+Qq2uzLgkRHJgp4R4ikTNgAsc+yDF2/+9NMBNTomYz4/ipV/9VIURUecSAXfpw1I55qOb2HAK2pyq/dLMflwWoPKe33akjavwyK57dRKiZBF8SnQGFqq2/UBGEl/iBoZz7Bj/uATw0/8ZZ2KwBOD9UJtODZ4+ti1PHrSHyVAIiS8bNlVOef14APZFdQPKclR+kBuzLu87mULESKdE68fXrGJdEvmYHX6V1xzshocTZsZ6VWVxnl7ioc7nBQFCMQ7RsQYM9WK5DITtbXh5y7xUzQ+ZGIcuDO7bz7gzKXnqY0o/uKYbERA7ofCEZ+nnd3ywqb2lb9iCrzl2PrwcilK2P/F4yT9K36cR2RZSfh+E9VEc X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16940c0f-ce68-4795-d79b-08d80197b4d6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2020 17:10:36.1931 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8Wgnbwi1BgdZgPVwdp1lfNY6KO4utbYnTBklBWIf7JGzcK15unLMj6wDwfgf2kLNMELA/UC4IjaDI6Wl0OeVoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB3225 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Petr Machata --- include/uapi/linux/pkt_sched.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h index 0c02737c..203272df 100644 --- a/include/uapi/linux/pkt_sched.h +++ b/include/uapi/linux/pkt_sched.h @@ -257,6 +257,8 @@ enum { TCA_RED_STAB, TCA_RED_MAX_P, TCA_RED_FLAGS, /* bitfield32 */ + TCA_RED_EARLY_BLOCK, /* u32 */ + TCA_RED_MARK_BLOCK, /* u32 */ __TCA_RED_MAX, }; From patchwork Tue May 26 17:10:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Machata X-Patchwork-Id: 218509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5536CC433DF for ; Tue, 26 May 2020 17:10:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 31DE72073B for ; Tue, 26 May 2020 17:10:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Mellanox.com header.i=@Mellanox.com header.b="gvizpGOv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388355AbgEZRKv (ORCPT ); Tue, 26 May 2020 13:10:51 -0400 Received: from mail-eopbgr40061.outbound.protection.outlook.com ([40.107.4.61]:58964 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729825AbgEZRKu (ORCPT ); Tue, 26 May 2020 13:10:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CLGavh/EEoxRSMY1ZTv0BFWSvX/OAFGU2nuLtaB3JZSipLp7rqzI/qZAmQn0PW79TB8h0NoJjKiS1Cj35YwYnlBC6UY5jKVdBHJp6o4/PWlQyb2ZN1zOyQjQYQ5cnzNRVZilKHyfHjeMEnZcjUdZhHlvMNyHaAIkw0jw1kFtgjF/Om0XuZAzc9XayFXxZ9pH/F6uVZs1rgCgWWG5QwleNCbHrbqIZql8rtKGiOQjJ1Clz+1xiM4mtx83KN57PPK2m40MA2C52kNZykTo0oTV4NcexI6TAnQkNA42a0zCcVhXCg7gMRdYhCYiW8hE0IGEOk8XU15I+WshwitvdSo/2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NFvt3AYzLc8vnVuXKAbqnOwhelN/2Q1uZcpGzQ5CF1A=; b=LTZ4nZJodYxflDcSUZDaC//sEP0kU6BfvCXs7Ap7ZSLbhNdmqdsxEkAkAcqEnAMdLl1PkqJWlJzY6zI03jfZ0zuX+OHv1U7iJKuIBIVQIaopgCCft9tNu3zcMjnBGRkF4y4msLPrGM8pG9bkmJ7ajjKB/AXj/LKVYWuI1dDsCZzm0KCs6jN70mzxWRHAdD9PZp1fFBGLU3OKcpHT3SFSAHSoP0Cv8Woa64T8xqgXirFYg/5Tp4NeiLXOP6iv9p98UkbI/8haoW+utw8qYT3bblz449PoHasS29xEIWWy9KDeARYmLxjaiwcsFHJKee5qB0eL3TWVwQFPAZ63sfAGxQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NFvt3AYzLc8vnVuXKAbqnOwhelN/2Q1uZcpGzQ5CF1A=; b=gvizpGOvlUUFZUbo3F7q2o0l7xWu4Ps3bX4cv8gMAvrWwPidOR0uwelT76fczd06Adao13baYQPnDYibo//zCsRdFUQPSKdQqoEOTuQoCUjqI1o81XHepTKOo8r5ANzgySIsqIcx63CDup+/8mmOyL4hjKvCIaUAonQKxKCSBc0= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=mellanox.com; Received: from HE1PR05MB4746.eurprd05.prod.outlook.com (2603:10a6:7:a3::22) by HE1PR05MB3225.eurprd05.prod.outlook.com (2603:10a6:7:37::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Tue, 26 May 2020 17:10:39 +0000 Received: from HE1PR05MB4746.eurprd05.prod.outlook.com ([fe80::454c:b7ed:6a9c:21f5]) by HE1PR05MB4746.eurprd05.prod.outlook.com ([fe80::454c:b7ed:6a9c:21f5%7]) with mapi id 15.20.3021.029; Tue, 26 May 2020 17:10:39 +0000 From: Petr Machata To: netdev@vger.kernel.org Cc: Jakub Kicinski , Eric Dumazet , jhs@mojatatu.com, jiri@mellanox.com, idosch@mellanox.com, Petr Machata Subject: [RFC PATCH iproute2-next 3/4] man: tc: Describe qevents Date: Tue, 26 May 2020 20:10:10 +0300 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: X-ClientProxiedBy: AM0PR02CA0034.eurprd02.prod.outlook.com (2603:10a6:208:3e::47) To HE1PR05MB4746.eurprd05.prod.outlook.com (2603:10a6:7:a3::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from dev-r-vrt-156.mtr.labs.mlnx (37.142.13.130) by AM0PR02CA0034.eurprd02.prod.outlook.com (2603:10a6:208:3e::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27 via Frontend Transport; Tue, 26 May 2020 17:10:38 +0000 X-Mailer: git-send-email 2.20.1 X-Originating-IP: [37.142.13.130] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 87cdd3ec-9fd9-41c6-1b92-08d80197b6cc X-MS-TrafficTypeDiagnostic: HE1PR05MB3225: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-Forefront-PRVS: 041517DFAB X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: snUsiryf1FPIT6mU4NDBI3wEhp6iJDc6+inUcxD02Y/CBz4jZVyVQfO/T06ZwWic7jvt4pnC6XDk5lozeqSxb9ZrRKmEggQrZxen3z8hB36toV6SOt3l/Q5iCnNqn468sZkZC9lnxlHUe22Qgjp3u9JGU6EEd6pXzKf49z3Th5ClfcdQgRhsB/pXi9w5syAtMPlvN7WYyOcFSoztVs/VidDA2vuM/lnwsL+HNwzHDY2Mw51xJ4mpqTMNuEgrWPAITA72ea4z4C8qBOn2JM+WgExvpaFJZL2doqgrEjaGYZWUOb5sGQ1AVsu5rO4tpOnRQ5azbxkQ507ZHXeHb4eQDA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR05MB4746.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(376002)(136003)(396003)(39840400004)(366004)(956004)(6486002)(2616005)(26005)(186003)(52116002)(6506007)(86362001)(2906002)(8676002)(8936002)(16526019)(5660300002)(6666004)(36756003)(6512007)(54906003)(6916009)(66556008)(107886003)(4326008)(478600001)(66946007)(66476007)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: GpX/T1OVz5zcbsNV+ePgMHVJxjnLQ5XMKFNSejnvp7rlInN3Zry+VwS9VOMITFjb08Y5zxlyGDvFxgUeR1VhmfySbvhhUX/AE87ayF1i7YqbgnjGt4Wbz/11ZTF5Q0mXRt/Yb9hl0UR/kDMxriCCQu0/TJofXx48qnB2sf+7SteQC+dgv4C+poVWnfndi8C81qFkq7bX+FmlfAxqeDsUmyzCXeaxau1aGTZ+x1OyHnAeW0WUd2KqqD41mfWgGkXcWAL87jMy7oPEwV7mX1pDn/znoMiXWp2qH4+ROrhPtJVEJaKMptc0TkQCUfgD+JKwnJ12LVjY7qTSaRBjn+HtWD1YsL8PgDGHpaTd/eUzIUI5Nc9zE8Gs/zAE6J7oiPEV7Kmt1LCZDi7UwDizu0gVnWlNJz5JPXl/jGZwLtYVgXGqBj5MScxJ2OrRNltAo/SdupLvyjJqh3TrhulBPrRxfd7ECM9uOo2QqeGfEMw2jhDh/dlW4EfWq4PjmH1UsXsk X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 87cdd3ec-9fd9-41c6-1b92-08d80197b6cc X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2020 17:10:39.5791 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mbWDmdm8LKvykaWJsH+5YcqBtr5mvdGRqAiHWhtnV0EdGLa6wymJ/3AWIkdwZ4YEdTQTiDqiU4P2vPDBneSw/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB3225 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add some general remarks about qevents. Signed-off-by: Petr Machata --- man/man8/tc.8 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/man/man8/tc.8 b/man/man8/tc.8 index e8e0cd0f..970440f6 100644 --- a/man/man8/tc.8 +++ b/man/man8/tc.8 @@ -254,6 +254,25 @@ Traffic control filter that matches every packet. See .BR tc-matchall (8) for details. +.SH QEVENTS +Qdiscs may invoke user-configured actions when certain interesting events +take place in the qdisc. Each qevent can either be unused, or can have a +block attached to it. To this block are then attached filters using the "tc +block BLOCK_IDX" syntax. The block is executed when the qevent associated +with the attachment point takes place. For example, packet could be +dropped, or delayed, etc., depending on the qdisc and the qevent in +question. + +For example: +.PP +.RS +tc qdisc add dev eth0 root handle 1: red limit 500K avpkt 1K \\ + qevent early block 10 +.RE +.RS +tc filter add block 10 matchall action mirred egress mirror dev eth1 +.RE + .SH CLASSLESS QDISCS The classless qdiscs are: .TP