summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/inet/udp_impl.h
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2021-02-01 15:10:38 +0000
committerAndy Fiddaman <omnios@citrus-it.co.uk>2022-01-19 22:39:50 +0000
commit3e8b6b84e5ea96d276f9d6364e9f53b94d58ea00 (patch)
tree8636fbb8b1f5e9c6d542a344d5ec53c9c89356ef /usr/src/uts/common/inet/udp_impl.h
parent417127eb7a4962848176eeecdc1f2fb597c451f2 (diff)
downloadillumos-gate-3e8b6b84e5ea96d276f9d6364e9f53b94d58ea00.tar.gz
14205 Want UDP src port hashing for VXLAN
Reviewed by: Andy Fiddaman <andy@omnios.org> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/common/inet/udp_impl.h')
-rw-r--r--usr/src/uts/common/inet/udp_impl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/src/uts/common/inet/udp_impl.h b/usr/src/uts/common/inet/udp_impl.h
index 1e5204bb15..0fc597ccf3 100644
--- a/usr/src/uts/common/inet/udp_impl.h
+++ b/usr/src/uts/common/inet/udp_impl.h
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2015, Joyent, Inc.
*/
#ifndef _UDP_IMPL_H
@@ -179,7 +180,11 @@ typedef struct udp_s {
udp_nat_t_endpoint : 1, /* UDP_NAT_T_ENDPOINT option */
udp_rcvhdr : 1, /* UDP_RCVHDR option */
- udp_pad_to_bit_31 : 29;
+ udp_vxlanhash: 1, /* UDP_SRCPORT_HASH option */
+ /* Because there's only VXLAN, cheat */
+ /* and only use a single bit */
+
+ udp_pad_to_bit_31 : 28;
/* Following 2 fields protected by the uf_lock */
struct udp_s *udp_bind_hash; /* Bind hash chain */