public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Ido Schimmel <idosch@idosch•org>
To: David Ahern <dsa@cumulusnetworks•com>
Cc: Jiri Pirko <jiri@resnulli•us>,
	netdev@vger•kernel.org, davem@davemloft•net, idosch@mellanox•com,
	mlxsw@mellanox•com, shm@cumulusnetworks•com,
	kuznet@ms2•inr.ac.ru, jmorris@namei•org, yoshfuji@linux-ipv6•org,
	kaber@trash•net, lorenzo@google•com, mateusz.bajorski@nokia•com
Subject: Re: [patch net-next 04/10] net: Add netif_is_vrf_master helper
Date: Mon, 13 Mar 2017 17:01:03 +0200	[thread overview]
Message-ID: <20170313150103.GA32446@splinter.mtl.com> (raw)
In-Reply-To: <d3d82369-bea2-ea7e-0912-66061bd6cc91@cumulusnetworks.com>

On Mon, Mar 13, 2017 at 08:39:19AM -0600, David Ahern wrote:
> On 3/13/17 1:38 AM, Jiri Pirko wrote:
> > From: Ido Schimmel <idosch@mellanox•com>
> > 
> > Drivers capable of offloading VRF configurations need to know the ports
> > are enslaved to an actual VRF device and not some other L3 master.
> > 
> > Add a flag to indicate netdev is a VRF master and a corresponding
> > helper.
> > 
> > Signed-off-by: Ido Schimmel <idosch@mellanox•com>
> > Signed-off-by: Jiri Pirko <jiri@mellanox•com>
> > ---
> >  drivers/net/vrf.c         | 2 +-
> >  include/linux/netdevice.h | 8 ++++++++
> >  2 files changed, 9 insertions(+), 1 deletion(-)
> > 
> 
> IFF_VRF_MASTER was renamed IFF_L3MDEV_MASTER 18 months ago.

But IFF_L3MDEV_MASTER isn't specific to the VRF driver. It can be set by
other drivers including future ones that might be introduced. I need to
allow enslavement to a VRF master, but reject others.

  reply	other threads:[~2017-03-13 15:01 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-13  7:35 [patch net-next 00/10] mlxsw: Enable VRF offload Jiri Pirko
2017-03-13  7:38 ` [patch net-next 01/10] net: fib_rules: Add default rule indication Jiri Pirko
2017-03-13  7:38   ` [patch net-next 02/10] ipv4: fib_rules: Add notifier info to FIB rules notifications Jiri Pirko
2017-03-13  7:38   ` [patch net-next 03/10] ipv4: fib_rules: Dump FIB rules when registering FIB notifier Jiri Pirko
2017-03-13 14:52     ` David Ahern
2017-03-13 17:33       ` Ido Schimmel
2017-03-13  7:38   ` [patch net-next 04/10] net: Add netif_is_vrf_master helper Jiri Pirko
2017-03-13 14:39     ` David Ahern
2017-03-13 15:01       ` Ido Schimmel [this message]
2017-03-13 15:15         ` David Ahern
2017-03-13 15:58           ` Ido Schimmel
2017-03-13  7:38   ` [patch net-next 05/10] net: vrf: Set slave's private flag before linking Jiri Pirko
2017-03-13 15:19     ` David Ahern
2017-03-13  7:38   ` [patch net-next 06/10] mlxsw: spectrum_router: Associate RIFs with correct VR Jiri Pirko
2017-03-13  7:38   ` [patch net-next 07/10] mlxsw: spectrum_router: Don't destroy RIF if L3 slave Jiri Pirko
2017-03-13  7:38   ` [patch net-next 08/10] mlxsw: spectrum_router: Add support for VRFs Jiri Pirko
2017-03-13  7:38   ` [patch net-next 09/10] mlxsw: spectrum_router: Add support for VRFs on top of bridges Jiri Pirko
2017-03-13  7:38   ` [patch net-next 10/10] mlxsw: spectrum_router: Don't abort on l3mdev rules Jiri Pirko
2017-03-13 14:59     ` David Ahern
2017-03-13 15:22       ` Ido Schimmel
2017-03-13 15:37         ` David Ahern

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=20170313150103.GA32446@splinter.mtl.com \
    --to=idosch@idosch$(echo .)org \
    --cc=davem@davemloft$(echo .)net \
    --cc=dsa@cumulusnetworks$(echo .)com \
    --cc=idosch@mellanox$(echo .)com \
    --cc=jiri@resnulli$(echo .)us \
    --cc=jmorris@namei$(echo .)org \
    --cc=kaber@trash$(echo .)net \
    --cc=kuznet@ms2$(echo .)inr.ac.ru \
    --cc=lorenzo@google$(echo .)com \
    --cc=mateusz.bajorski@nokia$(echo .)com \
    --cc=mlxsw@mellanox$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=shm@cumulusnetworks$(echo .)com \
    --cc=yoshfuji@linux-ipv6$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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