mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
dpif: Don't log warning for ENOENT with dpif_port_exists().
The caller wants to know whether 'devname' is attached to 'dpif', and ENOENT is a legitimate response to that not being the case. Signed-off-by: Justin Pettit <jpettit@nicira.com>
This commit is contained in:
@@ -516,7 +516,7 @@ bool
|
||||
dpif_port_exists(const struct dpif *dpif, const char *devname)
|
||||
{
|
||||
int error = dpif->dpif_class->port_query_by_name(dpif, devname, NULL);
|
||||
if (error != 0 && error != ENODEV) {
|
||||
if (error != 0 && error != ENOENT && error != ENODEV) {
|
||||
VLOG_WARN_RL(&error_rl, "%s: failed to query port %s: %s",
|
||||
dpif_name(dpif), devname, strerror(error));
|
||||
}
|
||||
|
Reference in New Issue
Block a user