From patchwork Tue Nov 21 08:09:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 13462573 X-Patchwork-Delegate: kuba@kernel.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VUi0etfW" Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7471011A for ; Tue, 21 Nov 2023 00:09:34 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9ae2cc4d17eso710615566b.1 for ; Tue, 21 Nov 2023 00:09:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700554173; x=1701158973; darn=vger.kernel.org; h=content-transfer-encoding:autocrypt:content-language:cc:to:subject :from:user-agent:mime-version:date:message-id:from:to:cc:subject :date:message-id:reply-to; bh=vsoxYjiNfdcSo/MWAD5bbyiw0S84ZQq7epnLAydulkI=; b=VUi0etfWIG2caeA82DzxX9EX4pt0Z4/OBxKO3Fyuohs1IQKnibQjbTq2FXcO5ikuv8 LniGeEYfbJA8t4vJzhQ/rdj7UT2n4eeqHnFrAgTMwSMPL2d2EwY6NLu8rzGS3jrTDOTK 8lasc56T6axFCBDRQa/saDd5N/CYvlv5YvpsReGen0hHvMhoOPAzsCw2jxR+jcpf0Xeb 11xb+8XDHu8x4zoUdfLsYTHVQBJEd+phVSh3QM2/if+UE+3RsH/9qwKiHVXyNwzjoB0/ spd1saqqXEzN76iqUCXQ4vYK3T9gSUtewTK1BvoMGniydrrmnCgZa1XdOze9VOtL04gw TzUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700554173; x=1701158973; h=content-transfer-encoding:autocrypt:content-language:cc:to:subject :from:user-agent:mime-version:date:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vsoxYjiNfdcSo/MWAD5bbyiw0S84ZQq7epnLAydulkI=; b=eXtwrajHwoj1kq/ySQV2Xt6t+SKCABNa/nGdQk6qG98CzfawR506p0mEJTu7M/obPg sgUzRWZhJw4Imdtwb7GfTOjEJRfdntReTe20+8q82Djfjiw/QmoDQmC7Vr3+6+ELhasx 2gSHEFDBdqNg6larPTszAWgCb6ReHihVLvt0i/ysiuXYL6YmFf1Xn9wXCvdt2ALhS+d4 fPI5EyWw1jvsYMTQ7k95gt/X3LeC3rzRkj72ku+0Q5WF/SMiVQyFHSIu2+J+pBSapU+z UA2724NXUHzvrqwiWKm+WJrJ0mIW26N7SzX42jqdDgVUPxvHajKC0gsBG8Bh/wsx5vS9 8y6w== X-Gm-Message-State: AOJu0YzUi9TjroK/g/GkjjboIvBey7jSm+Dk3+/0peoxptVimkI14pME 0kdE9iXJ/ubX7Zwd8V/Qm7k= X-Google-Smtp-Source: AGHT+IFC/W8B+X/ra2i7DDO4Wfvcq2ny2vzKEz2pmQJp5XPyMSDRFpGg+R35vbw/yhe7lIAZQo8lOQ== X-Received: by 2002:a17:907:3f8a:b0:9b8:b683:5837 with SMTP id hr10-20020a1709073f8a00b009b8b6835837mr7272621ejc.46.1700554172739; Tue, 21 Nov 2023 00:09:32 -0800 (PST) Received: from ?IPV6:2a01:c23:c095:ed00:c515:ddb0:4a9d:b087? (dynamic-2a01-0c23-c095-ed00-c515-ddb0-4a9d-b087.c23.pool.telefonica.de. [2a01:c23:c095:ed00:c515:ddb0:4a9d:b087]) by smtp.googlemail.com with ESMTPSA id b9-20020a170906194900b009c3828fec06sm4820364eje.81.2023.11.21.00.09.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Nov 2023 00:09:32 -0800 (PST) Message-ID: <373ee2fc-e78f-48e6-826e-e8de464848b7@gmail.com> Date: Tue, 21 Nov 2023 09:09:33 +0100 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Heiner Kallweit Subject: [PATCH RESEND net] Revert "net: r8169: Disable multicast filter for RTL8168H and RTL8107E" To: David Miller , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Realtek linux nic maintainers Cc: Patrick Thompson , "netdev@vger.kernel.org" Content-Language: en-US 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 ig9U8DoMBQJf9G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zvoUBFV/cHKjEQYBxo+MaiQa1U54ykM2W4DnHb1UiEf5xDkFd4= X-Patchwork-Delegate: kuba@kernel.org This reverts commit efa5f1311c4998e9e6317c52bc5ee93b3a0f36df. I couldn't reproduce the reported issue. What I did, based on a pcap packet log provided by the reporter: - Used same chip version (RTL8168h) - Set MAC address to the one used on the reporters system - Replayed the EAPOL unicast packet that, according to the reporter, was filtered out by the mc filter. The packet was properly received. Therefore the root cause of the reported issue seems to be somewhere else. Disabling mc filtering completely for the most common chip version is a quite big hammer. Therefore revert the change and wait for further analysis results from the reporter. Cc: stable@vger.kernel.org Signed-off-by: Heiner Kallweit --- drivers/net/ethernet/realtek/r8169_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index b9bb1d2f0237..295366a85c63 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -2599,9 +2599,7 @@ static void rtl_set_rx_mode(struct net_device *dev) rx_mode &= ~AcceptMulticast; } 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_46 || - tp->mac_version == RTL_GIGA_MAC_VER_48) { + tp->mac_version == RTL_GIGA_MAC_VER_35) { /* accept all multicasts */ } else if (netdev_mc_empty(dev)) { rx_mode &= ~AcceptMulticast;