Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1112820imm; Wed, 1 Aug 2018 10:23:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfnfaKGCwPW/yasprg5Jfm9a323h/OXpSHYSs/QDt6TVI0UAnNN68cdOS3EK6ZiUy5mbZJ4 X-Received: by 2002:a63:6441:: with SMTP id y62-v6mr25134139pgb.240.1533144198551; Wed, 01 Aug 2018 10:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144198; cv=none; d=google.com; s=arc-20160816; b=sSuYAZ08Q5x67TGZzRVwiUoGwVwvZ1YVtoEY2N+4rI60M3V9pUymU9o69gIHsR1WZ5 k8h28JhyQS01AiTS7Pw04sQZJJoxb+wkQfQ1EdLmDfYS82Ad0dTHEFeWgdoHjbdG+xr9 2ATB2VxZ1fPRir1SpMpxzjd373icG9d2pBR1GMu1rg0Uj9BO+xbPtluAA9OKQTzNVUIn AufmbUQoM/tDnqeaIuDnOi4x0S34K+vfVukT1YyCOpOH92yA6j/hpu9sVjR9lG2j6pPD jPCvO6/7W7upo7twi0fS2p8X7onaE4Zd9/RowvR48JKDSQ3qp0kEIQNtVfycK6ftGQY2 yESQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=8QWAvaBqS/uyXQWxf2as04sDF49N2wuvkZwHuJjcHW4=; b=W5+5O2w621H7wm9t/DNZOADZqs7AtZzdCXdv7QnGiDiVCVwyZT9pBea9k52hOwUXSa 5ugkFXZi+Fhndf6iCOIaszIyM5xQWLdbKOQFq0vxZpyGjhggCOmsNH8iUDmTTbih4drh J95hkrlmLmBydtQnYDyLzee0hw/vBA60ZD2d0xZ1M+fmC1hvMyLevbKOVlUOkgjzjq7w iS3VU1qIxBsPqQjJtJdORIUNzkB7RmM7BmWg8Lq4ufdGgqsxFZOkmzZX1adgD2N4UlQ8 w28ZTJtPAuzTkpqSQmpGBpRcFuDeU7QMBy1DdCB0fTi7wf9UQovS4N0z/xng6kO0OZEG j5xg== ARC-Authentication-Results: i=1; mx.google.com; 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 t16-v6si14465634pgu.487.2018.08.01.10.23.04; Wed, 01 Aug 2018 10:23:18 -0700 (PDT) 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; 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 S2405523AbeHATH5 (ORCPT + 99 others); Wed, 1 Aug 2018 15:07:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49312 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389715AbeHATH4 (ORCPT ); Wed, 1 Aug 2018 15:07:56 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 36763CF7; Wed, 1 Aug 2018 17:21:15 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vinicius Costa Gomes , Aaron Brown , Jeff Kirsher , Sasha Levin Subject: [PATCH 4.14 187/246] igb: Fix queue selection on MAC filters on i210 Date: Wed, 1 Aug 2018 18:51:37 +0200 Message-Id: <20180801165020.663383255@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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. ------------------ From: Vinicius Costa Gomes [ Upstream commit 4dc93fcf0b95dc3fda4db917effae31fbb8ad2a8 ] On the RAH registers there are semantic differences on the meaning of the "queue" parameter for traffic steering depending on the controller model: there is the 82575 meaning, which "queue" means a RX Hardware Queue, and the i350 meaning, where it is a reception pool. The previous behaviour was having no effect for i210 based controllers because the QSEL bit of the RAH register wasn't being set. This patch separates the condition in discrete cases, so the different handling is clearer. Fixes: 83c21335c876 ("igb: improve MAC filter handling") Signed-off-by: Vinicius Costa Gomes Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/igb/igb_main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -8376,12 +8376,17 @@ static void igb_rar_set_index(struct igb if (is_valid_ether_addr(addr)) rar_high |= E1000_RAH_AV; - if (hw->mac.type == e1000_82575) + switch (hw->mac.type) { + case e1000_82575: + case e1000_i210: rar_high |= E1000_RAH_POOL_1 * adapter->mac_table[index].queue; - else + break; + default: rar_high |= E1000_RAH_POOL_1 << adapter->mac_table[index].queue; + break; + } } wr32(E1000_RAL(index), rar_low);