From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH net-next 0/7] net: Support Wake-on-LAN using filters Date: Tue, 17 Jul 2018 17:47:02 +0200 Message-ID: <20180717154702.GD968@lunn.ch> References: <20180717153645.7500-1-f.fainelli@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, linville@tuxdriver.com, davem@davemloft.net, vivien.didelot@savoirfairelinux.com To: Florian Fainelli Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:37023 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730128AbeGQQUW (ORCPT ); Tue, 17 Jul 2018 12:20:22 -0400 Content-Disposition: inline In-Reply-To: <20180717153645.7500-1-f.fainelli@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Jul 17, 2018 at 08:36:37AM -0700, Florian Fainelli wrote: > Hi all, > > This patch series adds support for allowing Wake-on-LAN to wake-up the > system using configurable filters. This is particular useful in the context > of Android where wake on MDNS is a requirement. > > We support this by using the bcm_sf2 Compact Field Processor (CFP) which > supports matching packets and tagging them with an unique identifier > (Classification ID) that is added in each packet being matched through the use > of Broadcom tags. The SYSTEMPORT MAC attached to that switch is then used to > match that unique identifier and trigger a system wake-up event. > > Last patch is the ethtool modifications to support that feature. > > Example: > > ethtool --config-nfc gphy flow-type udp4 src-ip 192.168.1.1 dst-ip 192.168.1.32 \ > src-port 1234 dst-port 5678 action 64 > Added rule with ID 1 Hi Florian What is action 64? > ethtool -s gphy wol f filters 0x2 What does this 0x2 represent? These magic numbers are not so nice. Andrew