From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: [PATCH net-next 5/7] ethtool: Add WAKE_FILTER bitmask Date: Tue, 17 Jul 2018 08:36:43 -0700 Message-ID: <20180717153645.7500-7-f.fainelli@gmail.com> References: <20180717153645.7500-1-f.fainelli@gmail.com> Cc: Florian Fainelli , linville@tuxdriver.com, davem@davemloft.net, andrew@lunn.ch, vivien.didelot@savoirfairelinux.com To: netdev@vger.kernel.org Return-path: Received: from mail-wr1-f67.google.com ([209.85.221.67]:44556 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731455AbeGQQKk (ORCPT ); Tue, 17 Jul 2018 12:10:40 -0400 Received: by mail-wr1-f67.google.com with SMTP id r16-v6so1699717wrt.11 for ; Tue, 17 Jul 2018 08:37:27 -0700 (PDT) In-Reply-To: <20180717153645.7500-1-f.fainelli@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: Add the ability to specify that a filter, programmed through ethtool::rxnfc will be used as a wake-up source. sopass which is a 48-bit wide storage is used to indicate which filters (as bits) can be used for wake-up. Signed-off-by: Florian Fainelli --- include/uapi/linux/ethtool.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index 4ca65b56084f..59e35f0ca9eb 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h @@ -201,7 +201,7 @@ struct ethtool_drvinfo { * @supported: Bitmask of %WAKE_* flags for supported Wake-On-Lan modes. * Read-only. * @wolopts: Bitmask of %WAKE_* flags for enabled Wake-On-Lan modes. - * @sopass: SecureOn(tm) password; meaningful only if %WAKE_MAGICSECURE + * @sopass: SecureOn(tm) password; meaningful only if %WAKE_MAGICSECURE or %WAKE_FILTER * is set in @wolopts. */ struct ethtool_wolinfo { @@ -1634,6 +1634,7 @@ static inline int ethtool_validate_duplex(__u8 duplex) #define WAKE_ARP (1 << 4) #define WAKE_MAGIC (1 << 5) #define WAKE_MAGICSECURE (1 << 6) /* only meaningful if WAKE_MAGIC */ +#define WAKE_FILTER (1 << 7) /* L2-L4 network traffic flow types */ #define TCP_V4_FLOW 0x01 /* hash or spec (tcp_ip4_spec) */ -- 2.14.1