X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdpif.c;h=0093f6142479e8d58b97e4977282af05bcaba30f;hb=e0d7fd09066712420ea076a8efb5559a3fe297b3;hp=952a502d60f26cadaacf4d688084d6701fbeb967;hpb=4afba28d559511a5ee03e005b65be8323bf26ad3;p=openvswitch diff --git a/lib/dpif.c b/lib/dpif.c index 952a502d..0093f614 100644 --- a/lib/dpif.c +++ b/lib/dpif.c @@ -372,6 +372,13 @@ dpif_base_name(const struct dpif *dpif) return dpif->base_name; } +/* Returns the type of datapath 'dpif'. */ +const char * +dpif_type(const struct dpif *dpif) +{ + return dpif->dpif_class->type; +} + /* Returns the fully spelled out name for the given datapath 'type'. * * Normalized type string can be compared with strcmp(). Unnormalized type