Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2723541ybl; Sun, 26 Jan 2020 09:14:21 -0800 (PST) X-Google-Smtp-Source: APXvYqzdHEdQIdfmeYrTDre4a7jVq1Q9huNGGDbUJt+D8MjcmH0QqvUg4Ely7Ggrqq2h4BU2dy2S X-Received: by 2002:aca:6144:: with SMTP id v65mr5379368oib.63.1580058860997; Sun, 26 Jan 2020 09:14:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580058860; cv=none; d=google.com; s=arc-20160816; b=RY6ylES4Bgs2+pN1C+WBPlKdSv9tTCqtoUf9x8Y6+4xJq8oiJwbUo7j15dHeRYQdUm TLcxHRsqbzB7kNWKhqxIQoGR73R3YKci2D6PhYR3uVGVQv3XaS2GhOcR4uSeeJ+c9lsH p28LUmROEAme/Y5bk2A53HktijSQxiK6lezY5yOG38vTv7bTIgU7IoJMS/5EP2ekKicu NDzVjXRlTIQYTJgt3FF1ndWXBBoN1LR3Hx66sgeqfqz8P98p2xafPiLSNsHgSmLDd7uQ 3uUFlMFj+Pe2J6u4Z3YMgNkHAFPqtij9DAsboqpe+pAxrtFXv0V28yFd/FOxS3OBWVJq CKFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=e2bKJMMem+y4dALu2KUl0oCZPPlTT8tzy7eNFu0BLk4=; b=Rjn3fmyAqrTPY07LBJuKKpxH+V3+j64IFQvuPnGVEB1XFHSGSVrmDInq8Qr6xU2zS0 kxSDzWQ4AOs3HoY/ps01l3Jv5LMscknQpZiq2UWYGZ4tSnFmAhG9fLrwCFzbK2LetFaV MA9BdB5NtgvbOiv7G4KXeOTSYfeFUKJ8XgMWnMZcN6eyr9PURq/1ZARjUVoRxTTqQq+5 qedFmTTB7qnD2f7nO301tYtRtrb9aEe/Npj6NcTashYWHeBKjFiKFoSpt8wGKNYfzFvg uG6kqccIQsflw1t7mYm30kEKghUKXgrXo+1oHhskbYgakr3aQIpGTspGzfAJ4xN+YzuH ijog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l25si5607865otn.69.2020.01.26.09.14.08; Sun, 26 Jan 2020 09:14:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727233AbgAZQuy (ORCPT + 99 others); Sun, 26 Jan 2020 11:50:54 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:43832 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725838AbgAZQux (ORCPT ); Sun, 26 Jan 2020 11:50:53 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 26A661C25AF; Sun, 26 Jan 2020 17:50:52 +0100 (CET) Date: Sun, 26 Jan 2020 17:50:51 +0100 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Jose Abreu , "David S. Miller" , Sasha Levin Subject: Re: [PATCH 4.19 587/639] net: stmmac: gmac4+: Not all Unicast addresses may be available Message-ID: <20200126165051.GC19082@duo.ucw.cz> References: <20200124093047.008739095@linuxfoundation.org> <20200124093202.992850194@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3siQDZowHQqNOShm" Content-Disposition: inline In-Reply-To: <20200124093202.992850194@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3siQDZowHQqNOShm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Some setups may not have all Unicast addresses filters available. Check > the number of available filters before trying to setup it. =2E.. > @@ -443,7 +443,7 @@ static void dwmac4_set_filter(struct mac_device_info = *hw, > } > =20 > /* Handle multiple unicast addresses */ > - if (netdev_uc_count(dev) > GMAC_MAX_PERFECT_ADDRESSES) { > + if (netdev_uc_count(dev) > hw->unicast_filter_entries) { > /* Switch to promiscuous mode if more than 128 addrs > * are required > */ Do I understand correctly that 128 in the comment is no longer accurate? Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --3siQDZowHQqNOShm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXi3DawAKCRAw5/Bqldv6 8qd5AJ42RQ/LLZFhq53sJOEdpGApoFdcEgCgvbFPsqXIs5KT2TgekSFio4UIP/c= =d7yK -----END PGP SIGNATURE----- --3siQDZowHQqNOShm--