mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
netdev-linux: Avoid minor number 0 in traffic control.
Linux traffic control handles with minor number 0 refer to qdiscs, not to classes. This commit deals with this by using a conversion function: OpenFlow queue 0 maps to minor 1, queue 1 to minor 2, and so on.
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 << 16, queue_id);
|
||||
*priority = TC_H_MAKE(1 << 16, queue_id + 1);
|
||||
return 0;
|
||||
} else {
|
||||
return EINVAL;
|
||||
|
Reference in New Issue
Block a user