diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2014-09-09 01:45:39 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2014-09-09 01:45:39 +0000 |
commit | 9d3ddf438402c8e711dd639be6052d51cb45b680 (patch) | |
tree | 7a08d9539d5dc0c08bba7869418c535b30644538 /sys/netinet/in_pcb.h | |
parent | b174de323a42a678e7204b372818f0425846c9db (diff) | |
download | src-9d3ddf438402c8e711dd639be6052d51cb45b680.tar.gz src-9d3ddf438402c8e711dd639be6052d51cb45b680.zip |
Add support for receiving and setting flowtype, flowid and RSS bucket
information as part of recvmsg().
This is primarily used for debugging/verification of the various
processing paths in the IP, PCB and driver layers.
Unfortunately the current implementation of the control message path
results in a ~10% or so drop in UDP frame throughput when it's used.
Differential Revision: https://reviews.freebsd.org/D527
Reviewed by: grehan
Notes
Notes:
svn path=/head/; revision=271293
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r-- | sys/netinet/in_pcb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index 8c73f2d657ad..6207ddd02df5 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -549,6 +549,8 @@ short inp_so_options(const struct inpcb *inp); #define INP_REUSEADDR 0x00000020 /* SO_REUSEADDR option is set */ #define INP_BINDMULTI 0x00000040 /* IP_BINDMULTI option is set */ #define INP_RSS_BUCKET_SET 0x00000080 /* IP_RSS_LISTEN_BUCKET is set */ +#define INP_RECVFLOWID 0x00000100 /* populate recv datagram with flow info */ +#define INP_RECVRSSBUCKETID 0x00000200 /* populate recv datagram with bucket id */ /* * Flags passed to in_pcblookup*() functions. |