[ovs-dev] How do we set fields for selection_method=hash?

Simon Horman simon.horman at netronome.com
Mon Mar 20 13:27:39 UTC 2017


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).


More information about the dev mailing list