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
F146959703: D55537.diff
Sat, Mar 7, 3:41 AM
Unknown Object (File)
Tue, Mar 3, 3:09 PM
Unknown Object (File)
Mon, Mar 2, 8:00 PM
Unknown Object (File)
Mon, Mar 2, 7:37 PM
Unknown Object (File)
Sun, Mar 1, 6:31 PM
Unknown Object (File)
Sun, Mar 1, 8:54 AM
Unknown Object (File)
Sun, Mar 1, 6:23 AM
Unknown Object (File)
Sun, Mar 1, 3:41 AM
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