Page MenuHomeFreeBSD

iflib: Prevent watchdog from resetting idle queues
ClosedPublic

Authored by piotr.pietruszewski_intel.com on Sep 19 2019, 10:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 7, 10:30 PM
Unknown Object (File)
Wed, Dec 4, 7:29 AM
Unknown Object (File)
Wed, Dec 4, 7:29 AM
Unknown Object (File)
Wed, Dec 4, 7:29 AM
Unknown Object (File)
Wed, Dec 4, 7:29 AM
Unknown Object (File)
Wed, Dec 4, 7:06 AM
Unknown Object (File)
Wed, Dec 4, 5:39 AM
Unknown Object (File)
Wed, Nov 27, 4:05 AM

Details

Summary

While changing link state in iflib_link_state_change(), queues are
marked as IFLIB_QUEUE_IDLE to disable watchdog. Currently, iflib_timer()
watchdog does not check for previous queue status before marking it as
IFLIB_QUEUE_HUNG.

This patch adds check of queue status before marking it as hung.

Signed-off-by: Piotr Pietruszewski <piotr.pietruszewski@intel.com>

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26564
Build 24952: arc lint + arc unit

Event Timeline

I'm not sure, but I think the only way this can happen is when the link is down. Is that the caee here?

I'm not sure, but I think the only way this can happen is when the link is down. Is that the caee here?

Yes. We discovered that while investigating this PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239240

Would it make sense then to assert that the link is down?

Would it make sense then to assert that the link is down?

Could you clarify on what you mean by that? Did you mean have a check for when the link is down, or an actual kernel assert? I think some of us internally were confused about what you meant.

Yes, I meant adding a KASSERT or at least a comment.

This revision is now accepted and ready to land.Dec 22 2019, 11:09 PM
This revision was automatically updated to reflect the committed changes.