]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
alx: add ability to allocate and free alx_napi structures
authorTobias Regnery <tobias.regnery@gmail.com>
Tue, 15 Nov 2016 11:43:10 +0000 (12:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 03:46:30 +0000 (22:46 -0500)
commitb0999223f224187318c67f1de653e34fb1f04f6b
treed1e689d8e4e6bb2f941a21936581206fd2dc260d
parentbccffcf7154420c1cbd9e3c2702e2ec4ff0bc319
alx: add ability to allocate and free alx_napi structures

Add new functions to allocate and free the alx_napi structures and use them
in __alx_open and __alx_stop. We only allocate one of these structures for
now, as the rest of the driver is not yet ready for multiple queues.

We switch over the setup of the interrupt mask and the call to netif_napi_add
to the new function because we must adjust these later on a per queue basis.

Based on the downstream driver at github.com/qca/alx

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