public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Heiner Kallweit <hkallweit1@gmail.com>
To: Patrick Thompson <ptf@google.com>, netdev@vger.kernel.org
Cc: Chun-Hao Lin <hau@realtek.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	linux-kernel@vger.kernel.org, nic_swsd@realtek.com
Subject: Re: [PATCH v2] net: r8169: Disable multicast filter for RTL_GIGA_MAC_VER_46
Date: Sat, 28 Oct 2023 10:38:43 +0200	[thread overview]
Message-ID: <415e0355-7d71-4b82-b4fc-37dad22486a9@gmail.com> (raw)
In-Reply-To: <20231027213059.3550747-1-ptf@google.com>

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 <ptf@google.com>
> ---
> 
> 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;


  parent reply	other threads:[~2023-10-28  8:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-27 21:30 [PATCH v2] net: r8169: Disable multicast filter for RTL_GIGA_MAC_VER_46 Patrick Thompson
2023-10-27 21:50 ` Patrick Thompson
2023-10-28  8:06   ` Heiner Kallweit
2023-10-28  8:38 ` Heiner Kallweit [this message]
2023-10-30 16:52   ` Patrick Thompson
2023-10-30 19:38     ` Heiner Kallweit
2023-10-30 20:35       ` Patrick Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=415e0355-7d71-4b82-b4fc-37dad22486a9@gmail.com \
    --to=hkallweit1@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hau@realtek.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nic_swsd@realtek.com \
    --cc=pabeni@redhat.com \
    --cc=ptf@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox