HomeFreeBSD

bnxt(4): Fix bugs in WOL support.

Description

bnxt(4): Fix bugs in WOL support.

Before this change driver reported IFCAP_WOL_MAGIC enabled, but not
supported. It caused errors on some SIOCSIFCAP calls. Instead
report the support if hardware supports WOL, and enabled status if
it has such filter installed on boot.

Also bnxt_wol_config() should check WOL status in if_getcapenable(),
not in if_getcapabilities() to get current one.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

(cherry picked from commit 8c14d7da5b9be78f71b1aa803e93ae7de973dd42)

Details

Provenance
mavAuthored on Sep 2 2021, 10:11 PM
Parents
rGe5d000b33383: nfsd: Make loop calling VOP_ALLOCATE() iterate until done
Branches
Unknown
Tags
Unknown