Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp53621rdh; Mon, 30 Oct 2023 13:35:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH87gUNV/0broXdM07zQLJRsR6rjqOjsL1KRJ5i1foiwYdLhG2HTBEEgQrvIG7r4P4fEOmv X-Received: by 2002:a05:6359:2c88:b0:168:e7da:30ad with SMTP id qw8-20020a0563592c8800b00168e7da30admr9245477rwb.10.1698698150534; Mon, 30 Oct 2023 13:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698698150; cv=none; d=google.com; s=arc-20160816; b=w52wyNscyRyCh1NUqoSOXIV0LvwkrB/3K6mylrIv/lcedbS7uZSxzqAnikx/fqdwMS vlfFzeGd6EDzqOey9JbIYBU/WMnlQKCLVDhBAxRZQj9IifjzdOu8SSFKAmuXo0Omk5mj NXy1XYjo4NKSoG9tJK4ZY+8ONooEkajFVpr64KUif15fHAxANXBLS88mt6e8BO2iaRX6 KUVE+PIFqGkwmzfhSepf6elBXM1rzFWZDSxAgMBeQKArEu+kFiEMbqGGhqD9D8yX67qj w7jfBbQZtClKz/BJgqUnyMDdreqmprVF5dZP1Bp7vmizTiUDYTOqBqdxRKILlnPTMFNX 8qQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4vFDjtAEsjttTI22sc8G5a8nAtIAx3Cy/lcAcpUigTY=; fh=zHLcHIfUUsQQR0eyCecaHtiUaFVy6dmFGWChOEgfS7E=; b=YN/CiUHIskjzwg9cNEWs74HHEmN46rn4YurT6OFi20iEimDtfHo6lq73j1rj7hV1gZ 7UPx6JHs/IFcab8hzXWJS3y3h+KUZ9x0HDyx96cPVChNtLNNyh02C1oksH5TKZgjQreb PPfTD5BcS6EimWrKpYrWsn9nQrZ9yat0UcTBNBnC8yz94Q/FWqZP4BEX9OpVR6bxRQWa a93y2yIW8JJwypn4j5YFtnLP2OG/IPONMlsviXv+j80OKE+5GySu9fhG8C4d6zoD6Kiu M4IP9E5trxxKXkjw3PiaAEqvuwZ9eI4VCMUX47n65gBWj0cFmFP/MbncESBhyZ+tuav+ 8NSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SU8CnUDU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s17-20020a656911000000b005ab3f1980f3si5437082pgq.68.2023.10.30.13.35.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 13:35:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SU8CnUDU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 161738065EDB; Mon, 30 Oct 2023 13:35:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230010AbjJ3Uff (ORCPT + 99 others); Mon, 30 Oct 2023 16:35:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229763AbjJ3Ufe (ORCPT ); Mon, 30 Oct 2023 16:35:34 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28CA2AB for ; Mon, 30 Oct 2023 13:35:32 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-53eeb28e8e5so413a12.1 for ; Mon, 30 Oct 2023 13:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698698130; x=1699302930; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4vFDjtAEsjttTI22sc8G5a8nAtIAx3Cy/lcAcpUigTY=; b=SU8CnUDUyoZlJpXvqMJkWC+vPGTkTDyBMerx/C/B4IWlvmtpGHb5yLQ5IsEG4IZeoA k8H0fggV7DvD5UwkM0cc1EcRY38tLsenUJSwZ4QNStbyUH8Q/xpq++su6yxSN1f8Li4y HF/F6yoWX9mF/CY9DqkGQ1Lawz9547uCEMrbul71fXxGorqOgQC8TlVrfx8fdQHVi7GS HpuIAkNrOIHLvMRSRDfkJgMCFq73KWgc4voaBZSMxkkQje81nKw4S8xUVcy8Sg9UUDeG 68rmAkod+JNp3nce/7hCgaXY8eoDtbV7PQ7AJfaWz7hTKMLg6LmxnPQWiJJ5eXtlhnGZ 5y6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698698130; x=1699302930; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4vFDjtAEsjttTI22sc8G5a8nAtIAx3Cy/lcAcpUigTY=; b=dgCeF3MZ4zQ6vdhb8ekuPQNXicY4jZuNmdV+rqIjYjzwbHH1M02BvXfsTP3EBwra0m ZImoxZ2/8z6KIBuk7EsW3Ob//qWuf+xow5QEWQ8HUudsOIdfeUjTiFI72Go2n24/+wFW HffcJen7rXkZQLQsCE647jXO3R570WoQiDXBCyWJ5QMmjJWpxlrTMJGZaSjceRgSdTz+ 2/MHgp3DzP2fDzROOOMfcBpWrCBkbZjQVhuIbRhfKE8yPNQgUCT9QlFklsYLihnCYi89 ecJ+VPMTrNMvUIoEc1AnnjwuVpAjNcLt8yRX2bWHp0kWGYV+pjTZejTSYXHme6EB7w/w p3cQ== X-Gm-Message-State: AOJu0YzhHDLjp62MMFsfvrx4nV5PopMlvVStKf9KX+hCCDFmrq/3cVDS O9hqrGP9r9ecB4C/Dy/7sVhw59W1qgFvj41K8rrJXg== X-Received: by 2002:a05:6402:d69:b0:542:d79b:9529 with SMTP id ec41-20020a0564020d6900b00542d79b9529mr8777edb.7.1698698130518; Mon, 30 Oct 2023 13:35:30 -0700 (PDT) MIME-Version: 1.0 References: <20231027213059.3550747-1-ptf@google.com> <415e0355-7d71-4b82-b4fc-37dad22486a9@gmail.com> In-Reply-To: From: Patrick Thompson Date: Mon, 30 Oct 2023 16:35:19 -0400 Message-ID: Subject: Re: [PATCH v2] net: r8169: Disable multicast filter for RTL_GIGA_MAC_VER_46 To: Heiner Kallweit Cc: netdev@vger.kernel.org, Chun-Hao Lin , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, nic_swsd@realtek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 30 Oct 2023 13:35:48 -0700 (PDT) The packet being filtered out by the multicast filter has a unicast destination address matching the device, the frame only contains the eapol protocol and does not have an IPv4 address associated with it. I will send out a v3 patch with VER_48 included. Sorry, I sent a non-plaintext email previously so I am resending it. On Mon, Oct 30, 2023 at 3:38=E2=80=AFPM Heiner Kallweit wrote: > > On 30.10.2023 17:52, Patrick Thompson wrote: > > I wouldn't trust the mc filter, the eap packet being filtered is not a > > multicast packet so I wonder what else could be erroneously filtered. > > I do agree that it would be nice to be able to override it for testing > > purposes. > > > > I'm not an EAP(OL) expert, just read that EAPOL can use unicast, > broadcast , and ethernet multicast (01:80:C2:00:00:03). > What's that target MAC and IP4 address of the packet being > filtered out in your case? > > > Would you like me to add MAC_VER_48 to the patch? I would not be able > > to test and confirm that it affects it in the same way I have for > > VER_46. > > > Yes, VER_48 should be included because it has the same MAC as VER_46. > > > It is unfortunate that the naming doesn't quite line up. > > > > On Sat, Oct 28, 2023 at 4:38=E2=80=AFAM Heiner Kallweit wrote: > >> > >> On 27.10.2023 23:30, 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. > >>> > >> MAC_VER_48 (RTL8107E) has the same MAC, just a different PHY. > >> So I would expect that the same quirk is needed for MAC_VER_48. > >> > >> MAC_VER_xx is a little misleading, actually it should be NIC_VER_xx > >> > >>> 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 |=3D AcceptAllPhys; > >>> } else if (netdev_mc_count(dev) > MC_FILTER_LIMIT || > >>> dev->flags & IFF_ALLMULTI || > >>> - tp->mac_version =3D=3D RTL_GIGA_MAC_VER_35) { > >>> + tp->mac_version =3D=3D RTL_GIGA_MAC_VER_35 || > >>> + tp->mac_version =3D=3D RTL_GIGA_MAC_VER_46) { > >>> /* accept all multicasts */ > >>> } else if (netdev_mc_empty(dev)) { > >>> rx_mode &=3D ~AcceptMulticast; > >> >