Page MenuHomeFreeBSD

if_bnxt: Pass HWRM cmd response to apps even if FW fails it
AcceptedPublic

Authored by sumit.saxena_broadcom.com on Mon, Aug 3, 12:21 PM.
Tags
None
Referenced Files
F165351386: D58609.diff
Fri, Aug 7, 7:10 PM
Unknown Object (File)
Thu, Aug 6, 7:43 PM
Unknown Object (File)
Thu, Aug 6, 1:54 PM
Unknown Object (File)
Wed, Aug 5, 6:05 PM
Subscribers
None

Details

Summary

The driver was not passing the HWRM command response to management
apps when the firmware failed the command, which is not what apps
expect. Copy the response out whenever firmware populated one
(resp_len != 0), regardless of the command's overall return code, and
stop bailing out of the mgmt ioctl path early on a failed passthrough
so DMA'd indirect data and the response still get copied to
userspace.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped