[dpdk-dev] [PATCH v6 0/3] fix PF reset causes VF memory request failure

2021-05-23 Thread Haiyue Wang
By triggerring the VF reset from PF reset, echo 1 > /sys/bus/pci/devices/PF-BDF/reset the PCI bus master bit will cleared on VF, so the VF needs to enable this bit before restart. This patch set adds the API to enable PCI bus master. v6: update the annotate symbol version, and add some

[dpdk-dev] [PATCH v6 1/3] bus/pci: set PCI master in command register

2021-05-23 Thread Haiyue Wang
Add the API to set 'Bus Master Enable' bit to be enabled or disabled in the PCI command register. Signed-off-by: Haiyue Wang Acked-by: Ray Kinsella --- drivers/bus/pci/pci_common.c | 28 drivers/bus/pci/rte_bus_pci.h | 14 ++ drivers/bus/pci/version.map

[dpdk-dev] [PATCH v6 2/3] net/iavf: enable PCI bus master after reset

2021-05-23 Thread Haiyue Wang
The VF reset can be triggerred by the PF reset event, in this case, the PCI bus master will be cleared, then the VF is not allowed to issue any Memory or I/O Requests. So after the reset event is detected, always enable the PCI bus master. And if failed, the device or system may be in an invalid s

[dpdk-dev] [PATCH v6 3/3] net/i40e: enable PCI bus master after reset

2021-05-23 Thread Haiyue Wang
The VF reset can be triggerred by the PF reset event, in this case, the PCI bus master will be cleared, then the VF is not allowed to issue any Memory or I/O Requests. So after the reset event is detected, always enable the PCI bus master. And if failed, the device or system may be in an invalid s

[dpdk-dev] [PATCH v7 0/3] fix PF reset causes VF memory request failure

2021-05-23 Thread Haiyue Wang
Trigger the VF reset from PF reset, echo 1 > /sys/bus/pci/devices/PF-BDF/reset the PCI bus master bit will cleared on VF, so the VF needs to enable this bit before restart. This patch set adds the API to enable PCI bus master. v7: fix the commit message typo, and update some description

[dpdk-dev] [PATCH v7 1/3] bus/pci: set PCI master in command register

2021-05-23 Thread Haiyue Wang
Add the API to set 'Bus Master Enable' bit to be enabled or disabled in the PCI command register. Signed-off-by: Haiyue Wang Acked-by: Ray Kinsella --- drivers/bus/pci/pci_common.c | 28 drivers/bus/pci/rte_bus_pci.h | 14 ++ drivers/bus/pci/version.map

[dpdk-dev] [PATCH v7 2/3] net/iavf: enable PCI bus master after reset

2021-05-23 Thread Haiyue Wang
The VF reset can be triggered by the PF reset event, then the PCI bus master will be cleared, the VF will be not allowed to issue any Memory or I/O Requests. So after the reset event is detected, always enable the PCI bus master. And if failed, the device or system may be in an invalid state, so k

[dpdk-dev] [PATCH v7 3/3] net/i40e: enable PCI bus master after reset

2021-05-23 Thread Haiyue Wang
The VF reset can be triggered by the PF reset event, then the PCI bus master will be cleared, the VF will be not allowed to issue any Memory or I/O Requests. So after the reset event is detected, always enable the PCI bus master. And if failed, the device or system may be in an invalid state, so k

Re: [dpdk-dev] [PATCH v1] net/i40e: fix flow director does not work

2021-05-23 Thread Xing, Beilei
> -Original Message- > From: Yang, SteveX > Sent: Wednesday, May 19, 2021 11:28 AM > To: dev@dpdk.org > Cc: Xing, Beilei ; Yang, SteveX > Subject: [PATCH v1] net/i40e: fix flow director does not work > > When user configured the flow rule with raw packet via command > "flow_director_f

Re: [dpdk-dev] [PATCH v6 2/2] net/hns3: refactor SVE code compile method

2021-05-23 Thread Ruifeng Wang
> -Original Message- > From: fengchengwen > Sent: Friday, May 21, 2021 2:53 PM > To: Ruifeng Wang ; tho...@monjalon.net; > ferruh.yi...@intel.com > Cc: dev@dpdk.org; jer...@marvell.com; vikto...@rehivetech.com; > bruce.richard...@intel.com; Honnappa Nagarahalli > ; jerinjac...@gmail.com; >

[dpdk-dev] How to enable VF LAG with switchdev mode for mlx5 in the dpdk

2021-05-23 Thread wenxu
Hi mlnx teams, How can I enable VF LAG with switch mode in the upstrem dpdk? echo 1 > /sys/class/net/net2/device/sriov_numvfs echo 1 > /sys/class/net/net3/device/sriov_numvfs echo :19:00.2 > /sys/bus/pci/drivers/mlx5_core/unbind echo :19:08.1 > /sys/bus/pci/drivers/mlx5_core/unbind de