]> git.baikalelectronics.ru Git - kernel.git/commit
alx: refactor descriptor allocation
authorTobias Regnery <tobias.regnery@gmail.com>
Tue, 15 Nov 2016 11:43:08 +0000 (12:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 03:46:30 +0000 (22:46 -0500)
commit9fa7b4977c8d64529b1a57bc63ae129ee6e3080b
treeeecaae387612515f5049e784855d4466aed705f1
parent33e110d00819a460c6333991769534997be17f65
alx: refactor descriptor allocation

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.

While at it drop the unneeded casting on the rx side.

Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/alx/main.c