Thank you for reply.

I looked at source code. Eth information is necessary to insert flow in
datapath.
However, it did not insert flow because function delete_unexpected_flow()
will call "dpif_flow_del" to delete inserted flow after ovs-dpctl command.
I guess if ofproto does not have this flow, it deletes flow in datapath.

The reason why I tried to use "ovs-dpctl" instead of "ovs-ofctl" is to test
performance when there are many flows in datapath not OpenFlow flow entries.

I have one question, when flow is inserted in datapath, it will be removed
after idle time. Who remove this flows?

Thanks,
Junguk


2014-03-21 10:03 GMT-06:00 Ben Pfaff <b...@nicira.com>:

> On Fri, Mar 21, 2014 at 03:53:59AM -0600, Junguk Cho wrote:
> > Hello, can I insert flow datapath with "ovs-dpctl add-flow"
>
> In theory, yes, but it's a bad idea.  As the manpage says:
>
>        The following commands are primarily useful for debugging Open
> vSwitch.
>        The  flow  table entries (both matches and actions) that they work
> with
>        are not OpenFlow flow entries.  Instead, they are different and
> consid-
>        erably simpler flows maintained by the Open vSwitch kernel module.
>  Use
>        ovs-ofctl(8), instead, to work with OpenFlow flow entries.
>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to