net: netsec: start using buffers if page_pool registration succeeded
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 9 Jul 2019 12:35:53 +0000 (15:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2019 20:00:01 +0000 (13:00 -0700)
commit7715ff1647139bc87aa20bd456ac4f143411b377
tree88f1ce3914a352dbc997af8b501190af2e06de56
parentde90573e30948459a37e32f432e65529573ff757
net: netsec: start using buffers if page_pool registration succeeded

The current driver starts using page_pool buffers before calling
xdp_rxq_info_reg_mem_model(). Start using the buffers after the
registration succeeded, so we won't have to call
page_pool_request_shutdown() in case of failure

Fixes: 5c67bf0ec4d0 ("net: netsec: Use page_pool API")
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/netsec.c