HomeFreeBSD

cxgbe(4): Do not ignore the return value of ifmedia_ioctl.

Description

cxgbe(4): Do not ignore the return value of ifmedia_ioctl.

This ensures that the driver reports an error instead of failing
silently when an invalid media is requested.

Reported by: Suhas Lokesha @ Chelsio
Sponsored by: Chelsio Communications

(cherry picked from commit cdd7fe04cb803d49a2fb6389be70f4378ae3ca3b)

Details

Provenance
npAuthored on Jan 10 2022, 9:01 PM
Parents
rG438b8352856a: cxgbe(4): Do not request an FEC that is invalid for the requested speed.
Branches
Unknown
Tags
Unknown