Re: [PATCH net-next 1/9] alx: refactor descriptor allocation

2016-10-23 Thread David Miller
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-

[PATCH net-next 1/9] alx: refactor descriptor allocation

2016-10-21 Thread Tobias Regnery
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 ++