• Vasundhara Volam's avatar
    bnxt_en: Add bnxt_en initial port params table and register it · 782a624d
    Vasundhara Volam authored
    Register devlink_port with devlink and create initial port params
    table for bnxt_en. The table consists of a generic parameter:
    
    wake_on_lan: Enables Wake on Lan for this port when magic packet
    is received with this port's MAC address using ACPI pattern.
    If enabled, the controller asserts a wake pin upon reception of
    WoL packet.  ACPI (Advanced Configuration and Power Interface) is
    an industry specification for the efficient handling of power
    consumption in desktop and mobile computers.
    
    v2->v3:
    - Modify bnxt_dl_wol_validate(), to throw error message when user gives
      value other than DEVLINK_PARAM_WAKE_MAGIC ot to disable WOL.
    - Use netdev_err() instead of netdev_warn(), when devlink_port_register()
      and devlink_port_params_register() returns error. Also, don't log rc
      in this message.
    
    Cc: Michael Chan <michael.chan@broadcom.com>
    Signed-off-by: default avatarVasundhara Volam <vasundhara-v.volam@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    782a624d
bnxt.h 52.4 KB