2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

dpif-linux: Translate queues to priorities correctly.

The TC_H_MAKE macro does not shift the major number into position.
This commit is contained in:
Ben Pfaff
2010-07-16 15:39:40 -07:00
parent aae51f5335
commit 5b3941ee17

View File

@@ -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;