add_priority


Description:

public bool add_priority (VlanPriorityMap map, uint32 from, uint32 to)

Adds a priority mapping to the NMSettingVlan:ingress_priority_map or NMSettingVlan:egress_priority_map properties of the setting.

If from is already in the given priority map, this function will overwrite the existing entry with the new to.

If map is INGRESS_MAP then from is the incoming 802.1q VLAN Priority Code Point (PCP) value, and to is the Linux SKB priority value.

If map is EGRESS_MAP then from is the Linux SKB priority value and to is the outgoing 802.1q VLAN Priority Code Point (PCP) value.

Parameters:

this

the SettingVlan

map

the type of priority map

from

the priority to map to to

to

the priority to map from to

Returns:

true if the new priority mapping was successfully added to the list, false if error




2022 vala-language.org