net/hns3: fix flow rule list in multi-process
authorChengwen Feng <fengchengwen@huawei.com>
Sat, 17 Jul 2021 02:02:55 +0000 (10:02 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 23 Jul 2021 12:45:20 +0000 (14:45 +0200)
commit9b290a3a63ca31ba7bd0a071315dc2e72ba75d8a
tree14afedbb98b28e0e9ac57dce098ffebf7db5c7ee
parent6dc90c7eb306d216bb5e985e6cdb701420e29b5e
net/hns3: fix flow rule list in multi-process

Currently, hns3 driver saves rte_flow list into the
rte_eth_dev.process_private field, it may cause following problem:
The FDIR/RSS rules cannot be managed in a unified manner because
the management structure is not visible between processes.

This patch fixes it by moving rte_flow list to struct hns3_hw which is
visible between processes.

Fixes: fcba820d9b9e ("net/hns3: support flow director")
Fixes: c37ca66f2b27 ("net/hns3: support RSS")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ethdev.h
drivers/net/hns3/hns3_ethdev_vf.c
drivers/net/hns3/hns3_fdir.h
drivers/net/hns3/hns3_flow.c