Page MenuHomeFreeBSD

irdma(4): upgrade to 1.2.17-k
ClosedPublic

Authored by bartosz.sobczak_intel.com on Aug 11 2023, 9:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 17 2024, 5:33 AM
Unknown Object (File)
Oct 17 2024, 4:42 AM
Unknown Object (File)
Oct 10 2024, 3:10 AM
Unknown Object (File)
Sep 28 2024, 6:34 AM
Unknown Object (File)
Sep 28 2024, 4:00 AM
Unknown Object (File)
Sep 22 2024, 3:10 AM
Unknown Object (File)
Sep 21 2024, 5:05 PM
Unknown Object (File)
Sep 18 2024, 4:42 AM

Details

Summary

Update Intel irdma driver to version 1.2.17-k

Notable changes:
pf-reset handling improvements, including fixes in communication with if_ice(4)
avoid racing when handling various events
adding sw stats sysctls
hand over pe_criterr handling from ice(4) to irdma(4)
debug prints adjustments
fix crash after changes in irdma_add_mqh_ifa_cb

Test Plan

the code has been validated using testing tools in kernel and user space available for freebsd, including krping, rping, pingpong, ucmatose perftest and others.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I wish this was uploaded with context, but I'm not an expert on RDMA so I'm not sure it would let me review this code better.

That said, I see some checks for FreeBSD 14.0; is this patch something that is intended to be directly MFC-able to stable/13?

contrib/ofed/libirdma/irdma_uk.c
279

Why is this change here? The existing ! should be enough to make sure the value is 0 or 1.

I'm not familiar enough to comment at all. My only role was mechanically converting to IfAPI.

In D41425#944908, @erj wrote:

I wish this was uploaded with context, but I'm not an expert on RDMA so I'm not sure it would let me review this code better.

That said, I see some checks for FreeBSD 14.0; is this patch something that is intended to be directly MFC-able to stable/13?

It definitely should help moving it to stable/13
I'm still not quite clear how to deal with stable/13 and 14-cur differences (as they are huge due to massive changes in ofed in 14-cur). I hope to keep clearing those out as soon as i can.

contrib/ofed/libirdma/irdma_uk.c
279

this is removing an issue reported by static code analysis. The claim was that this line results in a 'dubious x & !y' warning.

I'm not familiar enough to comment at all. My only role was mechanically converting to IfAPI.

Nevertheless i'm touching things we've been working on last time, so please take a look if you are ok with those!

contrib/ofed/libirdma/irdma_uk.c
279

Looking at the definition for FIELD_PREP, I can see why, but I don't know, I'd try casting !(qp->swe_polarity) to a u64 first instead of introducing the ternary operator.

I'll add an MFC period of 1 month as a reminder to check in about merging this update back to stable/13.

This revision is now accepted and ready to land.Aug 18 2023, 6:27 PM