]> 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)
commit2c17fdebcc287893920a0018ed856178e04fe4ea
tree88f1ce3914a352dbc997af8b501190af2e06de56
parentddf54156fd41aed09d700db6b0390972e7a4edbe
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: ad34f8b17a3d ("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