]> git.baikalelectronics.ru Git - kernel.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)
commit3a2485f1c827db5ecd83af02e6a23fad9ea8e822
treed1e689d8e4e6bb2f941a21936581206fd2dc260d
parent7080f46fe54af5927f36614f60d00b021ee7431f
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