numam-dpdk/drivers
Huisong Li 841f869353 net/hns3: fix multi-process action register and unregister
The multi-process has the following problems:
1) After a port in primary process is closed, the mp action of the
   process is unregistered. Which will cause that other device in the
   primary process cannot respond to requests from secondary processes.
2) Because variable "hns3_inited" is set to true without returning an
   initial value, the mp action cannot be registered again after it is
   unregistered.
3) The mp action of primary and secondary process need to be registered
   only once regardless of port numbers in the process. That's what
   variable "hns3_inited" does. But the variable is difficult to
   understand.

This patch adds a hns3_process_local_data structure to resolve above
problems.

Fixes: 9570b1fdbd ("net/hns3: check multi-process action register result")
Fixes: 23d4b61fee ("net/hns3: support multiple process")

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
2021-11-04 15:11:32 +01:00
..
baseband drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
bus bus/pci: fix use after free on unplug 2021-11-04 15:13:41 +01:00
common common/cnxk: fix device MSI-X greater than default value 2021-11-03 16:12:29 +01:00
compress devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00
crypto devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00
dma dma/idxd: fix truncated error code in status check 2021-10-27 17:01:56 +02:00
event event/cnxk: disable drop Rx error on vector enable 2021-11-03 16:05:47 +01:00
mempool mempool/cnxk: postpone devargs parsing 2021-10-29 16:09:25 +02:00
net net/hns3: fix multi-process action register and unregister 2021-11-04 15:11:32 +01:00
raw raw/cnxk_bphy: add header includes 2021-11-03 16:15:13 +01:00
regex regex/mlx5: prevent double setup of queue pair 2021-11-03 23:15:10 +01:00
vdpa vhost: mark vDPA driver API as internal 2021-11-03 09:11:34 +01:00
meson.build raw/ioat: build only if dmadev not present 2021-10-22 22:40:58 +02:00