Page MenuHomeFreeBSD

Factor out MBUF hashing code for Ethernet and TCP/IP.
AbandonedPublic

Authored by hselasky on Feb 28 2015, 4:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 6, 4:24 AM
Unknown Object (File)
Sat, Apr 6, 4:10 AM
Unknown Object (File)
Sat, Apr 6, 1:37 AM
Unknown Object (File)
Sat, Apr 6, 1:34 AM
Unknown Object (File)
Fri, Apr 5, 11:19 PM
Unknown Object (File)
Fri, Apr 5, 7:33 PM
Unknown Object (File)
Fri, Apr 5, 7:09 PM
Unknown Object (File)
Fri, Apr 5, 7:08 PM
Subscribers
None

Details

Summary

Factor out mbuf hashing code instead of copying it around.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

hselasky updated this revision to Diff 4030.
hselasky retitled this revision from to Factor out MBUF hashing code for Ethernet and TCP/IP..
hselasky updated this object.
hselasky edited the test plan for this revision. (Show Details)
hselasky added reviewers: glebius, ken, adrian.
hselasky set the repository for this revision to rS FreeBSD src repository - subversion.
hselasky added a subscriber: Unknown Object (MLST).

Add full patch context.

Remove patches not belonging to this issue.

Update patch to latest FreeBSD-11 code and fix some build issues.

Get the directory layout correct.

ae removed a subscriber: Unknown Object (MLST).

It looks like adrian@ already has added number of constants to define hash types in mbuf.h. And there are a lot of room to define other types. Are you sure that it is necessary to add also mask for them?

sys/kern/uipc_mbufhash.c
54–55

Missing an empty line.

99

"When declaring variables in functions declare them sorted by size, then in alphabetical order; multiple ones per line are okay." (c) style(9) :)

hselasky edited edge metadata.

Address comments from ae @

This patch also adds hashing of "ip6_flow" under MBUF_HASHFLAG_L4, which I consider to be a shortcut for hashing the source and destination ports.

Ping: Anyone planning to give this patch a go or no-go in the near future?

It looks like adrian@ already has added number of constants to define hash types in mbuf.h. And
there are a lot of room to define other types. Are you sure that it is necessary to add also mask for
them?

The hash flags added don't have anything to do with the hash types.

I don't need to add a hash mask.

--HPS

hselasky set the repository for this revision to rS FreeBSD src repository - subversion.

Remove hash mask. Add missing locking in if_lagg.

Committed to FreeBSD-head in r279891.