OSDN Git Service

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)
commit8c2a4c8efb0c22cb68fcecf84f3ac7af25ebf542
treeeecaae387612515f5049e784855d4466aed705f1
parent11b8ad33da03d9a296b5428baf36660d5612a7de
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