Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1643141rdh; Sat, 28 Oct 2023 01:06:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEU3viij340Dxy6YjFKJe31H3Nny7T8/17kYJUGifLqKxwFpuSsKzq7DeFhJZHr5LDBqGeG X-Received: by 2002:a05:6e02:1ba8:b0:351:4b68:ec3a with SMTP id n8-20020a056e021ba800b003514b68ec3amr6897104ili.9.1698480417955; Sat, 28 Oct 2023 01:06:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698480417; cv=none; d=google.com; s=arc-20160816; b=mhREAaKKPbjjYPQe7xofZWOgoCLPUG/aRTZAHKCvTZIKQfG0hnddWnz8taCVIvYLkt b2gmjx35eorK6B2wACd22plDKLr7Q+i80iRKtPTmd7V5b0NuPAEnhzUGgUQpqaho/aIl fUaCWa3a1aBk5mwvQ4xJti3d0ukPH7mF4uo1T3TX1T0m8w6okpTOR61LiDODKTidYukx r1R3Qq58DwEj5UxuQjVdUvBbDCwU8XNVdpGPpQYOdPsAzgxE72pzuL+XjTOxgHJ2t1Br vyEum3ezblRh1VksLkmK5p5ZLuxP7a+U7RCCTNyCAO78kXYksngwPmlOKJ6SClno3uj5 aiTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=dSAFbD2zXqeXCz/qQ3/GP/6mFeOJu9TLTBJ5xkKSIes=; fh=OXE/CyDfPWVkr7JL3ISpqdTtp/ixRJYrgM1RBIYrfBw=; b=NoMPB1DbFNIajo/+SLlIES2LIiVmKVHwA/0VhEsyaZdrsbcVE7eEoVC2UkF7cmsNmt dbsDPlpJJ4KdE9MTXh5xz73/zTzBWWrCC3uo/EK8ocVTOib9312kzTtRxL1ytGhUIFWj DyilMBNPVJPThsz/5eMZQ2oWJcWabIP3r9bB0+10oY6z8rpg53f1zikPH9oZYZPyZkME ANa3ryRtGCnwtp2tTlIwTzxRwXInnqZrjVdbBovKrhAkgMTmnsQ6CkQy3uo4vTozsBWX /QHTvd9dRUeBZli3v2OZ+orFLxmUt8A+NaKIgnpqOnFwo2J+VymanugeMcogTtRIN9I+ JJLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bJNxDmza; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id i129-20020a639d87000000b00563da455862si2159488pgd.311.2023.10.28.01.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 01:06:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bJNxDmza; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 54D8F821B6E7; Sat, 28 Oct 2023 01:06:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233256AbjJ1IGg (ORCPT + 99 others); Sat, 28 Oct 2023 04:06:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233238AbjJ1IGd (ORCPT ); Sat, 28 Oct 2023 04:06:33 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24F4F128; Sat, 28 Oct 2023 01:06:30 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9be1ee3dc86so392667466b.1; Sat, 28 Oct 2023 01:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698480388; x=1699085188; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dSAFbD2zXqeXCz/qQ3/GP/6mFeOJu9TLTBJ5xkKSIes=; b=bJNxDmzasQsZzjeydC4z0HAHqfNiP1CLFmLPIQwDMd0xM2O/OaQd89ovt5o3QLmrdB 5mwPSF8iqaRuP/HNgYMLJjKpjs0/Xxc+e54esyif2xoFYEfRRPEzq5A4r5JosOfakYIK GyVDvdn2qbXa8QiRC9jGvHB6BXFrXepLJpCx97RvajoYE1Kxwd494lF8w5MML4Jb8ax/ Hy7rFmklcq6lFfM3Q94BgyO+OTE1D2JL5rVO4iqtpd/tIU459sdqBlZRTKGk5GWfJN8t kBMTN+U3bk1DEBl0qYMDbPwXxTHiDWMplERoNILJljkgaN2Oc8m04vPxdj0mqH0R8B/r pkyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698480388; x=1699085188; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dSAFbD2zXqeXCz/qQ3/GP/6mFeOJu9TLTBJ5xkKSIes=; b=pXPGiz8jIS/+ZEQoVIRJ+d3rv+fTmOMRNCGSRq8yqFNd7o8gqbQ8ncYazbeBYtLv2O haq3T8ScQ8hGZDSQ6HY2RtWtvHjSlgEPawY/uI7fykXH4hde7yhQ/p61anthCRR09YV8 OdudggrwyISO9uwZQpWcYAcF1nNcl+wH3szvv5VeNU6MXZcKGmI+fQwL/1woD79YRB8t WQZaqTm9+uOnMqTaO9MZn07j/DgeraXyixiEs2AeZQojglxuqHZwhQcpHe8WS6paYQaV BZQrmsw/ArhVuCof/sCPs+O6w1tYa40YCzAhX44Epo/u73toCmuhrwhnrO+7nmTfKjIY GpFg== X-Gm-Message-State: AOJu0Ywtx9Gx/Huf4FSDpShtmaLVS+DNK0mkmKSTLHMk8yejF1EP2+Nd 4st8hyL58e7Qm9bXoTPA4M+ArBhRYg8= X-Received: by 2002:a17:906:fd8b:b0:9c6:4dec:b1f0 with SMTP id xa11-20020a170906fd8b00b009c64decb1f0mr3916751ejb.74.1698480388282; Sat, 28 Oct 2023 01:06:28 -0700 (PDT) Received: from ?IPV6:2a01:c23:c119:9c00:b47c:4f5f:820f:2966? (dynamic-2a01-0c23-c119-9c00-b47c-4f5f-820f-2966.c23.pool.telefonica.de. [2a01:c23:c119:9c00:b47c:4f5f:820f:2966]) by smtp.googlemail.com with ESMTPSA id i22-20020a1709064ed600b0099ce025f8ccsm2412363ejv.186.2023.10.28.01.06.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 28 Oct 2023 01:06:27 -0700 (PDT) Message-ID: Date: Sat, 28 Oct 2023 10:06:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] net: r8169: Disable multicast filter for RTL_GIGA_MAC_VER_46 Content-Language: en-US To: Patrick Thompson , netdev@vger.kernel.org Cc: Chun-Hao Lin , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, nic_swsd@realtek.com, Jeffery Miller References: <20231027213059.3550747-1-ptf@google.com> From: He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ma36S8Jk456k2n1id7M0LQ+eqstmp6Y+UB+pt9NX6t0Slw1NCdYTW gJezWTVKF7pmTdXszXGxlc9kTrVUz04PqPjnYbv5UWuDd2eyzGjrrFOsJEi8OK2d2j4FfF++ AzOMdW09JVqejQARAQABwsF2BBgBCAAgFiEEbF+pj/I7JePKMl6Fct6KD1TwOgwFAl/0ZFUC GwwACgkQct6KD1TwOgxUfg//eAoYc0Vm4NrxymfcY30UjHVD0LgSvU8kUmXxil3qhFPS7KA+ y7tgcKLHOkZkXMX5MLFcS9+SmrAjSBBV8omKoHNo+kfFx/dUAtz0lot8wNGmWb+NcHeKM1eb nwUMOEa1uDdfZeKef/U/2uHBceY7Gc6zPZPWgXghEyQMTH2UhLgeam8yglyO+A6RXCh+s6ak Wje7Vo1wGK4eYxp6pwMPJXLMsI0ii/2k3YPEJPv+yJf90MbYyQSbkTwZhrsokjQEaIfjrIk3 rQRjTve/J62WIO28IbY/mENuGgWehRlTAbhC4BLTZ5uYS0YMQCR7v9UGMWdNWXFyrOB6PjSu Trn9MsPoUc8qI72mVpxEXQDLlrd2ijEWm7Nrf52YMD7hL6rXXuis7R6zY8WnnBhW0uCfhajx q+KuARXC0sDLztcjaS3ayXonpoCPZep2Bd5xqE4Ln8/COCslP7E92W1uf1EcdXXIrx1acg21 H/0Z53okMykVs3a8tECPHIxnre2UxKdTbCEkjkR4V6JyplTS47oWMw3zyI7zkaadfzVFBxk2 lo/Tny+FX1Azea3Ce7oOnRUEZtWSsUidtIjmL8YUQFZYm+JUIgfRmSpMFq8JP4VH43GXpB/S OCrl+/xujzvoUBFV/cHKjEQYBxo+MaiQa1U54ykM2W4DnHb1UiEf5xDkFd4= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Sat, 28 Oct 2023 01:06:55 -0700 (PDT) On 27.10.2023 23:50, Patrick Thompson wrote: > Hello Heiner, > > I haven't heard back from realtek about the possibility that this > affects other MAC_VERs. Do you think it's acceptable to merge this > patch for now and if/when we hear back from realtek I can adjust the > function again? > Fine with me. Would be nice if mc filtering could be switched on/off via ethtool, because now we have to disable mc filtering for all the unaffected users too. > Thank you, > Patrick > Heiner > On Fri, Oct 27, 2023 at 5:31 PM Patrick Thompson wrote: >> >> 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 >>