On Mon, Feb 23, 2026 at 11:41:46AM +0000, Russell King (Oracle) wrote:
quoted hunk ↗ jump to hunk
@@ -4571,8 +4562,8 @@ static netdev_tx_t stmmac_tso_xmit(struct sk_buff *skb, struct net_device *dev)
/* If we only have one entry used, then the first entry is the last
* segment.
*/
- is_last_segment = ((tx_q->cur_tx - first_entry) &
- (priv->dma_conf.dma_tx_size - 1)) == 1;
+ is_last_segment = CIRC_CNT(tx_q->cur_tx, first_entry,,
+ priv->dma_conf.dma_tx_size) == 1;
Bah, I thought I fixed that, but it seems I merged the fix patch into
the second patch not this patch. :/
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!