Thanks Simon, I know how I can use it correctly from tests/ofproto.at, but it requires OpenFlow 1.5. I tried a new field I added, it is ok. This is really a good feature:-)
-----Original Message----- From: Simon Horman [mailto:[email protected]] Sent: Monday, March 20, 2017 9:28 PM To: Yang, Yi Y <[email protected]> Cc: [email protected] Subject: Re: How do we set fields for selection_method=hash? On Tue, Mar 14, 2017 at 06:32:30AM +0000, Yang, Yi Y wrote: > Hi, Simon > > I notice you Netronome implemented selection_method support in ovs, > now I just want to use the specified match fields as hash input, I > checked ovs-ofctl man pages, for such use case, I must use > "selection_method=hash fields=...", I'm not sure how I set fields I > want, can you help give an example? We don't use IP 5 tuple for this, > because they are almost same for our use case, it will be great if we > can use a match field we can set as hash input. Thank you in advance. Hi, its a while since I have used the code in question but I believe you can use something like this: type=select,selection_method=hash,fields(eth_dst,ip_dst,tcp_dst) Where I believe fields can include any of the fields documented in ovs-fields(7). _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
