All of lore.kernel.org
 help / color / mirror / Atom feed
From: roopa <roopa@cumulusnetworks.com>
To: stephen@networkplumber.org
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH iproute2] bridge fdb: add 'use' option to set NTF_USE flag in fdb add requests
Date: Wed, 29 Jul 2015 17:50:20 -0700	[thread overview]
Message-ID: <55B974CC.9070004@cumulusnetworks.com> (raw)
In-Reply-To: <1438205199-34880-1-git-send-email-roopa@cumulusnetworks.com>

On 7/29/15, 2:26 PM, Roopa Prabhu wrote:
> From: Roopa Prabhu <roopa@cumulusnetworks.com>
>
> This is similar to command options corresponding to other NTF_* flags
> already exposed to the user space (examples self/master).
>
> Also updates bridge man page (The man page patch also includes
> a fix to the 'self' entry and documents 'master' for fdb entries)
>
> Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
> ---
just realized i forgot to update usage()...will respin..

>   bridge/fdb.c      |    2 ++
>   man/man8/bridge.8 |   15 ++++++++++++---
>   2 files changed, 14 insertions(+), 3 deletions(-)
>
> diff --git a/bridge/fdb.c b/bridge/fdb.c
> index 278e55f..165fe59 100644
> --- a/bridge/fdb.c
> +++ b/bridge/fdb.c
> @@ -305,6 +305,8 @@ static int fdb_modify(int cmd, int flags, int argc, char **argv)
>   				duparg2("vlan", *argv);
>   			NEXT_ARG();
>   			vid = atoi(*argv);
> +		} else if (matches(*argv, "use") == 0) {
> +			req.ndm.ndm_flags |= NTF_USE;
>   		} else {
>   			if (strcmp(*argv, "to") == 0) {
>   				NEXT_ARG();
> diff --git a/man/man8/bridge.8 b/man/man8/bridge.8
> index 4135d01..c86db03 100644
> --- a/man/man8/bridge.8
> +++ b/man/man8/bridge.8
> @@ -53,8 +53,8 @@ bridge \- show / manipulate bridge addresses and devices
>   .I LLADDR
>   .B  dev
>   .IR DEV " { "
> -.BR local " | " temp " } { "
> -.BR self " } { " router " } [ "
> +.BR local " | " temp " } [ "
> +.BR self " ] [ " master " ] [ " router " ] [ " use " ] [ "
>   .B  dst
>   .IR IPADDR " ] [ "
>   .B vni
> @@ -323,7 +323,11 @@ the Ethernet MAC address.
>   the interface to which this address is associated.
>   
>   .B self
> -- the address is associated with a software fdb (default)
> +- the address is associated with a hardware fdb
> +.sp
> +
> +.B master
> +- the address is associated with software fdb (default)
>   .sp
>   
>   .B router
> @@ -332,6 +336,11 @@ Valid if the referenced device is a VXLAN type device and has
>   route shortcircuit enabled.
>   .sp
>   
> +.B use
> +- the address is in use. User space can use this option to
> +indicate to the kernel that the fdb entry is in use.
> +.sp
> +
>   .in -8
>   The next command line parameters apply only
>   when the specified device

      reply	other threads:[~2015-07-30  0:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-29 21:26 [PATCH iproute2] bridge fdb: add 'use' option to set NTF_USE flag in fdb add requests Roopa Prabhu
2015-07-30  0:50 ` roopa [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=55B974CC.9070004@cumulusnetworks.com \
    --to=roopa@cumulusnetworks.com \
    --cc=netdev@vger.kernel.org \
    --cc=stephen@networkplumber.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.