From: Tobias Regnery
Date: Fri, 21 Oct 2016 12:49:44 +0200
> + txq->tpd = alx->descmem.virt + offset;
> + txq->tpd_dma = alx->descmem.dma + offset;
If all the crazy casting isn't necessary here...
> + rxq->rrd = (void *)((u8 *)alx->descmem.virt + offset);
> + rxq->rrd_dma = alx-
Split the allocation of descriptor memory and the buffer allocation into a
tx and rx function. This is in preparation for multiple queues where we
need to iterate over the new functions.
Signed-off-by: Tobias Regnery
---
drivers/net/ethernet/atheros/alx/main.c | 97 ++