Thread (19 messages) 19 messages, 2 authors, 2025-09-12

Re: [net-next v19 5/7] net: mtip: Add mtip_switch_{rx|tx} functions to the L2 switch driver

flat view

From: Łukasz Majewski <hidden>
Date: 2025-09-07 16:49:03
Also in: imx, linux-arm-kernel, linux-devicetree, lkml

Hi Jakub,
On Mon, 25 Aug 2025 00:07:34 +0200 Lukasz Majewski wrote:
quoted
 static void mtip_switch_tx(struct net_device *dev)
 {
+	struct mtip_ndev_priv *priv = netdev_priv(dev);
+	struct switch_enet_private *fep = priv->fep;
+	unsigned short status;
+	struct sk_buff *skb;
+	struct cbd_t *bdp;  
quoted
+		} else {
+			dev->stats.tx_packets++;
+		}
+
+		if (status & BD_ENET_TX_READY)
+			dev_err(&fep->pdev->dev,
+				"Enet xmit interrupt and
TX_READY.\n");  
per-pkt print, needs rl
+1
quoted
+		/* Free the sk buffer associated with this last
transmit */
+		dev_consume_skb_irq(skb);  
why _irq()? this now runs from NAPI, so it's in BH. Just stick 
to dev_comsume_skb_any(), it's the safest choice..
Ok, I will change it.

-- 
Best regards,

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