All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ido Schimmel <idosch@mellanox.com>
To: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Cc: Jiri Pirko <jiri@resnulli.us>, <netdev@vger.kernel.org>,
	<davem@davemloft.net>, <mlxsw@mellanox.com>,
	<stephen@networkplumber.org>
Subject: Re: [patch net-next 01/18] bridge: Export VLAN filtering state
Date: Fri, 26 May 2017 17:02:00 +0300	[thread overview]
Message-ID: <20170526140200.GA1037@splinter> (raw)
In-Reply-To: <b2edc91e-d7cf-a667-2b00-5722ed09a2a6@cumulusnetworks.com>

Hi Nik,

On Fri, May 26, 2017 at 11:55:18AM +0300, Nikolay Aleksandrov wrote:
> On 5/26/17 9:37 AM, Jiri Pirko wrote:
> > From: Ido Schimmel <idosch@mellanox.com>
> > 
> > It's useful for drivers supporting bridge offload to be able to query
> > the bridge's VLAN filtering state.
> > 
> > Currently, upon enslavement to a bridge master, the offloading driver
> > will only learn about the bridge's VLAN filtering state after the bridge
> > device was already linked with its slave.
> > 
> > Being able to query the bridge's VLAN filtering state allows such
> > drivers to forbid enslavement in case resource couldn't be allocated for
> > a VLAN-aware bridge and also choose the correct initialization routine
> > for the enslaved port, which is dependent on the bridge type.
> > 
> > Signed-off-by: Ido Schimmel <idosch@mellanox.com>
> > Signed-off-by: Jiri Pirko <jiri@mellanox.com>
> > ---
> >   include/linux/if_bridge.h | 9 +++++++++
> >   net/bridge/br_if.c        | 2 +-
> >   net/bridge/br_mdb.c       | 4 ++--
> >   net/bridge/br_netlink.c   | 2 +-
> >   net/bridge/br_private.h   | 9 ---------
> >   net/bridge/br_vlan.c      | 8 ++++++++
> >   6 files changed, 21 insertions(+), 13 deletions(-)
> > 
> 
> I must say this bridge -> dev -> bridge looks weird from the bridge POV.
> Since exports like this seem to be increasing I think it'd be nice to
> make some API that can be queried instead of exporting symbols for each
> bridge option or attribute. In this case maybe a simpler solution would've
> been only a new exported symbol for external users.

It seemed more logical to me to export the existing function, but I can
instead leave it as-is and introduce a new symbol. I'll wait for more
comments and send a v2 if deemed necessary.

> The patch itself looks good to me.
> 
> Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>

Thanks for reviewing!

  reply	other threads:[~2017-05-26 14:02 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-26  6:37 [patch net-next 00/18] mlxsw: Improve extensibility Jiri Pirko
2017-05-26  6:37 ` [patch net-next 01/18] bridge: Export VLAN filtering state Jiri Pirko
2017-05-26  8:55   ` Nikolay Aleksandrov
2017-05-26 14:02     ` Ido Schimmel [this message]
2017-05-26  6:37 ` [patch net-next 02/18] bridge: Export multicast enabled state Jiri Pirko
2017-05-26  8:56   ` Nikolay Aleksandrov
2017-05-26  6:37 ` [patch net-next 03/18] mlxsw: spectrum: Set port's mode according to FID mappings Jiri Pirko
2017-05-26  6:37 ` [patch net-next 04/18] mlxsw: spectrum: Introduce Port-VLAN structure Jiri Pirko
2017-05-26  6:37 ` [patch net-next 05/18] mlxsw: spectrum: Change signature of FID leave function Jiri Pirko
2017-05-26  6:37 ` [patch net-next 06/18] mlxsw: spectrum_router: Replace vPorts with Port-VLAN Jiri Pirko
2017-05-26  6:37 ` [patch net-next 07/18] mlxsw: spectrum: Don't lose bridge port device during enslavement Jiri Pirko
2017-05-26  6:37 ` [patch net-next 08/18] mlxsw: spectrum: Don't create FIDs upon creation of VLAN uppers Jiri Pirko
2017-05-26  6:37 ` [patch net-next 09/18] mlxsw: spectrum: Replace vPorts with Port-VLAN Jiri Pirko
2017-05-26  6:37 ` [patch net-next 10/18] mlxsw: spectrum_router: Allocate FID prior to RIF configuration Jiri Pirko
2017-05-26  6:37 ` [patch net-next 11/18] mlxsw: spectrum_router: Allocate RIF prior to its configuration Jiri Pirko
2017-05-26  6:37 ` [patch net-next 12/18] mlxsw: spectrum_router: Extend the RIF struct Jiri Pirko
2017-05-26  6:37 ` [patch net-next 13/18] mlxsw: spectrum_router: Configure RIFs based on " Jiri Pirko
2017-05-26  6:37 ` [patch net-next 14/18] mlxsw: spectrum_router: Destroy RIF only based on its struct Jiri Pirko
2017-05-26  6:37 ` [patch net-next 15/18] mlxsw: spectrum_router: Flood packets to router after RIF creation Jiri Pirko
2017-05-26  6:37 ` [patch net-next 16/18] mlxsw: spectrum_router: Determine VR first when creating RIF Jiri Pirko
2017-05-26  6:37 ` [patch net-next 17/18] mlxsw: spectrum: Implement common FID core Jiri Pirko
2017-05-26  6:37 ` [patch net-next 18/18] mlxsw: spectrum_router: Implement common RIF core Jiri Pirko
2017-05-26 19:20 ` [patch net-next 00/18] mlxsw: Improve extensibility David Miller
2017-05-26 19:21   ` 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=20170526140200.GA1037@splinter \
    --to=idosch@mellanox.com \
    --cc=davem@davemloft.net \
    --cc=jiri@resnulli.us \
    --cc=mlxsw@mellanox.com \
    --cc=netdev@vger.kernel.org \
    --cc=nikolay@cumulusnetworks.com \
    --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.