myri10ge: move the DMA test code into its own function