Factor out mbuf hashing code instead of copying it around.
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
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 | Missing an empty line. | |
98 | "When declaring variables in functions declare them sorted by size, then in alphabetical order; multiple ones per line are okay." (c) style(9) :) |
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.
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