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
Note that this may cause a subtle change in behaviour if either the ports tree is not present on a system or if javavmwrapper is otherwise instructed to use it's own internal logic (e.g. if JAVAVM_FALLBACK_ONLY is set).
This will depend on what versions the user has installed. This is actually more of a bug in javavmwrapper which I'll look into (it doesn't understand JDK 13 yet). It also doesn't have a default version (e.g. 8) and uses the "newest" one if no version is supplied. If a version is supplied then it uses the newest version that it understands.
An alternative to all these script changes would be to have bsd.java.mk always add JAVA_VERSION to SUB_LIST, using the version it ends up deciding on if none is set.