Skip to contentSkip to conversation

net: ll_temac: Make RX/TX ring sizes configurable

PATCH In review Esben Haabendal 1 participant 1 message Feb 18, 2020

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

PATCH 7/8 net: ll_temac: Make RX/TX ring sizes configurable

Add support for setting the RX and TX ring sizes for this driver using ethtool. Also increase the default RX ring size as the previous default was far too low for good performance in some configurations.

---
 drivers/net/ethernet/xilinx/ll_temac.h      |  2 +
 drivers/net/ethernet/xilinx/ll_temac_main.c | 96 +++++++++++++++------
 2 files changed, 72 insertions(+), 26 deletions(-)
drivers/net/ethernet/xilinx/ll_temac.h +2 -0
index 463ef9eaf42d..8777ec6e21c8 100644
@@ -369,8 +369,10 @@ struct temac_local {
 	/* Buffer descriptors */
 	struct cdmac_bd *tx_bd_v;
 	dma_addr_t tx_bd_p;
+	u32 tx_bd_num;
 	struct cdmac_bd *rx_bd_v;
 	dma_addr_t rx_bd_p;
+	u32 rx_bd_num;
 	int tx_bd_ci;
 	int tx_bd_tail;
 	int rx_bd_ci;
drivers/net/ethernet/xilinx/ll_temac_main.c +70 -26

219 lines not on this page · raw message

Signature · 1 line
2.25.0