From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 0F47C235 for ; Tue, 21 Nov 2017 14:25:24 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B8EFC20AFD; Tue, 21 Nov 2017 08:25:23 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 21 Nov 2017 08:25:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=g/b1GGPAMCAbiNvF1 gI/yn+Ufejig5Rr24UG3ddDxQ8=; b=IFPdARGloIOqvoH0iN5T4UbvmyzifiHO7 UTyk64B+xKc0xNtAXFJkhZrXpyFwppsRm2191JnQEOYP3x6jFeRjz5mQe/6HVAyW dgKtqypguZDT0B0B/EJa0X9hxv8Be7ov+y1CMLjhBb1Q6gdrUIMCmCOmRjyYex4q H3IPBrCtn4e5jZXHpmjHja7c0ekQG0BS62DJwlCC7kjjvZKdpxtHnEpfeiFJvIVr WVKpVsuS/z5bYKz+rLjflUJ6wCkp/sCimwRSZz5VJygW3+yg1/EcvZKFv6Pn6DtB hEEXUNIcIwfyoKh6oTlYA7f7ax+IhZE7X1w0UteShfW7D4DET356A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=g/b1GGPAMCAbiNvF1gI/yn+Ufejig5Rr24UG3ddDxQ8=; b=ZSWIe/bz MIqyFmWrgsz/JBJi7QbsqNeK6gko4bYIt3SLUHPki5KzlG73dW+zyt3l2CFjeQZ3 9/apkhb8yjUdlHle2g6vQf8blmxOnobXy7QR5wYF/FvvtrJ6ovMCkiG0SB4z03MR xCpndWHAEyuME4L2Wy9QeOfA+ug2w9GmRe4dQpc71MvOTu3ytlERoeSCbKXvnSRs QJH+agSHiWAd2qTtOcrvBhcdXrJxV6rJSCM+IzppLITWQqVFFdMVtt1mptk2o9bb IB/VL6VPbz3UZnQ1Loy7DXhYkFJ42vYbg3qvsRsepwA6xAC3QsFyewI70AAq2E/l afZUQtFw85nkJA== X-ME-Sender: Received: from localhost.localdomain (unknown [180.158.62.0]) by mail.messagingengine.com (Postfix) with ESMTPA id 1DE2024631; Tue, 21 Nov 2017 08:25:20 -0500 (EST) From: Yuanhan Liu To: Rasesh Mody Cc: dpdk stable Date: Tue, 21 Nov 2017 21:17:17 +0800 Message-Id: <1511270333-31002-95-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> References: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/qede/base: fix return code to align with FW' has been queued to stable release 17.08.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 13:25:24 -0000 Hi, FYI, your patch has been queued to stable release 17.08.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From ba8b52e5acd74b87f81d855cb4e638f609bae2e1 Mon Sep 17 00:00:00 2001 From: Rasesh Mody Date: Fri, 6 Oct 2017 23:31:11 -0700 Subject: [PATCH] net/qede/base: fix return code to align with FW [ upstream commit da4ff1c39854d1c2d922c4959aac1c6fd6c182b1 ] 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") Signed-off-by: Rasesh Mody --- drivers/net/qede/base/ecore_sriov.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/qede/base/ecore_sriov.c b/drivers/net/qede/base/ecore_sriov.c index db2873e..ef27147 100644 --- a/drivers/net/qede/base/ecore_sriov.c +++ b/drivers/net/qede/base/ecore_sriov.c @@ -3272,12 +3272,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)) && -- 2.7.4