Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4697553yba; Wed, 8 May 2019 00:54:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzew3nzI51wK86sEBoyg9dFYkJqCQ5b0noiS9m61KPm/4b5RErNxbbN2u8Bxs2qWn8Y16IN X-Received: by 2002:a63:ce54:: with SMTP id r20mr5401273pgi.37.1557302096985; Wed, 08 May 2019 00:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557302096; cv=none; d=google.com; s=arc-20160816; b=sj7MdKAy1FQtzAhxO+d6QTyJT81WykYDurthBE4e6NJUyjB9DOhX3Lt1mXuKWuyz/D riiAOtyJd7Whh2SCo1ftEQEmc3hlYnFOgzsGRt0wZGnCc12EAI0EFrhiIRqDqc+EA1FP uLEohmXo9IM1bwfWR2jEbgvyuhWVWvvgvSUQ9vIxREaGo7x02O4u+cbqVs2dPQA2IYc0 la9lN64P3RIHUL/M6hIT6g1BnlnFoEZf7j7rxSzx4QXI10pOXFgChL247ORdE0wViFym GgOeghxppOhldqRdpzEoyLeRpaL/Y80oHoJnDamTj1INn0ZNQMBTAwmhQQLwikLdXLmX 0u1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=2/MXmxmWsKHfqFWjX213RP7GmunMmx8AUr540jZAQS8=; b=PJURI/z85vebqN2xLqwVkwCLLXOg6ysjREPTsQ7e7ez2qAMrT/1sSFh2lGchT2KfIZ SOBLEMoXL2s4QWD3sGPUrXpSUolcnRQ6G9EJGCD8Im1buifM0MEK5c35uQ0w4NqWfkGg /73/5aXXuytIKV04NYJp16H0EsxFYoPKKxXWeYfCzwtDnU893k+D99lj/oid0NRIUlSr FkeMSoiBSf09/vGtbH6gcWcyua3L0wY7+MYXJgnQu/N1ij0LQV+3DJSUkcYal7RZpxBG vfS3D8aDn+Cz5/KhHObEL2q+PUreXzW04ZXEu4D03ErYxF9cpBHzLPRN1z2q1C0Dm0Qw xWxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=LPDtNyGv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si21421586plo.101.2019.05.08.00.54.41; Wed, 08 May 2019 00:54:56 -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; dkim=pass header.i=@synopsys.com header.s=mail header.b=LPDtNyGv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726743AbfEHHv7 (ORCPT + 99 others); Wed, 8 May 2019 03:51:59 -0400 Received: from dc8-smtprelay2.synopsys.com ([198.182.47.102]:56534 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726487AbfEHHva (ORCPT ); Wed, 8 May 2019 03:51:30 -0400 Received: from mailhost.synopsys.com (dc2-mailhost2.synopsys.com [10.12.135.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 3F18AC00F4; Wed, 8 May 2019 07:51:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1557301893; bh=ba+qVB/NWZuxByW3v1MuTmJSb5+zgkCiAXkRuR1pCXs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=LPDtNyGvr3bLTHU61G9pW0kuZeHee47+Ma4KgbyzeIxx2kmP2OZBJ7/alBAxA7OHd gUNjpmUGKhfojlljUJtllw3SC7VRttKcFax+8FckY2Qr0XiWv8uUoNky0eUqNOgsdz 2kUQ4BNcdytycbHyLsEnYcEOLpFCv1hnvWSSFFYCj0ic3HHuAvuVQVY77VHyt9Ext1 +F9f/AMtw1zXTVBRYtfh64I53f42c58iEnFfe4oxjqF93WkubJp4UXEeuYXBEjGUye I+3y2sayEeI8w2iZtzXZt6Y7ZkhFSEdMu6fc1kd2jmSw6fTGc5cDJv8XdkW8NEFAKh 3JoGR29IqZ6fw== Received: from de02.synopsys.com (germany.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 7CD9FA02D5; Wed, 8 May 2019 07:51:29 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 26FD43D538; Wed, 8 May 2019 09:51:28 +0200 (CEST) From: Jose Abreu To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jose Abreu , Joao Pinto , "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue Subject: [PATCH net-next 11/11] net: stmmac: dwmac1000: Fix Hash Filter Date: Wed, 8 May 2019 09:51:11 +0200 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order for hash filter to work we need to set the HPF bit. Found out while running stmmac selftests. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue --- drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c index 8ca73bd15e07..bc91af6c01b6 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c @@ -198,6 +198,7 @@ static void dwmac1000_set_filter(struct mac_device_info *hw, } } + value |= GMAC_FRAME_FILTER_HPF; dwmac1000_set_mchash(ioaddr, mc_filter, mcbitslog2); /* Handle multiple unicast addresses (perfect filtering) */ -- 2.7.4