All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ido Schimmel <idosch@mellanox.com>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: "open list:STAGING SUBSYSTEM" <devel@driverdev.osuosl.org>,
	"open list:MELLANOX MLX5 core VPI driver"
	<linux-rdma@vger.kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"moderated list:ETHERNET BRIDGE"
	<bridge@lists.linux-foundation.org>,
	open list <linux-kernel@vger.kernel.org>,
	"open list:NETRONOME ETHERNET DRIVERS"
	<oss-drivers@netronome.com>,
	"David S. Miller" <davem@davemloft.net>
Subject: Re: [Bridge] [PATCH net-next v4 01/12] net: Introduce ndo_get_port_parent_id()
Date: Wed, 6 Feb 2019 19:10:56 +0000	[thread overview]
Message-ID: <20190206191054.GC14340@splinter> (raw)
In-Reply-To: <20190206174546.23597-2-f.fainelli@gmail.com>

On Wed, Feb 06, 2019 at 09:45:35AM -0800, Florian Fainelli wrote:
> In preparation for getting rid of switchdev_ops, create a dedicated NDO
> operation for getting the port's parent identifier. There are
> essentially two classes of drivers that need to implement getting the
> port's parent ID which are VF/PF drivers with a built-in switch, and
> pure switchdev drivers such as mlxsw, ocelot, dsa etc.
> 
> We introduce a helper function: dev_get_port_parent_id() which supports
> recursion into the lower devices to obtain the first port's parent ID.
> 
> Convert the bridge, core and ipv4 multicast routing code to check for
> such ndo_get_port_parent_id() and call the helper function when valid
> before falling back to switchdev_port_attr_get(). This will allow us to
> convert all relevant drivers in one go instead of having to implement
> both switchdev_port_attr_get() and ndo_get_port_parent_id() operations,
> then get rid of switchdev_port_attr_get().
> 
> Acked-by: Jiri Pirko <jiri@mellanox.com>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Reviewed-by: Ido Schimmel <idosch@mellanox.com>

WARNING: multiple messages have this Message-ID (diff)
From: Ido Schimmel <idosch@mellanox.com>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: "open list:STAGING SUBSYSTEM" <devel@driverdev.osuosl.org>,
	"open list:MELLANOX MLX5 core VPI driver"
	<linux-rdma@vger.kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"moderated list:ETHERNET BRIDGE"
	<bridge@lists.linux-foundation.org>,
	open list <linux-kernel@vger.kernel.org>,
	"open list:NETRONOME ETHERNET DRIVERS"
	<oss-drivers@netronome.com>,
	"David S. Miller" <davem@davemloft.net>
Subject: Re: [PATCH net-next v4 01/12] net: Introduce ndo_get_port_parent_id()
Date: Wed, 6 Feb 2019 19:10:56 +0000	[thread overview]
Message-ID: <20190206191054.GC14340@splinter> (raw)
In-Reply-To: <20190206174546.23597-2-f.fainelli@gmail.com>

On Wed, Feb 06, 2019 at 09:45:35AM -0800, Florian Fainelli wrote:
> In preparation for getting rid of switchdev_ops, create a dedicated NDO
> operation for getting the port's parent identifier. There are
> essentially two classes of drivers that need to implement getting the
> port's parent ID which are VF/PF drivers with a built-in switch, and
> pure switchdev drivers such as mlxsw, ocelot, dsa etc.
> 
> We introduce a helper function: dev_get_port_parent_id() which supports
> recursion into the lower devices to obtain the first port's parent ID.
> 
> Convert the bridge, core and ipv4 multicast routing code to check for
> such ndo_get_port_parent_id() and call the helper function when valid
> before falling back to switchdev_port_attr_get(). This will allow us to
> convert all relevant drivers in one go instead of having to implement
> both switchdev_port_attr_get() and ndo_get_port_parent_id() operations,
> then get rid of switchdev_port_attr_get().
> 
> Acked-by: Jiri Pirko <jiri@mellanox.com>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Reviewed-by: Ido Schimmel <idosch@mellanox.com>

