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)
Thu, Nov 13, 5:04 AM
Unknown Object (File)
Mon, Nov 10, 3:56 PM
Unknown Object (File)
Sat, Nov 8, 2:01 AM
Unknown Object (File)
Fri, Oct 17, 6:52 AM
Unknown Object (File)
Oct 10 2025, 3:45 PM
Unknown Object (File)
Oct 10 2025, 3:45 PM
Unknown Object (File)
Oct 10 2025, 3:45 PM
Unknown Object (File)
Oct 10 2025, 9:35 AM
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