Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp441682rwd; Mon, 12 Jun 2023 16:29:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4f17ghZ33Blqy6VxDPeYwotztZnucx6awP+J/iSal8YwrXCGSHkO1VVLDETjkBOmv1D09w X-Received: by 2002:a05:6402:1b04:b0:516:6779:263e with SMTP id by4-20020a0564021b0400b005166779263emr5624923edb.22.1686612567298; Mon, 12 Jun 2023 16:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686612567; cv=none; d=google.com; s=arc-20160816; b=FaYzbdTNSSvwHtWmKvAK62rzQJOEcyo0bYkUs9RtQcQ82IoLmaz1v2x93YA/um+yOV ikmy3L6OLlYB2KvTeNNF6xI4LH/kx2eWpT99xDA99dwJsc3nSHD9fpAJhNmDq3raMuOs VlAxPEnmonaCN2FqzUzjaEUA+1zRzMl7dIsMD9RzFiW6MDZoFHsxqtHJqnb87EXyCSIn yaLJqgSu9HDKov9lSboAKexTD6rzTixVF0Wnew2DFWbsCXZgxwfd6tq6YfZZSoXfa4sX UmsKlUSZyYuqQwH3RVwzO+OxAUQ0A49lKyGGgcnLqbOQBsY+fWPmIVRw79yC2EXsGIX/ bCkA== 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:dkim-signature; bh=y+r3yDX0gpvop5JCvib9GEMK945+knWKoOtG6I/6PDo=; b=lwH8nxJ2sJDY111gfzohxCX+PEhhTAdwbu8YVYYVd23l0lc+LHcXHVQ7PiTMM6kWbF RoDCs3fvu2x6MMstg6OdwpO9NwXZpra18DXov8Hluo4IFNW2qmdP2N3z1idnkzQMABFH 1v5/tNq4GcqAWuAWrxg4AOyjXvZQ/YV9IDeE+LyMie+h69FzNblE9slwF4OSaQBvTx8f 1EXi5Xfij5ZeIGlV7OkyXu4RRbrxYAiNGGqtREOGCpxZ3TRQJcWbN8mA3L9rpAwkU5SC Kj8emLgW/ANOcxsRp2sJClh2kO0XdnmN6KYDXi7C/4kGlOu6bIMG01e0LF1y+pjPIRvZ MB8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=EjoOvBxa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020aa7c30d000000b0051640beba70si6543321edq.559.2023.06.12.16.29.02; Mon, 12 Jun 2023 16:29:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=EjoOvBxa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238145AbjFLW3U (ORCPT + 99 others); Mon, 12 Jun 2023 18:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229982AbjFLW3T (ORCPT ); Mon, 12 Jun 2023 18:29:19 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A6BB170C; Mon, 12 Jun 2023 15:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=y+r3yDX0gpvop5JCvib9GEMK945+knWKoOtG6I/6PDo=; b=EjoOvBxawoJYWkc/fcKgriyiNV cIYEPdPC6Oxeq07YiRJx540EwIRgNHsCkUx76lklmGjvNHIO/4p06ZSiM4X8EXAgCJzmoEYj2DozZ mNGu7ih/QFL7HzaeMiZeX6P/DCi7+tCm2NPZ/0myxI8jJrhOJwB2uhh7Q2nPGystn5kM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q8q1r-00FePO-QT; Tue, 13 Jun 2023 00:28:51 +0200 Date: Tue, 13 Jun 2023 00:28:51 +0200 From: Andrew Lunn To: Justin Chen Cc: netdev@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Daniil Tatianin , Marco Bonelli , Vincent Mailhol , Maxim Korotkov , Gal Pressman , Jiri Pirko , Kuniyuki Iwashima , Simon Horman , Florian Fainelli , open list Subject: Re: [PATCH net-next] ethtool: ioctl: account for sopass diff in set_wol Message-ID: <9ec8eac3-6b2f-4455-89ef-2d5768b4cee9@lunn.ch> References: <1686605822-34544-1-git-send-email-justin.chen@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1686605822-34544-1-git-send-email-justin.chen@broadcom.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Mon, Jun 12, 2023 at 02:37:00PM -0700, Justin Chen wrote: > sopass won't be set if wolopt doesn't change. This means the following > will fail to set the correct sopass. > ethtool -s eth0 wol s sopass 11:22:33:44:55:66 > ethtool -s eth0 wol s sopass 22:44:55:66:77:88 > > Make sure we call into the driver layer set_wol if sopass is different. > > Fixes: 55b24334c0f2 ("ethtool: ioctl: improve error checking for set_wol") > Signed-off-by: Justin Chen > --- > > Note: Tagged "Fixes" patch has not hit rc yet. > > net/ethtool/ioctl.c | 3 ++- Hi Justin Does the netlink version get this correct? And just for my own curiosity, why are you so interested in the ioctl version, which is deprecated and not used by modern versions of ethtool? Andrew