WARNING: multiple messages have this Message-ID (diff)
From: Ido Schimmel <idosch@mellanox.com>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	open list <linux-kernel@vger.kernel.org>,
	"open list:MELLANOX MLX5 core VPI driver" 
	<linux-rdma@vger.kernel.org>,
	"open list:NETRONOME ETHERNET DRIVERS"
	<oss-drivers@netronome.com>,
	"open list:STAGING SUBSYSTEM" <devel@driverdev.osuosl.org>,
	"moderated list:ETHERNET BRIDGE"
	<bridge@lists.linux-foundation.org>
Subject: Re: [PATCH net-next v4 01/12] net: Introduce ndo_get_port_parent_id()
Date: Wed, 6 Feb 2019 19:10:56 +0000	[thread overview]
Message-ID: <20190206191054.GC14340@splinter> (raw)
In-Reply-To: <20190206174546.23597-2-f.fainelli@gmail.com>

On Wed, Feb 06, 2019 at 09:45:35AM -0800, Florian Fainelli wrote:
> In preparation for getting rid of switchdev_ops, create a dedicated NDO
> operation for getting the port's parent identifier. There are
> essentially two classes of drivers that need to implement getting the
> port's parent ID which are VF/PF drivers with a built-in switch, and
> pure switchdev drivers such as mlxsw, ocelot, dsa etc.
> 
> We introduce a helper function: dev_get_port_parent_id() which supports
> recursion into the lower devices to obtain the first port's parent ID.
> 
> Convert the bridge, core and ipv4 multicast routing code to check for
> such ndo_get_port_parent_id() and call the helper function when valid
> before falling back to switchdev_port_attr_get(). This will allow us to
> convert all relevant drivers in one go instead of having to implement
> both switchdev_port_attr_get() and ndo_get_port_parent_id() operations,
> then get rid of switchdev_port_attr_get().
> 
> Acked-by: Jiri Pirko <jiri@mellanox.com>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Reviewed-by: Ido Schimmel <idosch@mellanox.com>

  reply	other threads:[~2019-02-06 19:10 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-06 17:45 [Bridge] [PATCH net-next v4 00/12] net: Introduce ndo_get_port_parent_id() Florian Fainelli
2019-02-06 17:45 ` Florian Fainelli
2019-02-06 17:45 ` Florian Fainelli
2019-02-06 17:45 ` [Bridge] [PATCH net-next v4 01/12] " Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 19:10   ` Ido Schimmel [this message]
2019-02-06 19:10     ` Ido Schimmel
2019-02-06 19:10     ` Ido Schimmel
2019-02-06 17:45 ` [Bridge] [PATCH net-next v4 02/12] bnxt: Implement ndo_get_port_parent_id() Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45 ` [Bridge] [PATCH net-next v4 03/12] liquidio: " Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45 ` [Bridge] [PATCH net-next v4 04/12] net/mlx5e: " Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45 ` [Bridge] [PATCH net-next v4 05/12] mlxsw: " Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 19:04   ` [Bridge] " Ido Schimmel
2019-02-06 19:04     ` Ido Schimmel
2019-02-06 17:45 ` [Bridge] [PATCH net-next v4 06/12] mscc: ocelot: " Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45 ` [Bridge] [PATCH net-next v4 07/12] nfp: " Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45 ` [Bridge] [PATCH net-next v4 08/12] rocker: " Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45 ` [Bridge] [PATCH net-next v4 09/12] netdevsim: " Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45 ` [Bridge] [PATCH net-next v4 10/12] staging: fsl-dpaa2: ethsw: " Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45 ` [Bridge] [PATCH net-next v4 11/12] net: dsa: " Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45 ` [Bridge] [PATCH net-next v4 12/12] net: Get rid of SWITCHDEV_ATTR_ID_PORT_PARENT_ID Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 17:45   ` Florian Fainelli
2019-02-06 19:10   ` [Bridge] " Ido Schimmel
2019-02-06 19:10     ` Ido Schimmel
2019-02-06 21:50 ` [Bridge] [PATCH net-next v4 00/12] net: Introduce ndo_get_port_parent_id() David Miller
2019-02-06 21:50   ` David Miller
2019-02-06 22:18   ` [Bridge] " David Miller
2019-02-06 22:18     ` 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=20190206191054.GC14340@splinter \
    --to=idosch@mellanox.com \
    --cc=bridge@lists.linux-foundation.org \
    --cc=davem@davemloft.net \
    --cc=devel@driverdev.osuosl.org \
    --cc=f.fainelli@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oss-drivers@netronome.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 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.