[ovs-dev] [PATCH] dpif-netdev: Add miniflow bits to dump-flows.

Ilya Maximets i.maximets at ovn.org
Mon Jun 8 15:42:29 UTC 2020


On 6/8/20 5:36 PM, William Tu wrote:
> On Mon, Jun 8, 2020 at 7:01 AM Ilya Maximets <i.maximets at ovn.org> wrote:
>>
>> On 5/14/20 4:11 PM, William Tu wrote:
>>> The 'dpctl/dump-flows -m' only shows the number of 1-bit in the
>>> miniflow map, the patch outputs additional miniflow bits after it.
>>> The format will be
>>>   dp-extra-info:miniflow_bits(count_1bit(unit0):unit0,
>>>                               count_1bit(unit1):unit1)
>>> Example:
>>>   dp-extra-info:miniflow_bits(4:0x30c0000000000000,1:0x400)
>>>
>>> By searching the unique miniflow bits, we know the number of subtables,
>>> and for earch subtables, the fields it matches on.
>>
>> Hi.
>>
>> Beside the curiosity what is the purpose of printing this information?
>> How can it be used?
>>
> So from the bitmap we can know which field in the 'struct flow' this
> subtable is matching on. And collecting all the bitmaps from dpctl/dump-flow,
> we can know which fields are used to match more frequently than others.

Don't you have all this information from the flow match?


More information about the dev mailing list