/* retrieves one QoS priority => traffic class mapping  */
IX_ETH_DB_PUBLIC IxEthDBStatus ixEthDBPriorityMappingClassGet(IxEthDBPortId portID, IxEthDBPriority userPriority, IxEthDBPriority *trafficClass)
/* retrieves one QoS priority => traffic class mapping  */
IX_ETH_DB_PUBLIC IxEthDBStatus ixEthDBPriorityMappingClassGet(IxEthDBPortId portID, IxEthDBPriority userPriority, IxEthDBPriority *trafficClass)
{
    IX_ETH_DB_CHECK_PORT(portID);
    IX_ETH_DB_CHECK_SINGLE_NPE(portID);
    IX_ETH_DB_CHECK_FEATURE(portID, IX_ETH_DB_VLAN_QOS);
    IX_ETH_DB_CHECK_REFERENCE(trafficClass);
    if (userPriority >= IX_IEEE802_1Q_QOS_PRIORITY_COUNT)
    {
        return IX_ETH_DB_INVALID_PRIORITY;
    }
    *trafficClass = ixEthDBPortInfo[portID].priorityTable[userPriority];
    return IX_ETH_DB_SUCCESS;
}