[PATCH stable 4.9] net: stmmac: Set dma ring length before enabling the DMA