From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 714B7C7EE43 for ; Mon, 12 Jun 2023 22:29:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237076AbjFLW3V (ORCPT ); Mon, 12 Jun 2023 18:29:21 -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> 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