dpif: Shift ufid support checking up to dpif_backer.
authorJoe Stringer <joestringer@nicira.com>
Wed, 17 Dec 2014 01:44:40 +0000 (17:44 -0800)
committerJoe Stringer <joestringer@nicira.com>
Fri, 19 Dec 2014 20:57:41 +0000 (12:57 -0800)
commit8e1ffd757db4af47c7bffb4f59a803e9694dbd26
tree47976953e08a10876489af2d8d26d83c56ad360a
parent627298c5b3d141b843cde6adaa35c7b6636d595b
dpif: Shift ufid support checking up to dpif_backer.

Previously, the dpif layer was responsible for determining datapath
support for UFIDs, which resulted in all ovs-dpctl utilities
inserting/deleting flows from the datapath each time they are run.
Shift this responsibility up to the dpif_backer.

There are two users of this functionality: Revalidators check for UFID
support to request a terser dump using UFIDs, and dpif-netlink uses this
to request flow_del operations to only return the UFID/stats. The latter
case was previously hidden from revalidators, but this change makes them
aware of it, and reuses the same "udpif->enable_ufid" flag for reducing
overhead of both flow dump and flow delete.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
lib/dpif-netdev.c
lib/dpif-netlink.c
lib/dpif-provider.h
lib/dpif.c
lib/dpif.h
ofproto/ofproto-dpif-upcall.c
ofproto/ofproto-dpif.c
ofproto/ofproto-dpif.h