dpif-netdev: Print installed flows in dpif format.
authorJesse Gross <jesse@kernel.org>
Sat, 28 May 2016 16:56:07 +0000 (09:56 -0700)
committerJesse Gross <jesse@kernel.org>
Mon, 13 Jun 2016 20:28:43 +0000 (13:28 -0700)
commit9044f2c11ff0021a9f5eb582ff25aa558dfa8a01
tree264daf7319eedd0e8915c3340e95fac3d7287076
parent098d2a9777f0d986220d278c0095eae42eaadf21
dpif-netdev: Print installed flows in dpif format.

When debug logging is enabled, dpif-netdev can print each flow as it is
installed, which it currently does using OpenFlow match formatting. Compared
to ODP formatting, there generally isn't too much difference since the
fields are largely the same but it is inconsistent with other logging in
dpif-netdev as well as the analogous functions that deal with the kernel.

However, in some cases there is a difference between the two formats, such
as in the cases of input port or tunnel metadata. For input port, datapath
format helped detect that the generated masks were incorrect. As for tunnels,
at the moment, it's possible to convert between the two formats on demand as
we have a global metadata table. In the future, though this won't be possible
as the metadata table becomes per-bridge which the datapath won't have access
to.

Signed-off-by: Jesse Gross <jesse@kernel.org>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/dpif-netdev.c
tests/dpif-netdev.at
tests/ofproto-dpif.at
tests/pmd.at