Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp201871img; Wed, 27 Mar 2019 20:43:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVoQ0RKkVvdPEkdEy3WhHesdMq7BtQYfR56YLPJTWcYYjsf7mcPYvDrNDaMWu0WQY3ug2s X-Received: by 2002:a63:fb16:: with SMTP id o22mr36948927pgh.209.1553744602759; Wed, 27 Mar 2019 20:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553744602; cv=none; d=google.com; s=arc-20160816; b=qfv0T3MSZ3Za3jrQx6AUOJalVVVJFSfvyPHt+eBYWulXGx+kmGFocOhlFrJcHbTU4r 4vRCNkt8ZkYr2m3mQz1gviyZwXwCca/wxg/yCA7d32wQQ1h+fYjUpA1FVZPkrs76R2zU I+weGvTc8L87KqYbd58V0ttfl5sP7HBBYmn/QC4fW9oz3So3x5MparD/S1LjM04t3cNc XsJ9SLfsNYh/t7BI7trgljt9OSGeRk2h4N7SHUpL4BA9IyWkBsnFat60eZDXiB1cKS90 EeE0O2bgC6N6JFXkt+QGvCkUCHJOFhSfeqTXruw+5FCcuIHvyx9KxpKr7bWAkWXGx9u2 3vFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject:dkim-signature; bh=mXejdoPA/cvf6bL+OK6DuWZDgQPlKQSh2cXFE+sLisQ=; b=PMA/uPKI34vU2KkijGJgB0MKwtwdabdgHXBGel+enh+ZIykOORImmuuOXnqc0ybXjD ie1yJw0Dh7uWuB4b0qMrEOcWPWg0hSPCAH3KlWdWtnzI0hWn9JL+cn/dpuDh9ygafbI6 jEvpsK6UhOw0VAeZgc/9+z+FoT/z78SL0NgJfcm2CtK4NHRSlq/9NnAo2goNTKjPwP6D YnzuQuCyAeUiL6rN5VdiEiYfkcMyQM6OK8s+odnS3SJPqBg04mw1Wgih00oN4FzAEtwR bmk6rUiBjFRMrT4D+aWDszYwfK154hu4S/wJzLA1kA8jKKN+Y3JIT4F1+ActCn5qzPBP JswA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TrwMfSg6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c20si6449807pfi.259.2019.03.27.20.43.06; Wed, 27 Mar 2019 20:43:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TrwMfSg6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727802AbfC1Dmd (ORCPT + 99 others); Wed, 27 Mar 2019 23:42:33 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41909 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726824AbfC1Dmd (ORCPT ); Wed, 27 Mar 2019 23:42:33 -0400 Received: by mail-pf1-f195.google.com with SMTP id 188so5253796pfd.8; Wed, 27 Mar 2019 20:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=mXejdoPA/cvf6bL+OK6DuWZDgQPlKQSh2cXFE+sLisQ=; b=TrwMfSg6zHdLJDzmrlFbjlU2uHnNHtfmg0+rmrdWip62Of5MQae8sLbYU+Jx4N7PYQ xyZ77fpUVVkLqnH9DyfibFQQdpDsqUaxpGL/NEE1qhlNYAhlK7LkO3Ed9Bf9YfEVvj9j 0JDNaB+OTuiWS/Bl1EV1QYp40WFyIzP/wcRnlPXMCuvaM6ntQa7J04wcfMRh03TT7J1o eppUw2L/uNF6cK6t+SlTOHX/q7shmCbyLUb/OMCVweXsWIeM1UfojojcrwvHvGAxfUN/ nvwoKyuQgfrwBzsPefTgnHgM0/yURash2a1L92zRt/kBHJhvyrEgQOmd78K+IvrZ4kEh p0tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mXejdoPA/cvf6bL+OK6DuWZDgQPlKQSh2cXFE+sLisQ=; b=NAjoe6DzV9w8dwN1wNS4xRwsLYmFwkAOoF2FsrCJc8HXGiHmwTiErIjhVMP1pY5dCB weJZpgJ/FYDo5iV+SkJFlCbG4GdIT+vUNvGOgAq4cccGzr5qiPC01Ond7arUpCnZBJJM OjF1dtrc4fZF1vkJikRPO8jWQdQ+XlC/HHFN/kNKdRh8NKN/Jsuzol+mrizHH/zPkLzw 7Itv5MKRp02gZstk0fa7ckPpQm7Tj8qCTWzpHh4+d/ZEDxfrSgK6NjGclz7PfGEr5BUh A+3xNWIjy/25XaaSP0BnOxR/9NBDjtatX+QbQEfGujiryPihBFFvJwY9J7v335tM6K8R cvIA== X-Gm-Message-State: APjAAAWWxBuxGGPik0ij/BNY+2fap0GcXKCwS8C1rXBm7JUgq0x1RaAB xZ4mhjRjLjstB/NDD9BoHp0pPJU4 X-Received: by 2002:aa7:83ca:: with SMTP id j10mr38625266pfn.50.1553744552117; Wed, 27 Mar 2019 20:42:32 -0700 (PDT) Received: from [192.168.1.3] (ip68-101-123-102.oc.oc.cox.net. [68.101.123.102]) by smtp.gmail.com with ESMTPSA id a65sm31496000pgc.72.2019.03.27.20.42.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Mar 2019 20:42:31 -0700 (PDT) Subject: Re: [PATCH net-next v5 19/22] ethtool: provide WoL information in GET_SETTINGS request To: Michal Kubecek , David Miller , netdev@vger.kernel.org Cc: Jakub Kicinski , Jiri Pirko , Andrew Lunn , John Linville , Stephen Hemminger , linux-kernel@vger.kernel.org References: From: Florian Fainelli Openpgp: preference=signencrypt Message-ID: <7580e650-565a-a7e2-35cc-6cce1c3f5ba6@gmail.com> Date: Wed, 27 Mar 2019 20:42:26 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/25/2019 10:08 AM, Michal Kubecek wrote: > Add information about supported and enabled wake on LAN modes into the > GET_SETTINGS reply when ETH_SETTINGS_IM_WOL flag is set in the request. > > The GET_SETTINGS request can be still sent by unprivileged users but in > such case the SecureOn password (if any) is not included in the reply. > > Send notification in the same format as reply SET_SETTINGS message when > wake on LAN settings are modified using ioctl interface (ETHTOOL_SWOL > command). Looks good to me, just one question below: > > Signed-off-by: Michal Kubecek > --- [snip] > > + data->privileged = ethnl_is_privileged(skb); Is not this potentially creating a time of check/time of use issue? Can you check for ethnl_is_privileged() at the time where you fill in the reply skb? -- Florian