Thread (15 messages) 15 messages, 3 authors, 5d ago

Re: [RFC PATCH net-next v2 3/5] net: dsa: qca8k: serialize CPU MAC pause during MTU changes

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-09-22 20:58:43

 	mutex_init(&priv->reg_mutex);
+	mutex_init(&priv->port_status_mutex);
Why not use the existing reg_mutex?
 int qca8k_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
 {
 	struct qca8k_priv *priv = ds->priv;
-	int ret;
+	u32 mask = QCA8K_PORT_STATUS_TXMAC | QCA8K_PORT_STATUS_RXMAC;
+	u32 status[QCA8K_NUM_PORTS] = { 0 };
+	u32 ports;
+	u32 stopped = 0;
+	int ret, restore_ret, i;
Reverse Christmas tree.

	Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help