]> git.baikalelectronics.ru Git - kernel.git/commit
net: socionext: replace napi_alloc_frag with the netdev variant on init
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 23 Apr 2019 06:01:41 +0000 (09:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Apr 2019 02:39:16 +0000 (19:39 -0700)
commit877d12f923e47daec053e9cb0397e07d4131241a
treeff6b9ab303fe81ee7a156e9b09fed4dc06a50ad2
parent9d01c94fe7e91367396b92801af1bf738a8c21ea
net: socionext: replace napi_alloc_frag with the netdev variant on init

The netdev variant is usable on any context since it disables interrupts.
The napi variant of the call should only be used within softirq context.
Replace napi_alloc_frag on driver init with the correct netdev_alloc_frag
call

Changes since v1:
- Adjusted commit message

Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
Fixes: ac35469234d1 ("net: socionext: different approach on DMA")
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/netsec.c