Page MenuHomeFreeBSD

Detach Rx/Tx/IOV tasks upon iflib device or psuedo device register failure.
ClosedPublic

Authored by stallamr_netapp.com on Nov 23 2020, 5:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 2, 10:14 AM
Unknown Object (File)
Nov 9 2024, 1:16 AM
Unknown Object (File)
Oct 5 2024, 10:58 AM
Unknown Object (File)
Oct 3 2024, 12:25 AM
Unknown Object (File)
Oct 2 2024, 4:09 PM
Unknown Object (File)
Oct 2 2024, 2:31 PM
Unknown Object (File)
Sep 30 2024, 7:54 PM
Unknown Object (File)
Sep 27 2024, 12:30 PM

Details

Summary

Once MSIX interrupt assign is complete, Rx/Tx/IOV tasks gets attach to respective taskqueues. Upon IFDI_ATTACH_POST()
or any failure beyond interrupt assignment, only admin tasks gets detached so far. While I'm here, group taskqueue
detach tasks into single function and use new function instead.

Test Plan

At NetApp, tested with kernel failpoints on physical interfaces. Didnot test psuedo interfaces though.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/net/iflib.c
5088 ↗(On Diff #79907)

This calls iflib_rx_sds_free() on each rxq, so why is it necessary to keep freeing the freelist bitmaps in the loop immediately above?

5167 ↗(On Diff #79907)

Same question as above.

sys/net/iflib.c
5088 ↗(On Diff #79907)

Thanks Mark for pointing this out. I agree. Above loop to free bitmap is not necessary. I will remove the loop and refresh the change.

5167 ↗(On Diff #79907)

Agree. Will remove the loop and refresh the review.

rx bitmap do get free in following function call. Remove explicit free of bitmap yet again.

I think this is ok. I'll give other reviewers a few more days to have a look.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 7 2020, 2:53 PM
This revision was automatically updated to reflect the committed changes.