From mboxrd@z Thu Jan 1 00:00:00 1970 From: Libo Chen Subject: Re: [RFC PATCH net-next 0/4] net_cls for sys container Date: Mon, 6 Jan 2014 15:54:53 +0800 Message-ID: <52CA614D.6040702@huawei.com> References: <52C62A44.4070304@huawei.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Cong Wang Cc: David Miller , Jamal Hadi Salim , Li Zefan , Eric Dumazet , pshelar-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org, jasowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, Simon Horman , Serge Hallyn , Linux Kernel Network Developers , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Patrick McHardy , xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org, LKML On 2014/1/3 13:20, Cong Wang wrote: > On Thu, Jan 2, 2014 at 7:11 PM, Libo Chen wrote: >> Hi guys, >> >> Now, lxc created with veth can not be under control by >> cls_cgroup. >> >> the former discussion: >> http://lkml.indiana.edu/hypermail/linux/kernel/1312.1/00214.html >> >> In short, because cls_cgroup relys classid attached to sock >> filter skb, but sock will be cleared inside dev_forward_skb() >> in veth_xmit(). > > > So what are you trying to achieve here? sys container using veth can be controlled by cls_cgroup basing on physic network interface thanks, Libo > > . > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752957AbaAFHzy (ORCPT ); Mon, 6 Jan 2014 02:55:54 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:34048 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751063AbaAFHzw (ORCPT ); Mon, 6 Jan 2014 02:55:52 -0500 Message-ID: <52CA614D.6040702@huawei.com> Date: Mon, 6 Jan 2014 15:54:53 +0800 From: Libo Chen User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Cong Wang CC: David Miller , Jamal Hadi Salim , Li Zefan , Eric Dumazet , , , Simon Horman , Serge Hallyn , "Linux Kernel Network Developers" , , , Patrick McHardy , , LKML Subject: Re: [RFC PATCH net-next 0/4] net_cls for sys container References: <52C62A44.4070304@huawei.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.22.241] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2014/1/3 13:20, Cong Wang wrote: > On Thu, Jan 2, 2014 at 7:11 PM, Libo Chen wrote: >> Hi guys, >> >> Now, lxc created with veth can not be under control by >> cls_cgroup. >> >> the former discussion: >> http://lkml.indiana.edu/hypermail/linux/kernel/1312.1/00214.html >> >> In short, because cls_cgroup relys classid attached to sock >> filter skb, but sock will be cleared inside dev_forward_skb() >> in veth_xmit(). > > > So what are you trying to achieve here? sys container using veth can be controlled by cls_cgroup basing on physic network interface thanks, Libo > > . > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Libo Chen Subject: Re: [RFC PATCH net-next 0/4] net_cls for sys container Date: Mon, 6 Jan 2014 15:54:53 +0800 Message-ID: <52CA614D.6040702@huawei.com> References: <52C62A44.4070304@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: David Miller , Jamal Hadi Salim , Li Zefan , Eric Dumazet , , , Simon Horman , Serge Hallyn , "Linux Kernel Network Developers" , , , Patrick McHardy , , LKML To: Cong Wang Return-path: In-Reply-To: Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org On 2014/1/3 13:20, Cong Wang wrote: > On Thu, Jan 2, 2014 at 7:11 PM, Libo Chen wrote: >> Hi guys, >> >> Now, lxc created with veth can not be under control by >> cls_cgroup. >> >> the former discussion: >> http://lkml.indiana.edu/hypermail/linux/kernel/1312.1/00214.html >> >> In short, because cls_cgroup relys classid attached to sock >> filter skb, but sock will be cleared inside dev_forward_skb() >> in veth_xmit(). > > > So what are you trying to achieve here? sys container using veth can be controlled by cls_cgroup basing on physic network interface thanks, Libo > > . >