From: Ido Schimmel <idosch@idosch.org>
To: Tobias Waldekranz <tobias@waldekranz.com>
Cc: andrew@lunn.ch, f.fainelli@gmail.com, jiri@resnulli.us,
netdev@vger.kernel.org, bridge@lists.linux-foundation.org,
vivien.didelot@gmail.com, nikolay@nvidia.com, roopa@nvidia.com,
kuba@kernel.org, olteanv@gmail.com, davem@davemloft.net
Subject: Re: [Bridge] [RFC net-next 4/9] net: bridge: switchdev: Forward offloading
Date: Sun, 2 May 2021 18:04:54 +0300 [thread overview]
Message-ID: <YI6/li9hwHo8GfCm@shredder> (raw)
In-Reply-To: <20210426170411.1789186-5-tobias@waldekranz.com>
On Mon, Apr 26, 2021 at 07:04:06PM +0200, Tobias Waldekranz wrote:
> +static void nbp_switchdev_fwd_offload_add(struct net_bridge_port *p)
> +{
> + void *priv;
> +
> + if (!(p->dev->features & NETIF_F_HW_L2FW_DOFFLOAD))
> + return;
> +
> + priv = p->dev->netdev_ops->ndo_dfwd_add_station(p->dev, p->br->dev);
Some changes to team/bond/8021q will be needed in order to get this
optimization to work when they are enslaved to the bridge instead of the
front panel port itself?
> + if (!IS_ERR_OR_NULL(priv))
> + p->accel_priv = priv;
> +}
> +
> +static void nbp_switchdev_fwd_offload_del(struct net_bridge_port *p)
> +{
> + if (!p->accel_priv)
> + return;
> +
> + p->dev->netdev_ops->ndo_dfwd_del_station(p->dev, p->accel_priv);
> + p->accel_priv = NULL;
> +}
WARNING: multiple messages have this Message-ID (diff)
From: Ido Schimmel <idosch@idosch.org>
To: Tobias Waldekranz <tobias@waldekranz.com>
Cc: davem@davemloft.net, kuba@kernel.org, andrew@lunn.ch,
vivien.didelot@gmail.com, f.fainelli@gmail.com,
olteanv@gmail.com, roopa@nvidia.com, nikolay@nvidia.com,
jiri@resnulli.us, stephen@networkplumber.org,
netdev@vger.kernel.org, bridge@lists.linux-foundation.org
Subject: Re: [RFC net-next 4/9] net: bridge: switchdev: Forward offloading
Date: Sun, 2 May 2021 18:04:54 +0300 [thread overview]
Message-ID: <YI6/li9hwHo8GfCm@shredder> (raw)
In-Reply-To: <20210426170411.1789186-5-tobias@waldekranz.com>
On Mon, Apr 26, 2021 at 07:04:06PM +0200, Tobias Waldekranz wrote:
> +static void nbp_switchdev_fwd_offload_add(struct net_bridge_port *p)
> +{
> + void *priv;
> +
> + if (!(p->dev->features & NETIF_F_HW_L2FW_DOFFLOAD))
> + return;
> +
> + priv = p->dev->netdev_ops->ndo_dfwd_add_station(p->dev, p->br->dev);
Some changes to team/bond/8021q will be needed in order to get this
optimization to work when they are enslaved to the bridge instead of the
front panel port itself?
> + if (!IS_ERR_OR_NULL(priv))
> + p->accel_priv = priv;
> +}
> +
> +static void nbp_switchdev_fwd_offload_del(struct net_bridge_port *p)
> +{
> + if (!p->accel_priv)
> + return;
> +
> + p->dev->netdev_ops->ndo_dfwd_del_station(p->dev, p->accel_priv);
> + p->accel_priv = NULL;
> +}
next prev parent reply other threads:[~2021-05-02 15:04 UTC|newest]
Thread overview: 85+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-26 17:04 [Bridge] [RFC net-next 0/9] net: bridge: Forward offloading Tobias Waldekranz
2021-04-26 17:04 ` Tobias Waldekranz
2021-04-26 17:04 ` [Bridge] [RFC net-next 1/9] net: dfwd: Constrain existing users to macvlan subordinates Tobias Waldekranz
2021-04-26 17:04 ` Tobias Waldekranz
2021-04-26 17:04 ` [Bridge] [RFC net-next 2/9] net: bridge: Disambiguate offload_fwd_mark Tobias Waldekranz
2021-04-26 17:04 ` Tobias Waldekranz
2021-05-02 15:00 ` [Bridge] " Ido Schimmel
2021-05-02 15:00 ` Ido Schimmel
2021-05-03 8:49 ` [Bridge] " Tobias Waldekranz
2021-05-03 8:49 ` Tobias Waldekranz
2021-05-05 7:39 ` [Bridge] " Ido Schimmel
2021-05-05 7:39 ` Ido Schimmel
2021-04-26 17:04 ` [Bridge] [RFC net-next 3/9] net: bridge: switchdev: Recycle unused hwdoms Tobias Waldekranz
2021-04-26 17:04 ` Tobias Waldekranz
2021-04-27 10:42 ` [Bridge] " Nikolay Aleksandrov
2021-04-27 10:42 ` Nikolay Aleksandrov
2021-04-26 17:04 ` [Bridge] [RFC net-next 4/9] net: bridge: switchdev: Forward offloading Tobias Waldekranz
2021-04-26 17:04 ` Tobias Waldekranz
2021-04-27 10:35 ` [Bridge] " Nikolay Aleksandrov
2021-04-27 10:35 ` Nikolay Aleksandrov
2021-04-28 22:47 ` [Bridge] " Tobias Waldekranz
2021-04-28 22:47 ` Tobias Waldekranz
2021-04-29 9:16 ` [Bridge] " Nikolay Aleksandrov
2021-04-29 9:16 ` Nikolay Aleksandrov
2021-04-29 14:55 ` [Bridge] " Tobias Waldekranz
2021-04-29 14:55 ` Tobias Waldekranz
2021-05-02 15:04 ` Ido Schimmel [this message]
2021-05-02 15:04 ` Ido Schimmel
2021-05-03 8:53 ` [Bridge] " Tobias Waldekranz
2021-05-03 8:53 ` Tobias Waldekranz
2021-05-06 11:01 ` [Bridge] " Vladimir Oltean
2021-05-06 11:01 ` Vladimir Oltean
2021-04-26 17:04 ` [Bridge] [RFC net-next 5/9] net: dsa: Track port PVIDs Tobias Waldekranz
2021-04-26 17:04 ` Tobias Waldekranz
2021-04-26 19:40 ` [Bridge] " Vladimir Oltean
2021-04-26 19:40 ` Vladimir Oltean
2021-04-26 20:05 ` [Bridge] " Tobias Waldekranz
2021-04-26 20:05 ` Tobias Waldekranz
2021-04-26 20:28 ` [Bridge] " Vladimir Oltean
2021-04-26 20:28 ` Vladimir Oltean
2021-04-27 9:12 ` [Bridge] " Tobias Waldekranz
2021-04-27 9:12 ` Tobias Waldekranz
2021-04-27 9:27 ` [Bridge] " Vladimir Oltean
2021-04-27 9:27 ` Vladimir Oltean
2021-04-27 10:07 ` [Bridge] " Vladimir Oltean
2021-04-27 10:07 ` Vladimir Oltean
2021-04-28 23:10 ` [Bridge] " Tobias Waldekranz
2021-04-28 23:10 ` Tobias Waldekranz
2021-04-26 17:04 ` [Bridge] [RFC net-next 6/9] net: dsa: Forward offloading Tobias Waldekranz
2021-04-26 17:04 ` Tobias Waldekranz
2021-04-27 10:17 ` [Bridge] " Vladimir Oltean
2021-04-27 10:17 ` Vladimir Oltean
2021-05-04 14:44 ` [Bridge] " Tobias Waldekranz
2021-05-04 14:44 ` Tobias Waldekranz
2021-05-04 15:21 ` [Bridge] " Vladimir Oltean
2021-05-04 15:21 ` Vladimir Oltean
2021-05-04 20:07 ` [Bridge] " Tobias Waldekranz
2021-05-04 20:07 ` Tobias Waldekranz
2021-05-04 20:33 ` [Bridge] " Andrew Lunn
2021-05-04 20:33 ` Andrew Lunn
2021-05-04 21:24 ` [Bridge] " Tobias Waldekranz
2021-05-04 21:24 ` Tobias Waldekranz
2021-05-04 20:58 ` [Bridge] " Vladimir Oltean
2021-05-04 20:58 ` Vladimir Oltean
2021-05-04 22:12 ` [Bridge] " Tobias Waldekranz
2021-05-04 22:12 ` Tobias Waldekranz
2021-05-04 23:04 ` [Bridge] " Vladimir Oltean
2021-05-04 23:04 ` Vladimir Oltean
2021-05-05 9:01 ` [Bridge] " Tobias Waldekranz
2021-05-05 9:01 ` Tobias Waldekranz
2021-05-05 16:12 ` [Bridge] " Vladimir Oltean
2021-05-05 16:12 ` Vladimir Oltean
2021-04-26 17:04 ` [Bridge] [RFC net-next 7/9] net: dsa: mv88e6xxx: Allocate a virtual DSA port for each bridge Tobias Waldekranz
2021-04-26 17:04 ` Tobias Waldekranz
2021-04-26 17:04 ` [Bridge] [RFC net-next 8/9] net: dsa: mv88e6xxx: Map virtual bridge port in PVT Tobias Waldekranz
2021-04-26 17:04 ` Tobias Waldekranz
2021-04-26 17:04 ` [Bridge] [RFC net-next 9/9] net: dsa: mv88e6xxx: Forward offloading Tobias Waldekranz
2021-04-26 17:04 ` Tobias Waldekranz
2021-04-27 1:31 ` kernel test robot
2021-05-02 14:58 ` [Bridge] [RFC net-next 0/9] net: bridge: " Ido Schimmel
2021-05-02 14:58 ` Ido Schimmel
2021-05-03 9:44 ` [Bridge] " Tobias Waldekranz
2021-05-03 9:44 ` Tobias Waldekranz
2021-05-06 10:59 ` [Bridge] " Vladimir Oltean
2021-05-06 10:59 ` Vladimir Oltean
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=YI6/li9hwHo8GfCm@shredder \
--to=idosch@idosch.org \
--cc=andrew@lunn.ch \
--cc=bridge@lists.linux-foundation.org \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nikolay@nvidia.com \
--cc=olteanv@gmail.com \
--cc=roopa@nvidia.com \
--cc=tobias@waldekranz.com \
--cc=vivien.didelot@gmail.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.