diff options
author | Robert Hancock <hancock@sedsystems.ca> | 2019-06-06 16:28:13 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-06 16:24:29 -0700 |
commit | 8b09ca823ffb4eee44cc1e41af2935e511eb98f1 (patch) | |
tree | 49e0d172b677f31bfdebcc7d695d6de5826b2c1e /drivers/net/ethernet/xilinx/xilinx_axienet.h | |
parent | net: axienet: Cleanup DMA device reset and halt process (diff) | |
download | wireguard-linux-8b09ca823ffb4eee44cc1e41af2935e511eb98f1.tar.xz wireguard-linux-8b09ca823ffb4eee44cc1e41af2935e511eb98f1.zip |
net: axienet: 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.
Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx/xilinx_axienet.h')
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_axienet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet.h b/drivers/net/ethernet/xilinx/xilinx_axienet.h index 1ffb113e2c29..6b6d28ff014f 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet.h +++ b/drivers/net/ethernet/xilinx/xilinx_axienet.h @@ -444,8 +444,10 @@ struct axienet_local { /* Buffer descriptors */ struct axidma_bd *tx_bd_v; dma_addr_t tx_bd_p; + u32 tx_bd_num; struct axidma_bd *rx_bd_v; dma_addr_t rx_bd_p; + u32 rx_bd_num; u32 tx_bd_ci; u32 tx_bd_tail; u32 rx_bd_ci; |