]> 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)
commitbd6319570e959c3670ce6360eb6b7efb8a183879
treeff6b9ab303fe81ee7a156e9b09fed4dc06a50ad2
parent372f887e683ceb2dcce9522b69db3d2240fc428d
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: e51a67a589f7 ("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