mirror of
https://github.com/openvswitch/ovs
synced 2025-09-03 15:55:19 +00:00
conntrack: Handle random selection for port ranges.
The userspace conntrack only supported hash for port selection. With the patch, both userspace and kernel datapath support the random flag. The default behavior remains the same, that is, if no flags are specified, hash is selected. Signed-off-by: Paolo Valerio <pvalerio@redhat.com> Acked-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Simon Horman <horms@ovn.org>
This commit is contained in:
committed by
Simon Horman
parent
5f2af0b7a3
commit
99413ec261
@@ -9409,9 +9409,11 @@ dp_execute_cb(void *aux_, struct dp_packet_batch *packets_,
|
||||
nl_attr_get_u16(b_nest);
|
||||
proto_num_max_specified = true;
|
||||
break;
|
||||
case OVS_NAT_ATTR_PROTO_RANDOM:
|
||||
nat_action_info.nat_flags |= NAT_RANGE_RANDOM;
|
||||
break;
|
||||
case OVS_NAT_ATTR_PERSISTENT:
|
||||
case OVS_NAT_ATTR_PROTO_HASH:
|
||||
case OVS_NAT_ATTR_PROTO_RANDOM:
|
||||
break;
|
||||
case OVS_NAT_ATTR_UNSPEC:
|
||||
case __OVS_NAT_ATTR_MAX:
|
||||
|
Reference in New Issue
Block a user