From 5b3941ee1797172ee1f349d6a03e3914217ce890 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 16 Jul 2010 15:39:40 -0700 Subject: [PATCH] dpif-linux: Translate queues to priorities correctly. The TC_H_MAKE macro does not shift the major number into position. --- lib/dpif-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index 87f29f84..a28355d4 100644 --- a/lib/dpif-linux.c +++ b/lib/dpif-linux.c @@ -463,7 +463,7 @@ dpif_linux_queue_to_priority(const struct dpif *dpif OVS_UNUSED, uint32_t queue_id, uint32_t *priority) { if (queue_id < 0xf000) { - *priority = TC_H_MAKE(1, queue_id); + *priority = TC_H_MAKE(1 << 16, queue_id); return 0; } else { return EINVAL; -- 2.30.2