Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932554AbbKQWSF (ORCPT ); Tue, 17 Nov 2015 17:18:05 -0500 Received: from mail-yk0-f176.google.com ([209.85.160.176]:34301 "EHLO mail-yk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753314AbbKQWSC (ORCPT ); Tue, 17 Nov 2015 17:18:02 -0500 Date: Tue, 17 Nov 2015 17:17:57 -0500 From: Tejun Heo To: Daniel Borkmann Cc: David Miller , pablo@netfilter.org, kaber@trash.net, kadlec@blackhole.kfki.hu, lizefan@huawei.com, hannes@cmpxchg.org, 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, daniel.wagner@bmw-carit.de, nhorman@tuxdriver.com Subject: Re: [PATCH 4/5] sock, cgroup: add sock->sk_cgroup Message-ID: <20151117221757.GI22864@mtj.duckdns.org> References: <1447789240-29394-1-git-send-email-tj@kernel.org> <1447789240-29394-5-git-send-email-tj@kernel.org> <20151117.162554.314531574043190960.davem@davemloft.net> <20151117213126.GH22864@mtj.duckdns.org> <564BA0BE.7050302@iogearbox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <564BA0BE.7050302@iogearbox.net> 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 Content-Length: 888 Lines: 24 Hello, Daniel. On Tue, Nov 17, 2015 at 10:48:46PM +0100, Daniel Borkmann wrote: > >Unfortunately, sk->sk_cgrp_prioidx is an arbitrary value which can be > >configured through "net_cls.classid". :( > > Hmm, isn't net_prio independent of net_cls? Ah, yeah, I was mixing up the two but the story is the same for both. net_prio configures the prioidx and net_cls the classid and the two may or may not (but more likely not) be on the same hierarchy and definitely not on the cgroup2 hierarchy, so you can't really access them through a single ->sk_cgroup pointer. After all, that's why we ended up with these controllers. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/