[ovs-discuss] what indirects the flow entry with the same priority and match fields to be selected in ovs?

Justin Pettit jpettit at nicira.com
Mon Mar 16 16:07:03 UTC 2015


> On Mar 16, 2015, at 12:32 AM, 张晨 <zhangchen9211 at 126.com> wrote:
> 
> hello, dear all!
> 
> Openflow spec doesn't specify how to direct flow entry with the same priority and match fields to be selected. For example, i have an entry for 1.0.0.0/24, and another for 1.0.0.1/32 with all the other fields the same(priority same, too), how should these two entry be selected in ovs? Apparently, i hope the second to be matched. Or only the priority field could save me?

The OpenFlow spec explicitly states that it's undefined:

    If there are multiple matching flow entries with the same highest priority, the selected flow entry is explicitly undefined.

I wouldn't make assumption about how OVS chooses one, so just make it explicit by setting priorities.

--Justin





More information about the discuss mailing list