1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 580 unchanged lines hidden (view full) --- 589 "rank" in var and "trigger_queue" not in var: 590 code('$vid->setPriority(${{var["rank"]}});') 591 592 else: 593 # Network port object 594 network = var["network"] 595 ordered = var["ordered"] 596 vnet = var["virtual_network"] |
597 vnet_type = var["vnet_type"] |
598 599 assert var.machine is not None 600 code(''' 601machine_type = string_to_MachineType("${{var.machine.ident}}"); 602base = MachineType_base_number(machine_type); |
603$vid = m_net_ptr->get${network}NetQueue(m_version + base, $ordered, $vnet, "$vnet_type"); |
604''') 605 606 code('assert($vid != NULL);') 607 608 # Set ordering 609 if "ordered" in var: 610 # A buffer 611 code('$vid->setOrdering(${{var["ordered"]}});') --- 1039 unchanged lines hidden --- |