net/ngbe: fix PCIe related operations with bus API
authorJiawen Wu <jiawenwu@trustnetic.com>
Mon, 30 May 2022 09:30:13 +0000 (17:30 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Tue, 31 May 2022 07:42:16 +0000 (09:42 +0200)
commit0aeb133c585fd6809cf7acb6a5dc4c54392ac575
tree232c23ff5b2f413a5b25b82a34d33f99b285ad88
parent6dcfb19f60e151d4659d1759fecb0d01bc5d1fc7
net/ngbe: fix PCIe related operations with bus API

When using mailbox to request firmware to enable or disable PCIe bus
master, there is a small probability that mailbox cannot respond.
Change to use rte_pci_read_config() and rte_pci_write_config(), to
avoid this problem.

Fixes: ac6c5e9af56a ("net/ngbe: fix Tx hang on queue disable")
Cc: stable@dpdk.org
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
drivers/net/ngbe/base/ngbe_hw.c
drivers/net/ngbe/base/ngbe_osdep.h
drivers/net/ngbe/ngbe_ethdev.c