Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp485073rdb; Thu, 19 Oct 2023 09:46:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+YlDIXE++weuLIxiuHHoE5eCmts2WX/yqPYjh7BDRTPu1Tb4iZjNY4bI/yfoWx0T59BV1 X-Received: by 2002:a05:6a21:35c4:b0:14b:8023:33c8 with SMTP id ba4-20020a056a2135c400b0014b802333c8mr2639030pzc.2.1697733975626; Thu, 19 Oct 2023 09:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697733975; cv=none; d=google.com; s=arc-20160816; b=lDVLy/Wdgr0mWhO/7Qf2evayQGiyqQaAP8uA37d4XlNm6e3vJeQTXEotfTIoGuJeUP KfKPATpvEsftVTT7WvBwIJ+IB67KkupA3Sdkb3DygaX3k7pxOS2xZD+gduGqAVtB2ljJ Rk3F4gMjZI0Z2h7JK0ZyD/lQ/v1AsfkSsyaz8zKqvQiIuOLzxtakd/NNmrioIV7Ec4Fr MTfICMa4XVv+QHrLr6KCncF3vlazJL5wRUF6skDM0nrbgJnpRQGCfJ6U8vq4vGfy22pV BWG6fnvel1/4VSapXBjZthCeZ+bjb+UQ26RsQxpPiUV5LuM79kEio6GIlEptKLLX5tbu YdmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ZHrg0+rclK+oLoMqaoD7ZLfJ+stxJ/d88HTZFpnNH/I=; fh=BSk1YbPBjy6+AUz9FY7bqb7JEyGQTSYY3IdNfxViN1Y=; b=Ro1BYOs8HkhS6qIWvKM9aOvRFSqLD4jaVrTlIe5y9oTrWcmOBUEFLtquuqGiB9EwBW YnTpRptbGlnm8y4FMl1z4Qqn6WIPeEB+/7d3+ixr6CRKuQpt5IKA07J7xFKiJ/eTFhtv UzPVkLOxHDQxmGUc7u3ba8d59Q12pfFPylBshv9zAMTMNwq6lZL//qo0qO4JOCj1Zsx/ KjtWx2Oy8tMytW/ZSGaXRM+mImTgWEkDYWPv4eEm44Vr9AD9gy5Ae5T7IWzZz1ElR/b+ xQ/v2OQwA+xGZSSgcgSGAFVicjiYI6Vc1sIKk3w+HPHo3dN7OrHszw0b/2l7nW0zEBNl elag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id n189-20020a6327c6000000b00565ec2a1e2asi4862609pgn.760.2023.10.19.09.46.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 09:46:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1426681C0C11; Thu, 19 Oct 2023 09:46:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235461AbjJSQqC (ORCPT + 99 others); Thu, 19 Oct 2023 12:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231601AbjJSQp7 (ORCPT ); Thu, 19 Oct 2023 12:45:59 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EDC711B; Thu, 19 Oct 2023 09:45:57 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 5A9611FD76; Thu, 19 Oct 2023 16:45:55 +0000 (UTC) Received: from lion.mk-sys.cz (unknown [10.163.44.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id EB5502C5BB; Thu, 19 Oct 2023 16:45:54 +0000 (UTC) Received: by lion.mk-sys.cz (Postfix, from userid 1000) id 0C5632016B; Thu, 19 Oct 2023 18:45:53 +0200 (CEST) Date: Thu, 19 Oct 2023 18:45:53 +0200 From: Michal Kubecek To: Florian Fainelli Cc: =?utf-8?B?S8O2cnk=?= Maincent , Oleksij Rempel , "David S. Miller" , Andrew Lunn , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net v1 1/1] ethtool: fix clearing of WoL flags Message-ID: <20231019164553.zcc6d2vbxzw4m4c2@lion.mk-sys.cz> References: <20231019070904.521718-1-o.rempel@pengutronix.de> <20231019090510.bbcmh7stzqqgchdd@lion.mk-sys.cz> <20231019095140.l6fffnszraeb6iiw@lion.mk-sys.cz> <20231019122114.5b4a13a9@kmaincent-XPS-13-7390> <20231019105048.l64jp2nd46fxjewt@lion.mk-sys.cz> <20231019152743.09b28ef4@kmaincent-XPS-13-7390> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="esat6ae76hdj6xm2" Content-Disposition: inline In-Reply-To: X-Spam-Level: Authentication-Results: smtp-out2.suse.de; dkim=none; dmarc=none; spf=softfail (smtp-out2.suse.de: 149.44.160.134 is neither permitted nor denied by domain of mkubecek@suse.cz) smtp.mailfrom=mkubecek@suse.cz X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [-3.11 / 50.00]; ARC_NA(0.00)[]; BAYES_HAM(-3.00)[100.00%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.20)[suse.cz]; RWL_MAILSPIKE_GOOD(0.00)[149.44.160.134:from]; R_SPF_SOFTFAIL(0.60)[~all]; NEURAL_HAM_LONG(-3.00)[-1.000]; VIOLATED_DIRECT_SPF(3.50)[]; MX_GOOD(-0.01)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWELVE(0.00)[12]; SIGNED_PGP(-2.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.20)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_CC(0.00)[bootlin.com,pengutronix.de,davemloft.net,lunn.ch,google.com,kernel.org,redhat.com,gmail.com,vger.kernel.org]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Score: -3.11 X-Rspamd-Queue-Id: 5A9611FD76 X-Spam-Status: No, score=-0.8 required=5.0 tests=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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 19 Oct 2023 09:46:13 -0700 (PDT) --esat6ae76hdj6xm2 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 19, 2023 at 09:20:31AM -0700, Florian Fainelli wrote: > On 10/19/23 06:27, K=F6ry Maincent wrote: > > On Thu, 19 Oct 2023 12:50:48 +0200 > > Michal Kubecek wrote: > >=20 > > > On Thu, Oct 19, 2023 at 12:21:14PM +0200, K=F6ry Maincent wrote: > > > > On Thu, 19 Oct 2023 11:51:40 +0200 > Michal Kubecek > > > > wrote: > > > > >=20 > > > > > The issue was indeed introduced by commit 108a36d07c01 ("ethtool:= Fix > > > > > mod state of verbose no_mask bitset"). The problem is that a "no = mask" > > > > > verbose bitset only contains bit attributes for bits to be set. T= his > > > > > worked correctly before this commit because we were always updati= ng > > > > > a zero bitmap (since commit 6699170376ab ("ethtool: fix applicati= on of > > > > > verbose no_mask bitset"), that is) so that the rest was left zero > > > > > naturally. But now the 1->0 change (old_val is true, bit not pres= ent in > > > > > netlink nest) no longer works. > > > >=20 > > > > Doh I had not seen this issue! Thanks you for reporting it. > > > > I will send the revert then and will update the fix for next merge-= window. > > >=20 > > > Something like the diff below (against current mainline) might do the > > > trick but it's just an idea, not even build tested. > >=20 > > Seems a good idea without adding too much complexity to the code. > > Will try that and send it in next merge window. >=20 > Not sure what you mean by next merge window, we need a fix for right now,= or > we need to revert 6699170376ab ("ethtool: fix application of verbose no_m= ask > bitset"). Not that one, that's an old commit that was correct from functional point of view (the only problem was that it sometimes triggered a notification even when the value was not changed but that also happens in other places). A revert of commit 108a36d07c01 ("ethtool: Fix mod state of verbose no_mask bitset") is already in net tree as commit 524515020f25 ("Revert "ethtool: Fix mod state of verbose no_mask bitset""). Michal --esat6ae76hdj6xm2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEWN3j3bieVmp26mKO538sG/LRdpUFAmUxXT0ACgkQ538sG/LR dpXp0gf/bEEu3zB+iSkVxzX/WV0Xxd6xXvSYXcnqG9J80GINiRxy4sBkPLrRt/Ui VGEBESwLL8hgo60xyejU0GLthr2HQtgXiDxzh+cEisaJVx5wOu4CWkZgw/M/amvN UkEDGLn+NTYNUFuvlmE1MNX+OKK1gd/WeqW1ZskPW8ZwsmxMyGab1r9Q6ViienSZ 1tPwEGnm+pMu1LLDw4x21U18Bd05sHqz7LyUc6CwD3JVnYYjZKAyLwhy7MvgTYfC Dfl18XL+OwtfqoQYd2ChqLxsCOGjwJb9WlCBzOeTo8dgxGv9FRb3zIaJ8UVomMOH E77QtxWJtK0FzrJfgmS0XCgiT36mLA== =WWBP -----END PGP SIGNATURE----- --esat6ae76hdj6xm2--