Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6516591yba; Tue, 14 May 2019 08:50:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+rraN7honHpJlOuUeyP/Obb4h15Zih0iC/gNeabX9WXQiukFOAUn327ojDyjnaocAn1lH X-Received: by 2002:a63:f703:: with SMTP id x3mr37880915pgh.394.1557849006827; Tue, 14 May 2019 08:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557849006; cv=none; d=google.com; s=arc-20160816; b=kNsBcIDRxKz+YOmAnHqecj6xz/7nkfEdhUdedft2ch1zrhn41Kgir+D5Tw5btatF6g Lk/XycOzr5hR8S5JiRJaKoUb/zJHAfDP/+dxTK3Ot9AuciozCIMuvyInLCP8bvjZEgni iMSg8cGnHVU4Lz5ljkgOS9Djy2P51EonALsmSH8Xvg/bEOJpGwwp4PO+lWvUzM8wPKF5 MUNNqL5ml6HGDwZnK4PggbQdXCQuJMh7DFrCREcHx62tIpl77grtXPOGvLKT0yRfGcjo elm6VPckHYNA0SMY1/H62kHyv9Xo+O/R1jTjZxjirVJkj8U9vJzjv1x1RRxhWKDNZ/Zb /XGw== 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=/fv3i9M7II4PsGWF6w6rl44lM9zdwEYLGVxuiQ0CMfE=; b=bt+uhe2iDILNwrLlSaCEFuKvKbH4FzEgzi9GkGtrCB4h3ByU3/AxFyBkE8qu8RJ9NW zVv8cJBL1ZZGWSgCJprCx1pSd092KLVlNIwPJRVPo/hYLE+cCeNe66dsQhgWkyZR5DzS ot08F9i0rhRt6tyYBA81M78FLeu910keyaU3ioxGCZx7JOlt+QjAExZxVh+MjauZKofJ 5GoyPlwVx88ppdm63PmoT57wJeEftI5LEq25crFloN/SazLHq0xwg0aQE4deY5oihaKx xjGBEyXXayKk9HmHBdHyMYifs62G4ZqK9M493XaQN11K8L5xDwt9Wo7mHOscfT5rAzD8 jZ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=SOPr6xSg; 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 w126si21921675pfw.53.2019.05.14.08.49.51; Tue, 14 May 2019 08:50:06 -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=SOPr6xSg; 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 S1726416AbfENPrI (ORCPT + 99 others); Tue, 14 May 2019 11:47:08 -0400 Received: from smtprelay-out1.synopsys.com ([198.182.61.142]:35814 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726295AbfENPpl (ORCPT ); Tue, 14 May 2019 11:45:41 -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 294AEC0A69; Tue, 14 May 2019 15:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1557848732; bh=RHZJ7Nly+6eIj6TH+Vtugodh6n+S3lZDgZgpUVtcHXE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=SOPr6xSgA/QAN5kpOeqPUDuqv2FNLiDYgDQHqGYuY2yC9bHxMQ4Gv3RMvFL1jytpk BBK+sKLHPt4FyghFV7Ya3ZWjkiDcWA5TgVVbdVJsfN94GQ3+kitzr5v3eNEiwbn2mt WFgrkSz6FiHKfrEugZCpN2naX4A2lsNC7CRJ74pNCFyUuJ2H8WH8bJ942OxA2GOljv JV+PsGzDI24JqlAHcTW+e8cyyRbvSFqOtJT8szY3l3y+jYQMg1Y/bmQVaURMeWmg79 ho3fEtOSTh0r4XujxZgEIQaXYQE0ise9PhoxQ/ViI/RPDE8gCCtvWmROf7Ae44y4e7 9pWn6smw1wmOw== Received: from de02.synopsys.com (de02.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 549A7A0253; Tue, 14 May 2019 15:45:41 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 026883EA3A; Tue, 14 May 2019 17:45:40 +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 , Corentin Labbe Subject: [RFC net-next v2 12/14] net: stmmac: dwmac1000: Fix Hash Filter Date: Tue, 14 May 2019 17:45:34 +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 Cc: Corentin Labbe --- 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