I think that is likely behavior, but it might change in some later
version of OVS if the implementation of group hashing changes.

On Tue, Dec 17, 2019 at 10:56:12AM +0800, 贾乘 wrote:
> Thanks for your reply.  I mean, if there is two group. One group use the 
> ip_src and tcp_src as the fields of the hash, 
> and the other group use the ip_dst and tcp_dst as the fields of the hash. If 
> the ip_src == ip dst , and tcp_src == tcp_dst, 
> Then will it is hashed to the same bucket id ?
> 
> ovs-ofctl add-group br-int "group_id=1001, type=select, 
> selection_method=hash, fields(tcp_src,ip_src),  bucket=bucket_id=1, 
> actions=resubmit(,65), bucket_id, actions=resubmit(, 75)”
> ovs-ofctl add-group br-int "group_id=1002, type=select, 
> selection_method=hash, fields(tcp_dst,ip_dst),  bucket=bucket_id=1, 
> actions=resubmit(,65), bucket_id, actions=resubmit(, 75)”
> 
> 
> 
> Thanks.
> 
> 
> 
> > 在 2019年12月17日,05:32,Ben Pfaff <b...@ovn.org> 写道:
> > 
> > On Mon, Dec 16, 2019 at 06:49:47PM +0800, 贾乘 wrote:
> >> I have one question about the hash of the group.  From the doc, 
> >> 
> >> 
> >> 
> >> The hash is symmetric. Is it the same key , when I used the src ip and
> >> src port , and used the dst ip and dst port if the src ip == dst ip,
> >> src port == dst port.  Thanks.
> > 
> > OVS makes hashes symmetric by using XOR to combine source and
> > destination fields.  I don't know whether this answers your question
> > (because I don't understand the question).
> 
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to