Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp918933rwd; Thu, 8 Jun 2023 09:24:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XMbIp3UIkGcUTl4zezDsV6bSUnktkfHq80Gon/UVX1sF0xPlNleRW77xSAtQaXJncHUgy X-Received: by 2002:a17:90a:357:b0:252:7372:460c with SMTP id 23-20020a17090a035700b002527372460cmr3122254pjf.4.1686241456129; Thu, 08 Jun 2023 09:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686241456; cv=none; d=google.com; s=arc-20160816; b=hfnHMQJv9it5donuUKl6z+N4X4dTUrNokmNlqbg9xbw4yciatAD24jyZQecYEcr+M3 zPGVrAWo4a3VMECCMvcm/bB0oyZLG45r1Uu6w6zeUQTKoT1GakSeInUo7vJr0jtks4q6 v6LXAmuOnkq4dvtIa0AnYjS08/3kiSyS3/ryICK6Aafd8sxVSVeUIaQEw7CHN27MHbM4 o8MoFA4XGJNRebpNs0pV61Uc0BZ8E/gTonW9PLYXRwQQ3nTqK2ofswSV2Q/hExr34bPK nP/G0qAbTw8pRCKgeq5X/XSSMKIab//4nSaWR4a5Sk80KO69FUMZlqY2Qi2olrB9Fy4+ QM6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=EhV5iNmkzXdHZytrsn9rPFcGcXFMyOiy08BcDCsl4lg=; b=LmUhcjwJ4Z7ZWQQ2rYuq0iLIHp43kPyeuF/hn2SM1v+sEyLbHR2elNQodLAj1VbpFL zLVWjQanZa0O8But0513o0BE5/rToAAukNh6RGAt7CkcR5hyYAnefivZ/Z4Jk1P77vV4 wZFFJ4OJpTJQNVoVGbOB7cvFULmwfR3HR2gcJfYsRgofewF3ZzifMB4Gj1lTdmuqb0xQ zcJZ18r+JPSKOdikDHLUkC1fuPYGp3CSI3/ifK/Iy6MRqxRY/TSBqtrH8zNE5wLsEJrk +fTN+QumM1ILQNzj6jfnzo3ZOETHWuFCA1SYKVZfiyQa6HzIOr8E6fY4df7tt/VDR2Pn G9ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=ZyHw4eZW; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m6-20020a17090a7f8600b0024e12dc1e4csi2971345pjl.86.2023.06.08.09.24.01; Thu, 08 Jun 2023 09:24:15 -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=@broadcom.com header.s=google header.b=ZyHw4eZW; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229758AbjFHQCc (ORCPT + 99 others); Thu, 8 Jun 2023 12:02:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231945AbjFHQCH (ORCPT ); Thu, 8 Jun 2023 12:02:07 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19DA91BDF for ; Thu, 8 Jun 2023 09:01:52 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-75ec541f933so41155285a.0 for ; Thu, 08 Jun 2023 09:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1686240111; x=1688832111; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=EhV5iNmkzXdHZytrsn9rPFcGcXFMyOiy08BcDCsl4lg=; b=ZyHw4eZWNolOwH0vTZQD775vb1cXW2v3fXuEHU7Uc1pkAUOgNKGEpcHNacxJF/wmFv qutqydom6ioY0gz5nwyQvZMqAVN969prqx9cNgU3ZDytg8i7NimbMpJzFVeMuRf707ew LD/ulI33ca1uxRuvFbFuuP+qXafVDxyt+O6fg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686240111; x=1688832111; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=EhV5iNmkzXdHZytrsn9rPFcGcXFMyOiy08BcDCsl4lg=; b=JBmT4Ll3wAdgpvCFJJL++HY5C83OERK2pdVpsKamGZV7AHKE9Nam4im/UDIV0OcKIK eZYZGfohGIhkyHzhosCWi8xCIjBAOxdkN6vVjoaBWoi+G8MvIWzecftLzO6n+8I5KrKu jAIzNFCXOkcbD8tDJPU2dCkNdTr+w9KdfMzRdxZ57JWoyAM0yUGNLRH4AbCdIixTmeru lRS3Q2uH+LDRVWKX+lmuXAA2kIBZNTk/ZNPGN9cWu5fCxYx/oAj/twBrX4dLkBEAFRJZ r0MH1u+irb+drjhIviq0R5Emajpqk52YovrstAwyz5aqt+xt9EIwF5ncav/pUY+ra8UK icgw== X-Gm-Message-State: AC+VfDy6qHRbqwOF7YSK3yCR8nlx69l2j+vAPjb3L/WNFDEeUQ/dQW1l OqCe48RpuY3DaH73n0osI8vG2A== X-Received: by 2002:a05:620a:3acb:b0:75c:9b69:f4b9 with SMTP id ss11-20020a05620a3acb00b0075c9b69f4b9mr2888353qkn.6.1686240111144; Thu, 08 Jun 2023 09:01:51 -0700 (PDT) Received: from [192.168.1.3] (ip72-194-116-95.oc.oc.cox.net. [72.194.116.95]) by smtp.gmail.com with ESMTPSA id q22-20020ae9e416000000b007579ff44f0dsm401742qkc.124.2023.06.08.09.01.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jun 2023 09:01:49 -0700 (PDT) Message-ID: Date: Thu, 8 Jun 2023 09:01:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v2 net-next] ethtool: ioctl: improve error checking for set_wol To: Justin Chen , netdev@vger.kernel.org Cc: bcm-kernel-feedback-list@broadcom.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Daniil Tatianin , Ido Schimmel , Marco Bonelli , Wolfram Sang , Jiri Pirko , Gal Pressman , Vincent Mailhol , Kuniyuki Iwashima , open list References: <1686179653-29750-1-git-send-email-justin.chen@broadcom.com> From: Florian Fainelli In-Reply-To: <1686179653-29750-1-git-send-email-justin.chen@broadcom.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000d9383305fda05e32" X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,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 --000000000000d9383305fda05e32 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/7/2023 4:14 PM, Justin Chen wrote: > The netlink version of set_wol checks for not supported wolopts and avoids > setting wol when the correct wolopt is already set. If we do the same with > the ioctl version then we can remove these checks from the driver layer. > > Reviewed-by: Simon Horman > Signed-off-by: Justin Chen Reviewed-by: Florian Fainelli -- Florian --000000000000d9383305fda05e32 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQeQYJKoZIhvcNAQcCoIIQajCCEGYCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3QMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy30q3ArEf30ZDpXyfCtiXnupjSK8WU2cK4qsEtj09JS4+mhi0CTCrCnXAzum3tgcH cHRg0prcSzzEUDQWoFxyuqwiwhHu3sPQNmFOMwIDAQABo4IB2jCCAdYw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