Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp469887rdb; Thu, 19 Oct 2023 09:21:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHWfban0GGtZrePN+McUOx6pRGIZHrri0EZ09I9B0XQzxS13rFDn7Sr5KLmxRhkMXNm5Kc X-Received: by 2002:a05:6a21:66c7:b0:15e:ab6:6e24 with SMTP id ze7-20020a056a2166c700b0015e0ab66e24mr2413436pzb.27.1697732487433; Thu, 19 Oct 2023 09:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697732487; cv=none; d=google.com; s=arc-20160816; b=TDxDFfCMPouO9F7QcO9C2IE4e3ECEqYRi3KsQsjJwCx+v7jLzllh9BkBk2oZd3SUSh yKR/HZOvwZE+CXAfYDGgkQoDyvIirpKj4c73Zxu2n4TEkgeDLtvYoQyc344UCsGFovGZ XNg2C31qtiS027RfcOP5mJ/8b9Y5UTElhQ3Pc8nh1JFTOC4tN0Cs73k3O6wBb5CgpCuA NRmj8rDBVcTWy5cXshx5zdBji3K+ujSRw5HCg2bW7lqztd1T4OpbfzlwE9KL2nalBrmS v9IwkwEIAnSMygY1r4s5pc2Y711t0QfXBBk5+4jBnkgzdv54i/e+MkHJ6Zb2yYAeEIhw D/jg== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=B9Bop2WmUVBXPTMnv1oP6kyprFa3JCCsq3aX8cDNu2o=; fh=6WXcvwR2fJbcv1Qa3gCr4nfbkYpYMlc+P3ZdXFg+i1I=; b=BfZVo+XyZFFpNo0TbrYmFGVGz0LDyx0dm8IC5Eas2VPY5wiol6krAexLvB+ERNL0Uc PCT4g7nZSy2vlvEIrT0xQ3eVYuevyz+Tye73uFSaG8E4jh7nwLxnK2CHi7M7YhtwfABT ZUZ9/iCB1reYs2k3/IQxJ9YVNloCGnbCI/LhB4z5jAVid62SWNgYPOT+0/iC56bEfA9k 3cVdn4AWxwvuFgZaHP6GEIfse/63Kcjax8wuM9z9IUsCjPtZv5+9BeRYRMTCCHQFpdXS 0rFpt+35xdX1ZdJryhBdRt2ZzGVWR4ZTw07NuvUGySgUBvx/rwBoZfuz6yeAGAcRklVB Ly5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AmgWcJ9Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s26-20020a63925a000000b00589876a1c18si4647284pgn.209.2023.10.19.09.21.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 09:21:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AmgWcJ9Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id A202280793F6; Thu, 19 Oct 2023 09:20:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232815AbjJSQUn (ORCPT + 99 others); Thu, 19 Oct 2023 12:20:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233262AbjJSQUl (ORCPT ); Thu, 19 Oct 2023 12:20:41 -0400 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 304B712F; Thu, 19 Oct 2023 09:20:38 -0700 (PDT) Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-352a3a95271so30464425ab.0; Thu, 19 Oct 2023 09:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697732437; x=1698337237; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=B9Bop2WmUVBXPTMnv1oP6kyprFa3JCCsq3aX8cDNu2o=; b=AmgWcJ9ZdCwyqQxwGZpMgziCA6TTN8MYKyRFmP6FlF9DErrtQq9BkDgaFWu5by7UI+ m6qf+tS1OdX30Yxz9fueZykhu98RN4F/NmuX4zhbKy8UNlqrv5Tbbv/QLBYt4mDKbw3H DCOViumuJkOScpXIZXPcZOT+EQej12neJLjdIlo8Tl5PdjS/RNU3pOrhwpr9N619AVBY GfwZ0rLrF3mZkfEy4BXD81UoSM8YU35HmxONMmZ1JCUlrLuDKqOG+yr+sAG+GkXvy4Pk rXxKzq4doEXE6IajmnvPBoaNId1Cd1zTExO+vn+EDM/CAZXbmHfyNwE5jJgZOgDAtNf0 yTiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697732437; x=1698337237; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B9Bop2WmUVBXPTMnv1oP6kyprFa3JCCsq3aX8cDNu2o=; b=aSP2WPowSTLlbxDJW3tCAYSclugQLpXbmv3ABpfipW88shwbGaumAHIush8gVzMwEI JRWaBm6SIduKebO4UMGDQHNRw1iyI3FDQxejQ6OVEfyZez8ajLfVhMmawfBUfXDM7+tR FiXg6YgwF5FU5Ftz9B2zbSD+j78vikVazotkcS/vRAY6kBmsnR4akMM54KE/3WHPxGb3 dlkVwk46pc6TKSnDKw1RfKo3pwF0ktlXNTY/tjxN0fnnDVjmjW5ekhoUpn26Ryvj/WW+ ezF4l8SZ2pFUdHgBBpi+dGzy3sO5sOFywFU01OfLSi96QfKESt1AXTTDH5srImY/WYmY KOiQ== X-Gm-Message-State: AOJu0Yw5jJtsmgjyi6YpAEq2gG2c7nCD+aJaD0gWGpFGLBFi8wCbbg97 7U5lEezDN3IbPpGzly5ueX90dc5sKbE= X-Received: by 2002:a05:6e02:1be2:b0:34f:525d:198 with SMTP id y2-20020a056e021be200b0034f525d0198mr3467718ilv.13.1697732437418; Thu, 19 Oct 2023 09:20:37 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id i7-20020a056a00004700b006862b2a6b0dsm5502748pfk.15.2023.10.19.09.20.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Oct 2023 09:20:36 -0700 (PDT) Message-ID: Date: Thu, 19 Oct 2023 09:20:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v1 1/1] ethtool: fix clearing of WoL flags Content-Language: en-US To: =?UTF-8?Q?K=C3=B6ry_Maincent?= , Michal Kubecek Cc: 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 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> From: Florian Fainelli In-Reply-To: <20231019152743.09b28ef4@kmaincent-XPS-13-7390> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 19 Oct 2023 09:20:55 -0700 (PDT) On 10/19/23 06:27, Köry Maincent wrote: > On Thu, 19 Oct 2023 12:50:48 +0200 > Michal Kubecek wrote: > >> On Thu, Oct 19, 2023 at 12:21:14PM +0200, Köry Maincent wrote: >>> On Thu, 19 Oct 2023 11:51:40 +0200 > Michal Kubecek >>> wrote: >>>> >>>> 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. This >>>> worked correctly before this commit because we were always updating >>>> a zero bitmap (since commit 6699170376ab ("ethtool: fix application 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 present in >>>> netlink nest) no longer works. >>> >>> 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. >> >> Something like the diff below (against current mainline) might do the >> trick but it's just an idea, not even build tested. > > Seems a good idea without adding too much complexity to the code. > Will try that and send it in next merge window. 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_mask bitset"). -- Florian