[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130719091855.6c763231@nehalam.linuxnetplumber.net>
Date: Fri, 19 Jul 2013 09:18:55 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Thomas Richter <tmricht@...ux.vnet.ibm.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [PATCH 2/2 V2] macvlan fdb replace support
On Fri, 19 Jul 2013 17:20:08 +0200
Thomas Richter <tmricht@...ux.vnet.ibm.com> wrote:
> Add support for iproute2 command 'bridge fdb replace ...'.
> The rtnletlink call back function ndo_fdb_add will be called
> with the NLM_F_REPLACE flag set.
> Simply return -EOPNOTSUP.
>
> Resubmitted because net-next was closed last week.
>
> Signed-off-by: Thomas Richter <tmricht@...ux.vnet.ibm.com>
> ---
> drivers/net/macvlan.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
> index 18373b6..74907f5 100644
> --- a/drivers/net/macvlan.c
> +++ b/drivers/net/macvlan.c
> @@ -597,6 +597,9 @@ static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
> if (!vlan->port->passthru)
> return -EOPNOTSUPP;
>
> + if (flags & NLM_F_REPLACE)
> + return -EOPNOTSUPP;
> +
> if (is_unicast_ether_addr(addr))
> err = dev_uc_add_excl(dev, addr);
> else if (is_multicast_ether_addr(addr))
What about bridge that also uses netlink FDB interface?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists