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)
commitffbf9870dcf1342592a1a26f4cf70bda39046134
treeff6b9ab303fe81ee7a156e9b09fed4dc06a50ad2
parent66c031716bcd9647cd2304e4875163663b086405
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: 4acb20b46214 ("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