Thread (12 messages) 12 messages, 3 authors, 2021-07-03

Re: [PATCH net-next v2 3/6] net: dsa: qca: ar9331: add forwarding database support'

From: Oleksij Rempel <o.rempel@pengutronix.de>
Date: 2021-07-03 08:57:07
Also in: lkml, netdev

On Fri, Jul 02, 2021 at 05:14:34PM +0200, Andrew Lunn wrote:
On Fri, Jul 02, 2021 at 12:17:48PM +0200, Oleksij Rempel wrote:
quoted
This switch provides simple address resolution table, without VLAN or
multicast specific information.
With this patch we are able now to read, modify unicast and mulicast
mul_t_icast.
done
quoted
addresses.
+static int ar9331_sw_port_fdb_dump(struct dsa_switch *ds, int port,
+				   dsa_fdb_dump_cb_t *cb, void *data)
+{
+	struct ar9331_sw_priv *priv = (struct ar9331_sw_priv *)ds->priv;
+	int cnt = AR9331_SW_NUM_ARL_RECORDS;
+	struct ar9331_sw_fdb _fdb = { 0 };
Why use _fdb? There does not appear to be an fdb?
old artifact, renamed.
quoted
+static int ar9331_sw_port_fdb_rmw(struct ar9331_sw_priv *priv,
+				  const unsigned char *mac,
+				  u8 port_mask_set,
+				  u8 port_mask_clr)
+{
+	struct regmap *regmap = priv->regmap;
+	u32 f0, f1, f2 = 0;
+	u8 port_mask, port_mask_new, status, func;
+	int ret;
Reverse Christmas tree.
done
quoted
+static int ar9331_sw_port_fdb_add(struct dsa_switch *ds, int port,
+				  const unsigned char *mac, u16 vid)
+{
+	struct ar9331_sw_priv *priv = (struct ar9331_sw_priv *)ds->priv;
+	u16 port_mask = BIT(port);
+
+	dev_info(priv->dev, "%s(%pM, %x)\n", __func__, mac, port);
dev_dbg()?
removed.

Thank you!
Can I have your Reviewed-by with this changes?

Regards,
Oleksij
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help