ethtool: Add WAKE_FILTER and RX_CLS_FLOW_WAKE
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 7 Aug 2018 17:50:20 +0000 (10:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Aug 2018 19:15:03 +0000 (12:15 -0700)
commit6cfef793b558eee47bac720574aff0d36b89d20a
tree928a0f46fe66db558ea12387f8393ba5b648e55b
parent1ba982806ce58baac44c52e6c7812245afad27c8
ethtool: Add WAKE_FILTER and RX_CLS_FLOW_WAKE

Add the ability to specify through ethtool::rxnfc that a rule location is
special and will be used to participate in Wake-on-LAN, by e.g: having a
specific pattern be matched. When this is the case, fs->ring_cookie must
be set to the special value RX_CLS_FLOW_WAKE.

We also define an additional ethtool::wolinfo flag: WAKE_FILTER which
can be used to configure an Ethernet adapter to allow Wake-on-LAN using
previously programmed filters.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/ethtool.h