Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id CA3B5E00D94; Thu, 28 Dec 2017 17:34:49 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.1.11 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id AAA05E00D7B for ; Thu, 28 Dec 2017 17:34:48 -0800 (PST) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id vBT1YldV019192 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 28 Dec 2017 17:34:47 -0800 (PST) Received: from pek-lpggp1.wrs.com (128.224.153.74) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.361.1; Thu, 28 Dec 2017 17:34:47 -0800 From: "Hongzhi.Song" To: Date: Thu, 28 Dec 2017 20:34:45 -0500 Message-ID: <20171229013445.200630-1-hongzhi.song@windriver.com> X-Mailer: git-send-email 2.13.3 MIME-Version: 1.0 Subject: [PATCH] enable kernel CONFIG_NET_ACT_POLICE for openvswitch X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Dec 2017 01:34:49 -0000 Content-Type: text/plain Setting 'CONFIG_NET_ACT_POLICE=m' meets demands of Qos,one of features of openswitch. This is a new police-mechanism called action-extension. It can build act_police.c into kernel as type of module. If you want to do traffic policing, a kind of action-extension, i.e. strict bandwidth limiting. This action replaces the existing policing module. User can set action-extension at userspace by tool of openvswitch If user set action-extension, exts->actions[i] will be called, and finally tcf_police() defined at act_police.c will be called. Signed-off-by: Hongzhi.Song --- recipes-kernel/linux/linux-yocto/vswitch.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-kernel/linux/linux-yocto/vswitch.cfg b/recipes-kernel/linux/linux-yocto/vswitch.cfg index 0067504..b1fefc0 100644 --- a/recipes-kernel/linux/linux-yocto/vswitch.cfg +++ b/recipes-kernel/linux/linux-yocto/vswitch.cfg @@ -1,2 +1,3 @@ CONFIG_OPENVSWITCH=m CONFIG_NET_SCH_INGRESS=m +CONFIG_NET_ACT_POLICE=m -- 2.13.3