StateMachine.py (8266:66a3187a6714) StateMachine.py (8308:79cf09f5a234)
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"]
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"]
597
598 assert var.machine is not None
599 code('''
600machine_type = string_to_MachineType("${{var.machine.ident}}");
601base = MachineType_base_number(machine_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);
602$vid = m_net_ptr->get${network}NetQueue(m_version + base, $ordered, $vnet);
603$vid = m_net_ptr->get${network}NetQueue(m_version + base, $ordered, $vnet, "$vnet_type");
603''')
604
605 code('assert($vid != NULL);')
606
607 # Set ordering
608 if "ordered" in var:
609 # A buffer
610 code('$vid->setOrdering(${{var["ordered"]}});')

--- 1039 unchanged lines hidden ---
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 ---