Skip to content

Commit

Permalink
net/ice: fix flow redirector
Browse files Browse the repository at this point in the history
If there's VF reset, the kernel PF will remove rules
associated with the reset VF no matter the HW VSI ID
is changed or not. So DCF should redirector all rules
associated with the reset VF no matter the HW VSI ID
is changed or not.

Fixes: 3b3757b ("net/ice: get VF hardware index in DCF")
Fixes: c8183dd ("net/ice: redirect switch rule to new VSI")

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
  • Loading branch information
beileix authored and Ferruh Yigit committed Apr 22, 2020
1 parent fdfbfe7 commit b09d34a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ice/ice_dcf.c
Expand Up @@ -536,7 +536,7 @@ ice_dcf_handle_vsi_update_event(struct ice_dcf_hw *hw)
rte_intr_disable(&pci_dev->intr_handle);
ice_dcf_disable_irq0(hw);

if (ice_dcf_get_vf_resource(hw) || ice_dcf_get_vf_vsi_map(hw))
if (ice_dcf_get_vf_resource(hw) || ice_dcf_get_vf_vsi_map(hw) < 0)
err = -1;

rte_intr_enable(&pci_dev->intr_handle);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ice/ice_dcf_parent.c
Expand Up @@ -45,7 +45,7 @@ ice_dcf_update_vsi_ctx(struct ice_hw *hw, uint16_t vsi_handle,
VIRTCHNL_DCF_VF_VSI_ID_S;

/* Redirect rules if vsi mapping table changes. */
if (!first_update && vsi_ctx->vsi_num != new_vsi_num) {
if (!first_update) {
struct ice_flow_redirect rd;

memset(&rd, 0, sizeof(struct ice_flow_redirect));
Expand Down

0 comments on commit b09d34a

Please sign in to comment.