net/octeontx: fix stop clearing Rx/Tx functions
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Tue, 24 Jul 2018 10:43:50 +0000 (16:13 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 2 Aug 2018 07:59:10 +0000 (09:59 +0200)
commitefb9dd148e234aecd01966cd1d2aaa4b75836966
treeaaaac9f0b009727460ca9dbd80327646da12628d
parent62758c768fc87e0eea500ca813a53b660cd0da18
net/octeontx: fix stop clearing Rx/Tx functions

On dev_stop the Rx/Tx_burst functions are being set to NULL, this causes
a SEGFAULT in cases where control path calls stop and a paket is still
being processed by a worker.
Instead clear the fastpath functions in dev_close.

Fixes: da6c687471a3 ("net/octeontx: add start and stop support")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/net/octeontx/octeontx_ethdev.c