[ovs-dev] [PATCH v2] dpctl: add add-flows command to dpctl

Aaron Conole aconole at redhat.com
Thu Oct 1 17:47:12 UTC 2020

Eelco Chaudron <echaudro at redhat.com> writes:

> When you would like to add, modify, or delete a lot of flows in the
> datapath, for example when you want to measure performance, adding
> one flow at the time won't scale. This as it takes a decent amount
> of time to set up the datapath connection.
> This new command is in-line with the same command available in
> ovs-ofctl which allows the same thing, with the only difference that
> we do not verify all lines before we start execution. This allows for
> a continuous add/delete stream. For example with a command like this:
> python3 -c 'while True:
>   for i in range(0, 1000):
>     print("add in_port(0),eth(),eth_type(0x800),ipv4(src=100.1.{}.{}) 1".format(int(i / 256), i % 256))
>   for i in range(0, 1000):
>     print("delete in_port(0),eth(),eth_type(0x800),ipv4(src=100.1.{}.{})".format(int(i / 256), i % 256))' \
> |  sudo utilities/ovs-dpctl add-flows -
> Signed-off-by: Eelco Chaudron <echaudro at redhat.com>
> ---

Acked-by: Aaron Conole <aconole at redhat.com>

More information about the dev mailing list