From: Florian Fainelli Subject: Re: [PATCH ethtool] ethtool: Add support for WAKE_FILTER Date: Fri, 3 Aug 2018 10:57:13 -0700 Message-ID: <56447ed2-c441-81e5-3219-b2f6329366d1@gmail.com> References: <20180717153645.7500-1-f.fainelli@gmail.com> <20180717153645.7500-2-f.fainelli@gmail.com> <47f52797-1540-5eeb-5ea8-3c0984fdfb11@gmail.com> <20180801.093219.1548098195820479887.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linville@tuxdriver.com, andrew@lunn.ch, vivien.didelot@savoirfairelinux.com To: David Miller Return-path: Received: from mail-qt0-f173.google.com ([209.85.216.173]:36436 "EHLO mail-qt0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728079AbeHCTyn (ORCPT ); Fri, 3 Aug 2018 15:54:43 -0400 Received: by mail-qt0-f173.google.com with SMTP id t5-v6so7085089qtn.3 for ; Fri, 03 Aug 2018 10:57:22 -0700 (PDT) In-Reply-To: <20180801.093219.1548098195820479887.davem@davemloft.net> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 08/01/2018 09:32 AM, David Miller wrote: > From: Florian Fainelli > Date: Mon, 30 Jul 2018 15:26:24 -0700 > >> On 07/17/2018 08:36 AM, Florian Fainelli wrote: >>> Allow re-purposing the wol->sopass storage area to specify a bitmask of filters >>> (programmed previously via ethtool::rxnfc) to be used as wake-up patterns. >> >> John, David, can you provide some feedback if the approach is >> acceptable? I will address Andrew's comment about the user friendliness >> and allow providing a comma separate list of filter identifiers. >> >> One usability issue with this approach is that one cannot specify >> wake-on-LAN using WAKE_MAGICSECURE *and* WAKE_FILTER at the same time, >> since it uses the same location in the ioctl() structure that is being >> passed. Do you see this as a problem? > > Once again we are stuck in this weird situation, a sort of limbo. > > On the one hand, I don't want to block your work on the ethtool > netlink stuff being done. > > However it is clear that by using netlink attributes, it would > be so much cleaner. > > I honestly don't know what to say at this time. I wish I had > a clear piece of advice and a way for everyone to move forward, > and usually I do, but this time I really don't :-/ > That's fine, let me submit the first few patches that are per-requisite but don't actually introduce the WAKE_FILTER support. Once Michal's ethtool/netlink work gets merged I can quickly extend that in a way that supports wake-on-LAN using configured filters. Does the current approach of specifying a bitmask of filters looks reasonable to you though? -- Florian