ethdrivers,tx2: Only interrupt every 32 tx packets This limits irqs for tx in order to more lazily clean up after successful transmits.
diff --git a/libethdrivers/src/plat/tx2/uboot/dwc_eth_qos.c b/libethdrivers/src/plat/tx2/uboot/dwc_eth_qos.c index 9109b25..8e1d64a 100644 --- a/libethdrivers/src/plat/tx2/uboot/dwc_eth_qos.c +++ b/libethdrivers/src/plat/tx2/uboot/dwc_eth_qos.c
@@ -458,12 +458,15 @@ struct eqos_priv *eqos = (struct eqos_priv *)dev->eth_dev; volatile struct eqos_desc *tx_desc; int i; - + uint32_t ioc = 0; + if (dev->tdt % 32 == 0) { + ioc = EQOS_DESC2_IOC; + } tx_desc = &(dev->tx_ring[dev->tdt]); tx_desc->des0 = (uintptr_t)packet; tx_desc->des1 = 0; - tx_desc->des2 = EQOS_DESC2_IOC | length; + tx_desc->des2 = ioc | length; tx_desc->des3 = EQOS_DESC3_FD | EQOS_DESC3_LD | length; __sync_synchronize();