On Fri, Jul 15, 2016 at 03:55:23PM +0530, Kapil Adhikesavalu wrote: > Hello, > > Need some help in configuring flow table eviction group. > I tried to configure the eviction group, but i am seeing some warn/errors > and didn't come across any sample commands in web. > > 1. Can you please share some sample commands for passing NXM_OF_IN_PORT[] > as an argument to flow_table, overflow_policy, "groups"
Something like this: ovs-vsctl \ -- --id=@ft create Flow_Table flow_limit=100 \ overflow_policy=evict groups='"NXM_OF_IN_PORT[]"' \ -- set Bridge br0 flow_tables:0=@ft > 2. As overflow_policy=evict, by default removes the flow which is going to > expire at the earliest. > i want to configure the group in such a way, the group with the highest > number of common VLAN entries should evict first, i suppose i need to use > NXM_OF_VLAN_TCI Yes. > 3. Is it possible to do flow table eviction based on the output port > instead of NXM_OF_IN_PORT ? there is no NXM_OF_OUT_PORT, so is that NO ? That's "no". > The reason i am asking this is, I use "Learn" action to dynamically > create MAC learn flows; so there will be more entries with common output > port, than source VLAN or MAC, so doing eviction based on output port is > preferred ? > > This is what i tried in ovs-2.5.0, i am getting following warning. > ovs-vsctl add-br kapil > ovs-vsctl -- --id=@ft create Flow_Table flow_limit=5 > overflow_policy=evict group=NXM_OF_IN_PORT -- set Bridge kapil > flow_tables=0=@ft > > Warning in OVS log: 2016-07-15T09:42:35.704Z|00381|bridge|WARN|bridge > kapil table 0: error parsing 'groups' (NXM_OF_IN_PORT: missing [ looking > for field name) > > root@ubuntu:~# ovs-vsctl list flow_table > _uuid : f2d9a3b4-ee77-4bf9-b364-6f78ab9560d7 > external_ids : {} > flow_limit : 5 > groups : [NXM_OF_IN_PORT] > name : [] > overflow_policy : evict > prefixes : [] > > Thanks > Kapil. _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss