Re: [PATCH v2] net: macb: Increase DMA TX buffer size

From: David Miller
Date: Thu Aug 25 2016 - 20:16:55 EST


From: Xander Huff <xander.huff@xxxxxx>
Date: Wed, 24 Aug 2016 17:25:39 -0500

> From: Nathan Sullivan <nathan.sullivan@xxxxxx>
>
> In recent testing with the RT patchset, we have seen cases where the
> transmit ring can fill even with up to 200 txbds in the ring. Increase the
> size of the DMA TX ring to avoid overruns.
>
> Signed-off-by: Xander Huff <xander.huff@xxxxxx>
> Signed-off-by: Nathan Sullivan <nathan.sullivan@xxxxxx>

This is really a short term solution.

While a larger TX ring may help RT, it's wasteful to have a ring that
large on non-RT. Both uses are valid.

Therefore what really needs to happen is to make this driver support
changing the RX and TX ring sizes at runtime via ethtool just like
pretty much every other driver.

THanks.