diff options
author | Jeroen van Bemmel <jvb127@gmail.com> | 2015-07-06 12:58:24 -0500 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-07-08 08:33:27 -0700 |
commit | 4249b5470e65e1665d448f471356a144accdea47 (patch) | |
tree | a0496dff410d5bc874e0843e0ecf948e900e0612 /include/openflow | |
parent | c4270b13779be7165977a91c8933cc34dcb197dd (diff) | |
download | openvswitch-4249b5470e65e1665d448f471356a144accdea47.tar.gz |
hash: Add symmetric L3/L4 hash functions for multipath, bundle hashing.
Signed-off-by: Jeroen van Bemmel <jvb127@gmail.com>
[blp@nicira.com made code style fixes, expanded documentation]
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/openflow')
-rw-r--r-- | include/openflow/nicira-ext.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/include/openflow/nicira-ext.h b/include/openflow/nicira-ext.h index 22325aa40..9154800a4 100644 --- a/include/openflow/nicira-ext.h +++ b/include/openflow/nicira-ext.h @@ -109,7 +109,28 @@ enum nx_hash_fields { * - NXM_OF_IP_SRC / NXM_OF_IP_DST * - NXM_OF_TCP_SRC / NXM_OF_TCP_DST */ - NX_HASH_FIELDS_SYMMETRIC_L4 + NX_HASH_FIELDS_SYMMETRIC_L4, + + /* L3+L4 only, including the following fields: + * + * - NXM_OF_IP_PROTO + * - NXM_OF_IP_SRC / NXM_OF_IP_DST + * - NXM_OF_SCTP_SRC / NXM_OF_SCTP_DST + * - NXM_OF_TCP_SRC / NXM_OF_TCP_DST + */ + NX_HASH_FIELDS_SYMMETRIC_L3L4, + + /* L3+L4 only with UDP ports, including the following fields: + * + * - NXM_OF_IP_PROTO + * - NXM_OF_IP_SRC / NXM_OF_IP_DST + * - NXM_OF_SCTP_SRC / NXM_OF_SCTP_DST + * - NXM_OF_TCP_SRC / NXM_OF_TCP_DST + * - NXM_OF_UDP_SRC / NXM_OF_UDP_DST + */ + NX_HASH_FIELDS_SYMMETRIC_L3L4_UDP + + }; /* This command enables or disables an Open vSwitch extension that allows a |