Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1438242rdh; Fri, 27 Oct 2023 14:31:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvrNbU2vH2KNPQZMuaRh3mmRFLHwAv/leLtLTnHdIRb3sSbCsOe3cigDfOzY0dy/atN9V1 X-Received: by 2002:a25:244f:0:b0:d9a:f948:aae1 with SMTP id k76-20020a25244f000000b00d9af948aae1mr3952289ybk.29.1698442277913; Fri, 27 Oct 2023 14:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698442277; cv=none; d=google.com; s=arc-20160816; b=nw/vpCkqKEks3zM1ooyrSv+idm/x0UfBQnvi+xD3af3tBLs2PJ08nBbooWIZxGwJt2 D09IJK70mP92fhT7EaGH90Ck5daAO7a7oAowwIvOuAHi7B9bW3rrWpZyxRzYFsH3t5Lz fncMcmXS5jGP8uDg07cadwdymk3wXvu5yzt3GpnaYXJS1CudZtxTYc0E+1KXgt3M4eGk U3GUrIrTbwPyWcmAYsKAu4yND3Vc0dSh1V5zB4lG+EdCNZehZzepzHUSIAh30LELjlJA gr5GgjFiLtpTHnucNVOFMoSPpczb/F6kKlHUgtnk0o4Pfgbq0ciYzlapyPdaNOhjdH2c EDIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=MI6bVykQDbdW2vz2XrrMq2PILwHbTFu4swv4LXOgVcU=; fh=9p6S40D0T5WAcoh4vU7phhbHC9gf4pFWXod1U+kMV/I=; b=Uiyx9rR0i/4JtMA5h4IxqmK7GlZg+t9E511+u+nlGq+vXKXFqIYIAEcz1B+dsHy8le LhRQpXRl3MU1J5OVC254xgAxYBX+F1Z7gA8jQ3X9MI1Ou//15EdaGFV9OOf4yWBZt7Ls Kmsda1LFR7SlmQF2BcTIOkrA/fZ+gd/vfvqmtGkj4VstIUedkStYjClkyNXcPKzYaxEO MWtB+d2CYNeyQz3qq7CuVbM7oBaWNmC5sl7ueChEaR39R4Lu2U67Lm67297Fa6/LpMFE pGS8nsi+vMO6sJJ/e2RjxWzW5xtZGz2ot8H8UWtq4YB0kQs7pqwF4lBCinVXwslkUekU gudg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LPn2ZPff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id f185-20020a251fc2000000b00d7bad264374si3298793ybf.132.2023.10.27.14.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 14:31:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LPn2ZPff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 576E681EEBD6; Fri, 27 Oct 2023 14:31:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230451AbjJ0VbF (ORCPT + 99 others); Fri, 27 Oct 2023 17:31:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232330AbjJ0VbE (ORCPT ); Fri, 27 Oct 2023 17:31:04 -0400 Received: from mail-qk1-x74a.google.com (mail-qk1-x74a.google.com [IPv6:2607:f8b0:4864:20::74a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CD83129 for ; Fri, 27 Oct 2023 14:31:02 -0700 (PDT) Received: by mail-qk1-x74a.google.com with SMTP id af79cd13be357-7789577b582so327192585a.0 for ; Fri, 27 Oct 2023 14:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698442261; x=1699047061; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=MI6bVykQDbdW2vz2XrrMq2PILwHbTFu4swv4LXOgVcU=; b=LPn2ZPffMCHMox3HmP/ORTuk/8Sxy5SmqjaZJ69oCfFDoN8BHzU7XUUKYHNeMQSImb Usg0TiCIDUv4fjlRepJ8yvfi+8zBUtbOSmFPnqBrMOOXVKIJApLwkxumREkQodbbLzbN ZkUqrOazlgfvCPvIiG3ReOdgFcWzKh7E/G8yJtiYd3q9K9FbdM68TnjlM8n4WT5mJLGN r0rs57Cw2ffstCeKWqBnfay54SGU14URJXJv//bpcOwBrY2PrJ2NHxBtpEmcJqUW3v5H CPPw0h7PwajUtZ/eJRClN9zBg1J/7EQPgwrToT+H30rdSuKa/T3PR6gGuEPE1i43ZFe2 o8lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698442261; x=1699047061; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MI6bVykQDbdW2vz2XrrMq2PILwHbTFu4swv4LXOgVcU=; b=hocke+BtIbj+lOjzaTp2siU+uNPd0Ukxr0x27FJRdS0mcT/PjdbHhOKxA+lf13/M+U itihYPFnqcFGKiuaKnkcmSnJTNk+vbIbXbTizeeEdCjry+xT2WHUoo7l8qVWeuAfcrjk jeURpwDtR4IPQLIbstaPkOs15oQKyGVtsijAsl3TlwJNKZv7EuUn/hFUXpLzmujfVjwe pxbToZtcYOnCvKy0Txpm86PJOc6skejMRPEApblqAz1YC0VGXXXxPrN+xrAMLx6xG3ca PgjtDF80sA3aMq92bxOd1Yie+DFn8UjMdI/5wqipz2JIjqZKugJqfNDCyeVobA22yGrw 1BJg== X-Gm-Message-State: AOJu0YwymzxWGLqdPwTSXuNDqV5DvX0d24s+3VY6FWoWlB7cYmsHvJiO byo+TBj+UpA1oPHbxfbB0CxKr/Y= X-Received: from ptf16.nyc.corp.google.com ([2620:0:1003:314:7908:dc2a:2e54:fd31]) (user=ptf job=sendgmr) by 2002:ae9:e207:0:b0:777:f69:557 with SMTP id c7-20020ae9e207000000b007770f690557mr64327qkc.15.1698442261542; Fri, 27 Oct 2023 14:31:01 -0700 (PDT) Date: Fri, 27 Oct 2023 17:30:55 -0400 Mime-Version: 1.0 X-Mailer: git-send-email 2.42.0.820.g83a721a137-goog Message-ID: <20231027213059.3550747-1-ptf@google.com> Subject: [PATCH v2] net: r8169: Disable multicast filter for RTL_GIGA_MAC_VER_46 From: Patrick Thompson To: netdev@vger.kernel.org Cc: Patrick Thompson , Chun-Hao Lin , "David S. Miller" , Eric Dumazet , Heiner Kallweit , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, nic_swsd@realtek.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 27 Oct 2023 14:31:15 -0700 (PDT) MAC_VER_46 ethernet adapters fail to detect eapol packets unless allmulti is enabled. Add exception for VER_46 in the same way VER_35 has an exception. Fixes: 6e1d0b898818 ("r8169:add support for RTL8168H and RTL8107E") Signed-off-by: Patrick Thompson --- Changes in v2: - add Fixes tag - add net annotation - update description drivers/net/ethernet/realtek/r8169_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index 361b90007148b..a775090650e3a 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -2584,7 +2584,8 @@ static void rtl_set_rx_mode(struct net_device *dev) rx_mode |= AcceptAllPhys; } else if (netdev_mc_count(dev) > MC_FILTER_LIMIT || dev->flags & IFF_ALLMULTI || - tp->mac_version == RTL_GIGA_MAC_VER_35) { + tp->mac_version == RTL_GIGA_MAC_VER_35 || + tp->mac_version == RTL_GIGA_MAC_VER_46) { /* accept all multicasts */ } else if (netdev_mc_empty(dev)) { rx_mode &= ~AcceptMulticast; -- 2.42.0.820.g83a721a137-goog