Skip to contentSkip to conversation

net: fs_enet: explicitly remove I flag on TX partial frames

PATCH Applied Christophe Leroy 2 participants 2 messages Aug 11, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: fs_enet: explicitly remove I flag on TX partial frames

We are not interested in interrupts for partially transmitted frames, we have to clear BD_ENET_TX_INTR explicitly otherwise it may remain from a previously used descriptor.

---
 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c +2 -1
index b9ad34e..84c18ee 100644
@@ -585,7 +585,8 @@ static int fs_enet_start_xmit(struct sk_buff *skb, struct net_device *dev)
 	frag = skb_shinfo(skb)->frags;
 	while (nr_frags) {
 		CBDC_SC(bdp,
-			BD_ENET_TX_STATS | BD_ENET_TX_LAST | BD_ENET_TX_TC);
+			BD_ENET_TX_STATS | BD_ENET_TX_INTR | BD_ENET_TX_LAST |
+			BD_ENET_TX_TC);
 		CBDS_SC(bdp, BD_ENET_TX_READY);
 
 		if ((CBDR_SC(bdp) & BD_ENET_TX_WRAP) == 0)
Signature · 1 line
2.1.0
maintainer Applied
#1 lore raw

From: Christophe Leroy <[email protected]>
Date: Tue, 11 Aug 2015 12:11:00 +0200 (CEST)

Quoted 5 lines

We are not interested in interrupts for partially transmitted frames, we have to clear BD_ENET_TX_INTR explicitly otherwise it may remain from a previously used descriptor.

Applied.