Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp27050rdh; Mon, 30 Oct 2023 12:38:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGO7g7J0CCi4rY9idyTXxZZV6Si2bTxQrM/btJzes1Cz6JhcRPan0I3l4Tqz0ScAjypupWL X-Received: by 2002:a05:6a00:4a0e:b0:68f:c2f7:cef0 with SMTP id do14-20020a056a004a0e00b0068fc2f7cef0mr594429pfb.4.1698694726605; Mon, 30 Oct 2023 12:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698694726; cv=none; d=google.com; s=arc-20160816; b=suuhPrLgAqkaumwiprDXyF/TOW8SEfLlksxk9izd1BjF9bbgzQWlZDtzNYFjoecaF/ dQP72BcPzfuSzbKiFhN4wiRsnsk9r7GeppJIK/RJ2gW6yfBceYXH2Z4kG9nKC9Ngk6DK 8ZFybvRy8PMDuBTjrb9w92z97LM1frmPcRj5vM95XJEhurSE/A9sRDPA2Y3iHYPSuNQi Dxtr9ko+qu98Uz4YPT1oUSfgvTgTWZaHgKRHCINuvnvutIUyctoq3LxydXqTzOXvmtxv 2PdVBPA65BiDcP1Oc2Rtpc4jADEoDnkPm4crfh61Q0bS1C1ufgcI4n8uEH68b/Nhk7ZS IZqw== 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:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=ZDlCveOzfrtYuSzhJicUknBESAxGt/aXJl0pyL4TPSI=; fh=VohdDzgiznYDWwUFfWBPELaKR4AYuNvZ6GLDawHTM2s=; b=vT8Kxc2ZAGKxf4IXiy5l28Ibdoi/IcrUlUsmm06IaapeJ/zYsqJv5OsILq2C2aLWbZ 2TyhYAPgJTQGs7zk981dnVWqh/B7KZFXQcIe3IUqd2GkgJN2q/6GzaYzt5hZmY+Lg5VI 5Pi/jAiHE9a3ner9j2Y0uRqHrGo0O7L4RiXz2SEpDszt32zTJaP1pM98M8BwrV9WClbq JPc/I1emK1BSyZ5IF1r3gUrkVr8orO35m839ayen/6E9GHoNmpiy9ivHmt2+CU1A7hjx iFq7qeDR02uKDxuwqMz5BgazDaVHNwRGWAIFeBt8sv0VtisMK7QY0hcSJ2cQsOeyIu8b 8kZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KptD38l2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id i18-20020aa796f2000000b0068fd7cb5864si5362309pfq.263.2023.10.30.12.38.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 12:38:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KptD38l2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 21F328047563; Mon, 30 Oct 2023 12:38:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229905AbjJ3Tig (ORCPT + 99 others); Mon, 30 Oct 2023 15:38:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbjJ3Tif (ORCPT ); Mon, 30 Oct 2023 15:38:35 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E15DDDB; Mon, 30 Oct 2023 12:38:32 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-533d31a8523so7482019a12.1; Mon, 30 Oct 2023 12:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698694711; x=1699299511; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=ZDlCveOzfrtYuSzhJicUknBESAxGt/aXJl0pyL4TPSI=; b=KptD38l25NleTb5xbOtu1ng1sR4bJxOjBk21ppubGPVkLRsFFWRQtZ6lNSXc0KYl/v kAcETberWTCVlAa0uP/JRPZlrMf7RjSqLybWo7suLJcRRDkC+pS/EItWtzznlYXrylel sKSm9Kr/ZXvj9ug2SKoC8wypXWQ6Pq4wTpiihNa1Ssgj8ZG4mDwXvIDpBU8TzS00kHQF 415wbIAELwkievDNrg1XoJ2S7Huwq0Ta9MqKNWPCOk8s8y9ibI791QpPYD51gbnU1YnS Ykbw79h83no/5Zjg3jWY+ZH1E0j8kfHwoVMDTkj9qwBYIlQ5311M8VC2Qn7V9v4Z6+Gt 85Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698694711; x=1699299511; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZDlCveOzfrtYuSzhJicUknBESAxGt/aXJl0pyL4TPSI=; b=FtteJsV9TCxqzKWujTB1ALTwaD7fHlGDbs8JlegoGzpyEl9m3mYGsHMjZJ9Wg7qgTq Z/o2mr/ZTuEBshVNnylIA4vgHDjBCvov7Y76mNkcRKrbF4AUDyNcsVDLz6ZgMzVUZ/Qa RGw66yCw1mYfdRTfvxqt2VSrR/zIxTsSfwod+oginvrkcQkrpiqli2k+Hs6HOKvsSINE tj8dKK6/JB5iwoouN+2CYOTIzkVkx+fWcVYNZrMwmzKxI5OP3JTQGRtF6KHcFC6rZ4Zx MwEfMs0WE3PcuPMtrjYQA/FpuHhEfFJJqjBKEMqZTHJxf4Fx+/5QtWt3WgAY2A/JE4/z +zzA== X-Gm-Message-State: AOJu0YyPNhivr/1WnP9iyI0PKXV2avfyTK+j5nwbJdjrGHKQa+tUdptx qQjmEOoIpdkb7d/rfjA/WOs= X-Received: by 2002:a50:fb82:0:b0:540:346c:7b2f with SMTP id e2-20020a50fb82000000b00540346c7b2fmr7520057edq.40.1698694710923; Mon, 30 Oct 2023 12:38:30 -0700 (PDT) Received: from ?IPV6:2a01:c23:bc31:8900:c490:292e:2164:5dcb? (dynamic-2a01-0c23-bc31-8900-c490-292e-2164-5dcb.c23.pool.telefonica.de. [2a01:c23:bc31:8900:c490:292e:2164:5dcb]) by smtp.googlemail.com with ESMTPSA id a12-20020aa7d74c000000b0053dd8898f75sm6467989eds.81.2023.10.30.12.38.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Oct 2023 12:38:30 -0700 (PDT) Message-ID: Date: Mon, 30 Oct 2023 20:38:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] net: r8169: Disable multicast filter for RTL_GIGA_MAC_VER_46 To: Patrick Thompson 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 References: <20231027213059.3550747-1-ptf@google.com> <415e0355-7d71-4b82-b4fc-37dad22486a9@gmail.com> Content-Language: en-US From: Heiner Kallweit Autocrypt: addr=hkallweit1@gmail.com; keydata= xsFNBF/0ZFUBEAC0eZyktSE7ZNO1SFXL6cQ4i4g6Ah3mOUIXSB4pCY5kQ6OLKHh0FlOD5/5/ sY7IoIouzOjyFdFPnz4Bl3927ClT567hUJJ+SNaFEiJ9vadI6vZm2gcY4ExdIevYHWe1msJF MVE4yNwdS+UsPeCF/6CQQTzHc+n7DomE7fjJD5J1hOJjqz2XWe71fTvYXzxCFLwXXbBiqDC9 dNqOe5odPsa4TsWZ09T33g5n2nzTJs4Zw8fCy8rLqix/raVsqr8fw5qM66MVtdmEljFaJ9N8 /W56qGCp+H8Igk/F7CjlbWXiOlKHA25mPTmbVp7VlFsvsmMokr/imQr+0nXtmvYVaKEUwY2g 86IU6RAOuA8E0J5bD/BeyZdMyVEtX1kT404UJZekFytJZrDZetwxM/cAH+1fMx4z751WJmxQ J7mIXSPuDfeJhRDt9sGM6aRVfXbZt+wBogxyXepmnlv9K4A13z9DVLdKLrYUiu9/5QEl6fgI kPaXlAZmJsQfoKbmPqCHVRYj1lpQtDM/2/BO6gHASflWUHzwmBVZbS/XRs64uJO8CB3+V3fa cIivllReueGCMsHh6/8wgPAyopXOWOxbLsZ291fmZqIR0L5Y6b2HvdFN1Xhc+YrQ8TKK+Z4R mJRDh0wNQ8Gm89g92/YkHji4jIWlp2fwzCcx5+lZCQ1XdqAiHQARAQABzSZIZWluZXIgS2Fs bHdlaXQgPGhrYWxsd2VpdDFAZ21haWwuY29tPsLBjgQTAQgAOBYhBGxfqY/yOyXjyjJehXLe ig9U8DoMBQJf9GRVAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEHLeig9U8DoMSycQ AJbfg8HZEK0ljV4M8nvdaiNixWAufrcZ+SD8zhbxl8GispK4F3Yo+20Y3UoZ7FcIidJWUUJL axAOkpI/70YNhlqAPMsuudlAieeYZKjIv1WV5uc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ugy0rTRkVggHvt3/7flFHlGVGpBHxFUwb /a4UjJBPtIwa4tWR8B1Ma36S8Jk456k2n1id7M0LQ+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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 12:38:44 -0700 (PDT) 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 AM 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 |= 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; >>