Reported-by: Daniel Badea <[email protected]>
Signed-off-by: Alex Wang <[email protected]>
---
 lib/netdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/netdev.c b/lib/netdev.c
index 1fd5121..a9ad7d1 100644
--- a/lib/netdev.c
+++ b/lib/netdev.c
@@ -682,7 +682,7 @@ netdev_set_multiq(struct netdev *netdev, unsigned int n_txq,
                                                 MAX(n_rxq, 1))
              : EOPNOTSUPP);
 
-    if (error != EOPNOTSUPP) {
+    if (error && error != EOPNOTSUPP) {
         VLOG_DBG_RL(&rl, "failed to set tx/rx queue for network device %s:"
                     "%s", netdev_get_name(netdev), ovs_strerror(error));
     }
-- 
1.7.9.5

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to