From: Vlad Yasevich <vyasevic@redhat.com>
To: Ben Greear <greearb@candelatech.com>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] macvlan: Set IFF_UNICAST_FLT flag to prevent unnecessary promisc mode.
Date: Thu, 07 Mar 2013 15:43:43 -0500 [thread overview]
Message-ID: <5138FBFF.9000108@redhat.com> (raw)
In-Reply-To: <5138F95A.9010305@redhat.com>
On 03/07/2013 03:32 PM, Vlad Yasevich wrote:
> On 03/07/2013 03:27 PM, Ben Greear wrote:
>> On 03/07/2013 12:21 PM, Vlad Yasevich wrote:
>>> Macvlan already supports hw address filters. Set the IFF_UNICAST_FLT
>>> so that it doesn't needlesly enter PROMISC mode when macvlans are
>>> stacked.
>>
>> Out of curiosity, how can stacking mac-vlans be useful?
>>
>> (You are stacking more macvlans on a base mac-vlan?)
>
> Yep, and macvlans allows, but it looks like it only tries to detect a 2
> level stack. I am not sure what the reason is. Might be realated to
> vlan-to-vlan communication.
Aha. The reason is explained in this commit.
commit b0832a2961022a076c812384435b5f0290b3fc91
Author: Eric Biederman <ebiederm@aristanetworks.com>
Date: Fri Mar 13 13:15:37 2009 -0700
macvlan: Support creating macvlans from macvlans
When running in a network namespace whose only link to
the outside world is a macvlan device, not being
able to create another macvlan is a real pain.
So modify macvlan creation to allow automatically forward
a creation of a macvlan on a macvlan to become a creation
of a macvlan on the underlying network device.
I don't know if it's useful to support more then 2 levels.
-vlad
>
> -vlad
>
>>
>> Thanks,
>> Ben
>>
>
next prev parent reply other threads:[~2013-03-07 20:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-07 20:21 [PATCH] macvlan: Set IFF_UNICAST_FLT flag to prevent unnecessary promisc mode Vlad Yasevich
2013-03-07 20:27 ` Ben Greear
2013-03-07 20:32 ` Vlad Yasevich
2013-03-07 20:43 ` Vlad Yasevich [this message]
2013-03-07 21:37 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5138FBFF.9000108@redhat.com \
--to=vyasevic@redhat.com \
--cc=greearb@candelatech.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).