Re: [PATCH 1/4] veth: move loopback logic to common location |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
- Subject: Re: [PATCH 1/4] veth: move loopback logic to common location
- From: Patrick McHardy <kaber@xxxxxxxxx>
- Date: Tue, 24 Nov 2009 19:38:28 +0100
- Cc: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>, Eric Dumazet <eric.dumazet@xxxxxxxxx>, Anna Fischer <anna.fischer@xxxxxx>, netdev@xxxxxxxxxxxxxxx, bridge@xxxxxxxxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, Mark Smith <lk-netdev@xxxxxxxxxxxxxxxxxxxxx>, Gerhard Stenzel <gerhard.stenzel@xxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Jens Osterkamp <jens@xxxxxxxxxxxxxxxxxx>, Patrick Mullaney <pmullaney@xxxxxxxxxx>, Stephen Hemminger <shemminger@xxxxxxxxxx>, Edge Virtual Bridging <evb@xxxxxxxxxxxxxxx>, David Miller <davem@xxxxxxxxxxxxx>
- In-reply-to: <m1aayb6bfg.fsf@xxxxxxxxxxxxxxxxx>
- References: <1259024166-28158-1-git-send-email-arnd@xxxxxxxx> <200911241002.20904.arnd@xxxxxxxx> <4B0BB2A7.5040707@xxxxxxxxx> <200911241034.43961.arnd@xxxxxxxx> <4B0BB818.6090509@xxxxxxxxx> <m1aaybc1s5.fsf@xxxxxxxxxxxxxxxxx> <4B0C1031.4050803@xxxxxxxxx> <m1aayb6bfg.fsf@xxxxxxxxxxxxxxxxx>
- User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701)
Eric W. Biederman wrote:
> Patrick McHardy <kaber@xxxxxxxxx> writes:
>
>> In the layered case (macvlan -> eth0) its common behaviour to
>> keep the mark however. But in case of different namespaces,
>> I think macvlan should also clear the mark on the dev_queue_xmit()
>> path since this is just a shortcut to looping the packets
>> through veth. In fact probably both of them should also clear
>> skb->priority so other namespaces don't accidentally misclassify
>> packets.
>
> That is why I pushed for what is becoming dev_forward_skb. So that
> we have one place where we can make all of those tweaks. It seems
> like in every review we find another field that should be cleared/handled
> specially.
>
> I don't quite follow what you intend with dev_queue_xmit when the macvlan
> is in one namespace and the real physical device is in another. Are
> you mentioning that the packet classifier runs in the namespace where
> the primary device lives with packets from a different namespace?
Exactly. And I think we should make sure that the namespace of
the macvlan device can't (deliberately or accidentally) cause
misclassification.
_______________________________________________
Bridge mailing list
Bridge@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/bridge
[Netdev]
[AoE Tools]
[Linux Wireless]
[Kernel Newbies]
[Security]
[Linux for Hams]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux RAID]
[Linux Admin]
[Samba]
[Video 4 Linux]
[Linux Resources]