]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c319f2e47170e5fd8246a5e9401493dde7d48d1
tree88f1ce3914a352dbc997af8b501190af2e06de56
parent161850587ee676905a75be5a595766bcc9b3fa74
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: 8df4cf0513d7 ("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