Re: [RFC PATCH net-next 0/4] net_cls for sys container
From: Libo Chen
Date: Mon Jan 06 2014 - 05:07:32 EST
On 2014/1/6 16:42, Gao feng wrote:
> On 01/06/2014 03:54 PM, Libo Chen wrote:
>> On 2014/1/3 13:20, Cong Wang wrote:
>>> On Thu, Jan 2, 2014 at 7:11 PM, Libo Chen <clbchenlibo.chen@xxxxxxxxxx> wrote:
>>>> Hi guys,
>>>> Now, lxc created with veth can not be under control by
>>>> the former discussion:
>>>> 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
> It's a problem about virtual nic, not container/net namespace.
> If veth device is running in host. the skb is transmitted firstly by veth device and then delivered
> by physical device. if you set both qdisc rule on veth and physical device. which qdisc rule will take
both, the end result depends on a smaller.
> In your patch, both qdisc rule are effective. it looks strange.
qdisc is based nic, does not distinguish virtual or physics. if you are all set,
it means that what you want. so the logic is not the problemI and this appears to be normal.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/