net/txgbe: prevent driver forcing application to exit
authorJiawen Wu <jiawenwu@trustnetic.com>
Wed, 28 Oct 2020 02:29:57 +0000 (10:29 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:05 +0000 (23:35 +0100)
commit4c6dea0c0b23d29b6c4d21cde4574ded287c1ac9
treeeafa8c866fc40fd9ee0168951217e2ba38b606f5
parentc783fd433c0cd5dcabde6ec66fdc4b38e7636567
net/txgbe: prevent driver forcing application to exit

Replace the 'rte_panic()' with an error return.
Also change the type of the calling function.

Fixes: a6712cd029a4 ("net/txgbe: add PF module init and uninit for SRIOV")
Cc: stable@dpdk.org
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
drivers/net/txgbe/txgbe_ethdev.c
drivers/net/txgbe/txgbe_ethdev.h
drivers/net/txgbe/txgbe_pf.c