Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5613665imu; Mon, 26 Nov 2018 03:01:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/VLm5xgBtzGywlPz0LPnj0hsyQsesswy1Vmhzq3AcJWwckHEST41TEtxuBDgNpHMy/vJuXP X-Received: by 2002:a17:902:824:: with SMTP id 33-v6mr27794822plk.107.1543230107645; Mon, 26 Nov 2018 03:01:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543230107; cv=none; d=google.com; s=arc-20160816; b=GNId2wnxU/Rh6JQjwA8dtyPK5xOEsjBzpd6zLCKmhj/tJKixYzlpX5jskH0g6zmuti MWGUUTydRuzYA5StzsqrmlmMsWNKlycPOjsjzvwusWzmDUw0orZsnrr2BmjQg0JiPexm ykMzAxilbtc4dH4OV44ng2GvUGyceL2t/idYBmRgUuDDQ1AsYrLgIlvngsqeLZx/SVQv f22l9I2cNoKBa6n+LT7GfU7A0SGXHs1Zpj6XiV0q2w/A2Hm1L9OQrwh6F+o9/dv4g6Ph +l5qiyxlNCjwXZBcVN7oh10i1BS3wzlij+aGDXo+BgxvuwVzl1Yw38xWEqiZ6s4dgtF4 rNkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=E1ErWdY2q0WXi4rPTBri25HEuWo1/QEJJbsbwvJOA7Y=; b=rFGw/00CyoJSM36ynU6S3SMqKAtkGSnrtIALqYx8/E3LFYTYjQzyo1Y0ZsP+JisdWH W2SYAS3H6VLHpib2jjkJ+AsFLi5GSvPRaI+GnHxUkSxKjUO3rBJfz4DRIg+Ns/+kjHn/ st71iAY88HV2fLaPJxU4AuaxLqSubpJFYskqiP9Wi1qILrzWMcxoJpI9bZHhC8YHN6/Y y5pyO+4Vsu/X2whFuky4dG9m0NYz5/JZcA6R4NPYKmAAQnxSakQwVJfzMnymkoaV52MA yiofBng4U+OoZ5tkUlV/vWil1qu9S4Jx9s2mkYvCXmmRDfptAmkO4KOTm2p4Rm3xB94q XiLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1l9zrS+Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b65si60462599pgc.259.2018.11.26.03.01.26; Mon, 26 Nov 2018 03:01:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1l9zrS+Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729733AbeKZVxt (ORCPT + 99 others); Mon, 26 Nov 2018 16:53:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:35660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729664AbeKZVxs (ORCPT ); Mon, 26 Nov 2018 16:53:48 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ED34421479; Mon, 26 Nov 2018 11:00:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543230003; bh=O6Bi7nnlwijdvCYYfgFwnQ2vNjN4sREjCOJ0sFUd87Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1l9zrS+Z/N6gVXj3ypEyBOR+bpSM6UMPY5jJE3MGkHf+XbIyJ9tM104aN1wfWgjCM pl1SrRvD4ovEAONA2jlcmkg/SrZamrmbyYVXYfFn5DWIp1r3mhGUR1WQpdGZ6ncDru oUuhmode/RG669J6HXHz5ht6y8Mmmc5+403qQL7U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Radoslaw Tyl , Andrew Bowers , Piotr Skajewski , Jeff Kirsher , Sasha Levin Subject: [PATCH 4.14 05/62] ixgbe: fix MAC anti-spoofing filter after VFLR Date: Mon, 26 Nov 2018 11:50:46 +0100 Message-Id: <20181126105051.423412166@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105050.592727680@linuxfoundation.org> References: <20181126105050.592727680@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 6702185c1ffec3421181b5e24491e3fac920cb61 ] This change resolves a driver bug where the driver is logging a message that says "Spoofed packets detected". This can occur on the PF (host) when a VF has VLAN+MACVLAN enabled and is re-started with a different MAC address. MAC and VLAN anti-spoofing filters are to be enabled together. Signed-off-by: Radoslaw Tyl Tested-by: Andrew Bowers Acked-by: Piotr Skajewski Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c index 112d24c6c9ce..4904a63b83ef 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c @@ -760,8 +760,10 @@ static inline void ixgbe_vf_reset_event(struct ixgbe_adapter *adapter, u32 vf) ixgbe_set_vmvir(adapter, vfinfo->pf_vlan, adapter->default_up, vf); - if (vfinfo->spoofchk_enabled) + if (vfinfo->spoofchk_enabled) { hw->mac.ops.set_vlan_anti_spoofing(hw, true, vf); + hw->mac.ops.set_mac_anti_spoofing(hw, true, vf); + } } /* reset multicast table array for vf */ -- 2.17.1