Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp50148ybg; Mon, 8 Jun 2020 16:08:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZvW/3Sc/ItotcwSBH23J54JbYdklEs4EinAWcwXymHYXAkSACXy4xJgzt9ki8qR+9vX1a X-Received: by 2002:a17:906:2b14:: with SMTP id a20mr24202928ejg.387.1591657732433; Mon, 08 Jun 2020 16:08:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591657732; cv=none; d=google.com; s=arc-20160816; b=uXlHB0D8Q5iD5MlKmX9zA3PZpNFp4iS2DAvzeQ1WcuCdkFzJR50YGo2FKj/JqhI69R ywiCGxGrRnhUHRB0KZJmfEzeZhTin0MvQLK4PNqaepWFOTcCNzj0HYqOpcxWJQVwty9L ck4g8MuAeaY65g5jZD646DhYr008c8UVJVdybFU772AHBnYBT3sZ5m9YewFIlgJcaIpt wP/Ou/v2wZ8ofLiS1srr/hj1ExQjgi0yd5s9AIBOjTEGdZX/fEakPZvfjERTSyec41Sr IJK+u/idgEICNcxR+tlxlxL4VHpmDYiGkHEgsrdD5dJVvlq8BvsOxWIo29UHvLqDhLmB K0vQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AgxZyyHrheQO7n5GxrQW4G7AP+mlbmIzuEfWLSMXWlM=; b=Gug41q/MPtZwT00gF1UF96trpUVx7+eEuv3SWl0Ve0s523qqC8sgJKXL66v1z913Qp JRVJvxnf8TxTV2zXakbbbiOtzM3faoPj3Y+XmW8wCsDclKGN4pb+4CguYSaUpZLfr1Jl FblqOPbJzN+doCMwtMHd8ApZVVpSamNU1iXbeq0+u5gW4jRxDSkehVpSOk0+CVWwr3kv MF6B7zVH23QRmTC+DVcCW2UdjQTpHqmEChM6VzPcID+5zoNqjYB+WgSnpO9DiShAqQS5 hs35wdyOPPJ5nh3BmMqEzgvBmvDlEunuPGpbtO8NFxcx81K0XaUSMPYq6eBUi7/9pH9N 03iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="QrQ/jl+8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si8746502eja.745.2020.06.08.16.08.29; Mon, 08 Jun 2020 16:08:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="QrQ/jl+8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727005AbgFHXGa (ORCPT + 99 others); Mon, 8 Jun 2020 19:06:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:49296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726952AbgFHXGV (ORCPT ); Mon, 8 Jun 2020 19:06:21 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1628E2076A; Mon, 8 Jun 2020 23:06:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591657580; bh=BL5eAXPRlC1IBRiuQcN180O4CGnUQWKkqqkqjGc2e78=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QrQ/jl+8BmC9KzK7tx4QXEj5RT5haS7ZFaWIQOW+fhDuVBZHPdvVV2Pnq2R6TEGp9 P1KR8DCyQvxqsL1URqbFQ9UHLDGfoonRr1pUmEnegW0acXxnCpEPzMYy+KaTftL5JH jzJ2s+FMQVTREHOOEZWZa01BnSEFD4q0sq29ZLeY= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Andre Guedes , Aaron Brown , Jeff Kirsher , Sasha Levin , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.7 010/274] igc: Fix default MAC address filter override Date: Mon, 8 Jun 2020 19:01:43 -0400 Message-Id: <20200608230607.3361041-10-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200608230607.3361041-1-sashal@kernel.org> References: <20200608230607.3361041-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andre Guedes [ Upstream commit ac9156b27564a089ec52f526bfcb59f61c34e7c6 ] This patch fixes a bug when the user adds the first MAC address filter via ethtool NFC mechanism. When the first MAC address filter is added, it overwrites the default MAC address filter configured at RAL[0] and RAH[0]. As consequence, frames addressed to the interface MAC address are not sent to host anymore. This patch fixes the bug by calling igc_set_default_mac_filter() during adapter init so the position 0 of adapter->mac_table[] is assigned to the default MAC address. Signed-off-by: Andre Guedes Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/igc/igc_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index 69fa1ce1f927..c7020ff2f490 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -2325,7 +2325,9 @@ static void igc_configure(struct igc_adapter *adapter) igc_setup_mrqc(adapter); igc_setup_rctl(adapter); + igc_set_default_mac_filter(adapter); igc_nfc_filter_restore(adapter); + igc_configure_tx(adapter); igc_configure_rx(adapter); -- 2.25.1