diff options
author | adrian <adrian@FreeBSD.org> | 2014-09-09 00:19:02 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2014-09-09 00:19:02 +0000 |
commit | aab402c146b80d8b48db0272ba9cbab2988b4377 (patch) | |
tree | 7aba7a7a4e6378e8eac798450a1c25ad5af7ae98 /sys/netinet/ip_var.h | |
parent | 9e256816098c0a563ba7699913d93ec66f08d422 (diff) | |
download | FreeBSD-src-aab402c146b80d8b48db0272ba9cbab2988b4377.zip FreeBSD-src-aab402c146b80d8b48db0272ba9cbab2988b4377.tar.gz |
Add a flag to ip_output() - IP_NODEFAULTFLOWID - which prevents it from
overriding an existing flowid/flowtype field in the outbound mbuf with
the inp_flowid/inp_flowtype details.
The upcoming RSS UDP support calculates a valid RSS value for outbound
mbufs and since it may change per send, it doesn't cache it in the inpcb.
So overriding it here would be wrong.
Differential Revision: https://reviews.freebsd.org/D527
Reviewed by: grehan
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r-- | sys/netinet/ip_var.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index c2ab8b4..9f44101 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -161,6 +161,7 @@ void kmod_ipstat_dec(int statnum); #define IP_SENDTOIF 0x8 /* send on specific ifnet */ #define IP_ROUTETOIF SO_DONTROUTE /* 0x10 bypass routing tables */ #define IP_ALLOWBROADCAST SO_BROADCAST /* 0x20 can send broadcast packets */ +#define IP_NODEFAULTFLOWID 0x40 /* Don't set the flowid from inp */ #ifdef __NO_STRICT_ALIGNMENT #define IP_HDR_ALIGNED_P(ip) 1 |