|SUCCESS| net/bnxt: add debug log for ulp_regfile_write failure
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Mon Nov 16 11:03:38 CET 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/172913
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-16
**Info**
1. The return value of `ulp_regfile_write()` is used as a bare truth value.
```c
if (unlikely(ulp_regfile_write(parms->regfile, tbl->tbl_operand,
rte_cpu_to_be_64(val)))) {
```
This is an integer error code, so DPDK style wants an explicit comparison:
```c
if (unlikely(ulp_regfile_write(parms->regfile, tbl->tbl_operand,
rte_cpu_to_be_64(val)) != 0))
```
2. The body of the new `if` is a single statement, so the braces can be dropped to match DPDK brace style.
3. The failure is logged at DEBUG level and otherwise ignored, so flow processing continues.
```c
BNXT_DRV_DBG(DEBUG, "Regfile[%d] write failed.\n",
```
A failed regfile write means the EM insertion status is not recorded for later table processing. That is an unexpected internal error rather than a debug event. Consider logging at ERR level, or propagating the error if later mapper steps depend on this regfile entry.
Review-Result: CLEAN
More information about the test-report
mailing list