From: Rasesh Mody Date: Sat, 7 Oct 2017 06:31:11 +0000 (-0700) Subject: net/qede/base: fix return code to align with FW X-Git-Tag: spdx-start~1541 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=da4ff1c39854d1c2d922c4959aac1c6fd6c182b1;p=dpdk.git net/qede/base: fix return code to align with FW This change aligns the PF behavior with that of the L2-fw, so that flows (to remove an incorrect MAC) for PF and VF could remain the same. Fixes: 86a2265e59d7 ("qede: add SRIOV support") Cc: stable@dpdk.org Signed-off-by: Rasesh Mody --- diff --git a/drivers/net/qede/base/ecore_sriov.c b/drivers/net/qede/base/ecore_sriov.c index 18458cf7c3..b1e26d6f3b 100644 --- a/drivers/net/qede/base/ecore_sriov.c +++ b/drivers/net/qede/base/ecore_sriov.c @@ -3419,12 +3419,13 @@ static void ecore_iov_vf_mbx_ucast_filter(struct ecore_hwfn *p_hwfn, goto out; } - /* Update shadow copy of the VF configuration */ + /* Update shadow copy of the VF configuration. In case shadow indicates + * the action should be blocked return success to VF to imitate the + * firmware behaviour in such case. + */ if (ecore_iov_vf_update_unicast_shadow(p_hwfn, vf, ¶ms) != - ECORE_SUCCESS) { - status = PFVF_STATUS_FAILURE; + ECORE_SUCCESS) goto out; - } /* Determine if the unicast filtering is acceptible by PF */ if ((p_bulletin->valid_bitmap & (1 << VLAN_ADDR_FORCED)) &&