netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Michael Braun <michael-dev@fami-braun.de>
Cc: netdev@vger.kernel.org, projekt-wlan@fem.tu-ilmenau.de, steweg@gmail.com
Subject: Re: [PATCH v3] iproute2: macvlan: add "source" mode
Date: Wed, 26 Oct 2016 11:11:46 -0700	[thread overview]
Message-ID: <20161026111146.702e8559@xeon-e3> (raw)
In-Reply-To: <1474830535-12689-1-git-send-email-michael-dev@fami-braun.de>

On Sun, 25 Sep 2016 21:08:55 +0200
Michael Braun <michael-dev@fami-braun.de> wrote:

> Adjusting iproute2 utility to support new macvlan link type mode called
> "source".
> 
> Example of commands that can be applied:
>   ip link add link eth0 name macvlan0 type macvlan mode source
>   ip link set link dev macvlan0 type macvlan macaddr add 00:11:11:11:11:11
>   ip link set link dev macvlan0 type macvlan macaddr del 00:11:11:11:11:11
>   ip link set link dev macvlan0 type macvlan macaddr flush
>   ip -details link show dev macvlan0
> 
> Based on previous work of Stefan Gula <steweg@gmail.com>
> 
> Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
> 
> Cc: steweg@gmail.com
> --
> v3: fix coding style, sorry for the noise
> ---
>  include/linux/if_link.h |   2 +
>  ip/iplink_macvlan.c     | 103 ++++++++++++++++++++++++++++++++++++++++++++++--
>  man/man8/ip-link.8.in   |  57 +++++++++++++++++++++++++++
>  3 files changed, 158 insertions(+), 4 deletions(-)
> 
> diff --git a/include/linux/if_link.h b/include/linux/if_link.h
> index 1feb708..ec5e64e 100644
> --- a/include/linux/if_link.h
> +++ b/include/linux/if_link.h
> @@ -401,6 +401,8 @@ enum macvlan_macaddr_mode {
>  };
>  
>  #define MACVLAN_FLAG_NOPROMISC	1
> +#define MACVLAN_FLAG_UNICAST	2
> +#define MACVLAN_FLAG_UNICAST_ALL	4

These header changes are not in upstream source. Sorry, you have to get the kernel
changes in first. I am backing this out of iproute2

      parent reply	other threads:[~2016-10-26 18:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-25 19:08 [PATCH v3] iproute2: macvlan: add "source" mode Michael Braun
2016-10-12 22:27 ` Stephen Hemminger
2016-10-26 18:11 ` Stephen Hemminger [this message]

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=20161026111146.702e8559@xeon-e3 \
    --to=stephen@networkplumber.org \
    --cc=michael-dev@fami-braun.de \
    --cc=netdev@vger.kernel.org \
    --cc=projekt-wlan@fem.tu-ilmenau.de \
    --cc=steweg@gmail.com \
    /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).