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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user