dpctl: Factor out common code to iterate through all dpifs.
authorDaniele Di Proietto <diproiettod@vmware.com>
Wed, 6 May 2015 18:00:25 +0000 (19:00 +0100)
committerBen Pfaff <blp@nicira.com>
Thu, 7 May 2015 19:56:41 +0000 (12:56 -0700)
commit1f70f3f01aad5ba34931d9a745c3dae15f6a29a6
tree58f7afb53823fa73e3e3716908fcac2baec21277
parent8cb277fc37a42184a931f83c3dbc7681090ed6c5
dpctl: Factor out common code to iterate through all dpifs.

This commit introduces dps_for_each() which calls a callback for each
datapath of each registered type.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/dpctl.c