[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210807204523.iy43swaq2sekgsj6@skbuf>
Date: Sat, 7 Aug 2021 23:45:23 +0300
From: Vladimir Oltean <olteanv@...il.com>
To: DENG Qingfang <dqfext@...il.com>
Cc: Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Russell King <linux@...linux.org.uk>,
"open list:NETWORKING DRIVERS" <netdev@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>,
Ansuel Smith <ansuelsmth@...il.com>,
Jonathan McDowell <noodles@...th.li>,
Michal Vokáč <vokac.m@...il.com>,
Christian Lamparter <chunkeey@...il.com>,
Nishka Dasgupta <nishkadg.linux@...il.com>,
Xiaofei Shen <xiaofeis@...eaurora.org>,
John Crispin <john@...ozen.org>,
Stefan Lippers-Hollmann <s.l-h@....de>,
Hannu Nyman <hannu.nyman@....fi>,
Imran Khan <gururug@...il.com>,
Frank Wunderlich <frank-w@...lic-files.de>,
Nick Lowe <nick.lowe@...il.com>,
André Valentin <avalentin@....kalnet.hooya.de>
Subject: Re: [RFC net-next 1/3] net: dsa: qca8k: offload bridge flags
On Sat, Aug 07, 2021 at 08:07:24PM +0800, DENG Qingfang wrote:
> +static int
> +qca8k_port_bridge_flags(struct dsa_switch *ds, int port,
> + struct switchdev_brport_flags flags,
> + struct netlink_ext_ack *extack)
> +{
> + struct qca8k_priv *priv = ds->priv;
> + int ret = 0;
> +
> + if (!ret && flags.mask & BR_LEARNING)
> + ret = qca8k_rmw(priv, QCA8K_PORT_LOOKUP_CTRL(port),
> + QCA8K_PORT_LOOKUP_LEARN,
> + flags.val & BR_LEARNING ?
> + QCA8K_PORT_LOOKUP_LEARN : 0);
And fast ageing when learning on a port is turned off?
> +
> + if (!ret && flags.mask & BR_FLOOD)
> + ret = qca8k_rmw(priv, QCA8K_REG_GLOBAL_FW_CTRL1,
> + BIT(port + QCA8K_GLOBAL_FW_CTRL1_UC_DP_S),
> + flags.val & BR_FLOOD ?
> + BIT(port + QCA8K_GLOBAL_FW_CTRL1_UC_DP_S) : 0);
Powered by blists - more mailing lists