Page MenuHomeFreeBSD

bnxt: Fix the request length specified in bnxt_hwrm_func_backing_store_cfg
ClosedPublic

Authored by markj on May 23 2025, 5:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 3:45 PM
Unknown Object (File)
Fri, Oct 10, 3:45 PM
Unknown Object (File)
Fri, Oct 10, 3:45 PM
Unknown Object (File)
Fri, Oct 10, 9:35 AM
Unknown Object (File)
Mon, Sep 29, 10:45 AM
Unknown Object (File)
Sun, Sep 28, 12:29 PM
Unknown Object (File)
Thu, Sep 25, 12:28 PM
Unknown Object (File)
Tue, Sep 23, 10:54 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.May 23 2025, 5:01 PM

I didn't audit other callers of hwrm_send_message() for the same bug, but we should.

I do not have any hardware to test this change, but it appear to be a regression by mistake.

Fixes: 050d28e13cde bnxt_en: L2-RoCE driver communication interface

sys/dev/bnxt/bnxt_en/bnxt_hwrm.c
717

This was introduced by 050d28e13cde ( bnxt_en: L2-RoCE driver communication interface ), while the req_len is to support the older/smaller backing_store_cfg message size 2ed061f08d9e ( if_bnxt: Add support for smaller backing_store_cfg message size ).

I think this sizeof(req) is unintentional. Also add Sumit as a review.

@zlei any objection to simply committing the patch?

@zlei any objection to simply committing the patch?

No objections. I think I have read the code carefully, the patch should fix the regression. That ( the regression ) looks much like a copy-paste error.

This revision is now accepted and ready to land.Sep 11 2025, 2:09 PM