When users set queue id larger than the 61440 limit,
ex: set_queue: 65500, print the value in wanring message.

VMWare-BZ: #2071111
Signed-off-by: William Tu <[email protected]>
---
 lib/dpif-netlink.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/dpif-netlink.c b/lib/dpif-netlink.c
index acf1a6debcf7..c171795710df 100644
--- a/lib/dpif-netlink.c
+++ b/lib/dpif-netlink.c
@@ -2511,6 +2511,7 @@ dpif_netlink_queue_to_priority(const struct dpif *dpif 
OVS_UNUSED,
         *priority = TC_H_MAKE(1 << 16, queue_id + 1);
         return 0;
     } else {
+        VLOG_WARN("queue id %u is over limit (61440)", queue_id);
         return EINVAL;
     }
 }
-- 
2.7.4

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to