]> 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)
commit765314bdd0eca06312ffe140d5f1a8e24d2114db
treeeecaae387612515f5049e784855d4466aed705f1
parent3e8c3c397514236985e292d0847b2452dc162ba5
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