From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751738AbcBLQGE (ORCPT ); Fri, 12 Feb 2016 11:06:04 -0500 Received: from mail-yw0-f196.google.com ([209.85.161.196]:36268 "EHLO mail-yw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751157AbcBLQGA (ORCPT ); Fri, 12 Feb 2016 11:06:00 -0500 Date: Fri, 12 Feb 2016 11:05:58 -0500 From: Tejun Heo To: Alban Crequy Cc: David Miller , pablo@netfilter.org, kaber@trash.net, kadlec@blackhole.kfki.hu, daniel@iogearbox.net, daniel.wagner@bmw-carit.de, nhorman@tuxdriver.com, Li Zefan , Johannes Weiner , netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, cgroups@vger.kernel.org, "linux-kernel@vger.kernel.org" , kernel-team@fb.com, ninasc@fb.com, Jan Engelhardt Subject: Re: [PATCH 8/8] netfilter: implement xt_cgroup cgroup2 path match Message-ID: <20160212160558.GE3741@mtj.duckdns.org> References: <1449527935-27056-1-git-send-email-tj@kernel.org> <1449527935-27056-9-git-send-email-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, Feb 12, 2016 at 01:10:18AM +0100, Alban Crequy wrote: > Is there any plans to implement a similar cgroup2 path match in a > cgroup classifier in tc? That'd be great. I wanted to but couldn't figure out the heads and tails after staring at the code for half an hour. > I wonder if it will be possible to use cgroup to classify packets in > tc without net_cls.class_id in cgroup2. You can still match against cgroup v2 path using xt_cgroup and then mark it and then match that from tc, which isn't ideal but works. Thanks. -- tejun