From patchwork Fri Nov 16 15:38:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jonathan Thibault X-Patchwork-Id: 999009 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=navigue.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tKAHGc5t"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="1S9+kIHU"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42xMp054lWz9s47 for ; Sat, 17 Nov 2018 02:38:32 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:Date:Message-ID:To:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=6jaVo24ShMOKDCvXjBsT9c54pUMW+DeNNlJyz8yngl4=; b=tKAHGc5t5bK/YN n+LYYMBc6gW4P8o0mY2Ta9c9wMlKJNCNyVk+J00SEWcVrEQk0/8pcQsQ9x1GJTXsMbFdZCvWXbtEy GtJKV5UjVjW737XZ0t9O1XAlGNth6+E6MN+CpNJeNcp755aE3ewlxGq5a8Vkjnoe4drlYJAOrL2nD 7ymoWzDVHyy8sEA0TFPRzC0OOo9U6Ri1Esl9ZOptQ2tuAf3mE9qJc5TCdSmEYYiB0BOz0zj8I6IU9 qLwCiA7oRYSM1zQbcBTOOpzU/vTt/hzc0JrE8D8zCluE2vHOw7kC4kDa/jLYPy4JL4FKMXg2uUPKX +upi6qZxIIt5Q0rM8b9w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNgCM-0003HM-Uo; Fri, 16 Nov 2018 15:38:22 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNgCK-0003HC-W3 for openwrt-devel@bombadil.infradead.org; Fri, 16 Nov 2018 15:38:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:To:Subject:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=apxJ6F9+C7/nvhFol7/45IX91637t43VVEKkqa/oUps=; b=1S9+kIHUn7/W55nUBCoVRwMKpn 1bjz0jjYWMC6YsVfXrBW3TIXzp00gfG2IhOEj0g95vW9JEnJ9HwiAf0+1eN/ocGZ/Be9l0+vkQE5a 5jokQFYD626Iu2J7yPjx9IhedNFmHoq4CO4Uw5mWSyXvujLQzGODcGHNpbeOxnu2Swhzhofg6eP17 leUr1r1ly/criBvkDxq7G4q6WhUR4mHy/5nIXEiVMUIHMMuurBQ2Pe7LT1dsF5Qq/MZfe4bOf1vDj GKMxKBBAJLK46N775+xsd+7XpJPF0+0Jxm0SkiXT97W9CUif2HXu+TcdbDwKctoRttlvd0GEV6wka P/tpeUew==; Received: from mail.navigue.com ([74.117.40.3]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNgCI-0001OM-4e for lede-dev@lists.infradead.org; Fri, 16 Nov 2018 15:38:18 +0000 Received: from [192.168.7.178] (bureau.navigue.com [74.117.40.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.navigue.com (Postfix) with ESMTPSA id C77C01A01F1; Fri, 16 Nov 2018 10:38:08 -0500 (EST) From: Jonathan Thibault To: OpenWrt Development List , openwrt-devel@lists.openwrt.org Message-ID: <0350dbbc-f50c-2d14-3311-9a713c2d6581@navigue.com> Date: Fri, 16 Nov 2018 10:38:05 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181116_103818_262391_9BF1CD84 X-CRM114-Status: UNSURE ( 9.32 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on merlin.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.117.40.3 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record Subject: [OpenWrt-Devel] [PATCH] Add generic actions to sched-core X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Greetings, Next in my series of 'OpenWRT as a network swiss army knife' patches, I suggest having the ability to accept/drop frames with TC as part of sched-core. This can be useful in cases where you need very fast (if simplistic) packet filtering. I believe they are basic enough to be considered 'core' functionality. Alternatively they could be packaged in kmod-sched since they aren't used oftené. At 9304 bytes (on octeon), I'm not sure it makes much of a difference. act_skbedit SCHED_MODULES_FILTER = $(SCHED_MODULES_CORE) act_connmark sch_netem SCHED_MODULES_EXTRA = $(filter-out $(SCHED_MODULES_FILTER),$(SCHED_MODULES)) SCHED_FILES = $(patsubst %,$(LINUX_DIR)/net/sched/%.ko,$(filter $(SCHED_MODULES_CORE),$(SCHED_MODULES))) @@ -739,6 +739,7 @@ define KernelPackage/sched-core CONFIG_NET_CLS_ROUTE4 \ CONFIG_NET_CLS_TCINDEX \ CONFIG_NET_CLS_U32 \ + CONFIG_NET_ACT_GACT \ CONFIG_NET_ACT_MIRRED \ CONFIG_NET_ACT_SKBEDIT \ CONFIG_NET_EMATCH=y \ diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index f94c20d861..d822a93f1b 100644 --- a/package/kernel/linux/modules/netsupport.mk +++ b/package/kernel/linux/modules/netsupport.mk @@ -716,7 +716,7 @@ $(eval $(call KernelPackage,mppe)) SCHED_MODULES = $(patsubst $(LINUX_DIR)/net/sched/%.ko,%,$(wildcard $(LINUX_DIR)/net/sched/*.ko)) -SCHED_MODULES_CORE = sch_ingress sch_fq_codel sch_hfsc sch_htb sch_tbf cls_fw cls_route cls_flow cls_tcindex cls_u32 em_u32 act_mirred act_skbedit +SCHED_MODULES_CORE = sch_ingress sch_fq_codel sch_hfsc sch_htb sch_tbf cls_fw cls_route cls_flow cls_tcindex cls_u32 em_u32 act_gact act_mirred