Page MenuHomeFreeBSD

divert: Use a better source identifier for netisr_queue_src() calls
ClosedPublic

Authored by markj on Thu, Feb 26, 6:40 PM.
Tags
None
Referenced Files
F146048156: D55537.id172782.diff
Fri, Feb 27, 8:57 AM
F146029192: D55537.id172782.diff
Fri, Feb 27, 4:38 AM
F146021640: D55537.id172793.diff
Fri, Feb 27, 2:55 AM
F146021334: D55537.id.diff
Fri, Feb 27, 2:51 AM
F146017744: D55537.diff
Fri, Feb 27, 2:02 AM
F145986544: D55537.id172782.diff
Thu, Feb 26, 6:51 PM
Subscribers

Details

Summary

These opaque IDs are used by netisr to distribute work among threads.
The mapping function is simply SourceID % numthreads, so using socket
addresses as source IDs isn't going to distribute packets well due to
alignment.

Use the divert socket's generation number instead, as that suits this
purpose much better.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable