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

William Tu u9012063 at gmail.com
Mon Jun 8 15:36:59 UTC 2020


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.

William


More information about the dev mailing list