[ovs-dev] [Single DP 14/15] dpif: Add new dpif_port_exists() function.

Ben Pfaff blp at nicira.com
Mon Oct 22 23:35:41 UTC 2012


On Thu, Oct 18, 2012 at 12:51:59PM -0700, Justin Pettit wrote:
> Provide the ability to determine whether a port exists in a datapath
> without having to deal with a "dpif_port" structure as with
> dpif_port_query_by_name().  A future patch will use this function.
> 
> Signed-off-by: Justin Pettit <jpettit at nicira.com>

Seems reasonable.

Possibly, dpif_port_exists() should log if ->port_query_by_name()
returns a value other than 0 or ENODEV.

Thanks,

Ben.



More information about the dev mailing list