OSDN Git Service

devlink: Add a generic wake_on_lan port parameter
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Mon, 28 Jan 2019 12:30:26 +0000 (18:00 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jan 2019 06:13:09 +0000 (22:13 -0800)
commitb639583f9e36d044ac1b13090ae812266992cbac
treefeee6bf8343d36e9499c14e1a08dab0121696c3c
parentc1e5786d6771c67fe044c3bcaa23e631e0503261
devlink: Add a generic wake_on_lan port parameter

wake_on_lan - Enables Wake on Lan for this port. If enabled,
the controller asserts a wake pin based on the WOL type.

v2->v3:
- Define only WOL types used now and define them as bitfield, so that
  mutliple WOL types can be enabled upon power on.
- Modify "wake-on-lan" name to "wake_on_lan" to be symmetric with
  previous definitions.
- Rename DEVLINK_PARAM_WOL_XXX to DEVLINK_PARAM_WAKE_XXX to be
  symmetrical with ethtool WOL definitions.

Cc: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
net/core/devlink.c