Deleted Added
sdiff udiff text old ( 10303:71e0934af9f1 ) new ( 10311:ad9c042dce54 )
full compact
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
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;

--- 58 unchanged lines hidden (view full) ---

67 virtual void init();
68
69 static uint32_t getNumberOfVirtualNetworks() { return m_virtual_networks; }
70 int getNumNodes() const { return m_nodes; }
71
72 static uint32_t MessageSizeType_to_int(MessageSizeType size_type);
73
74 // returns the queue requested for the given component
75 virtual void setToNetQueue(NodeID id, bool ordered, int netNumber,
76 std::string vnet_type, MessageBuffer *b) = 0;
77 virtual void setFromNetQueue(NodeID id, bool ordered, int netNumber,
78 std::string vnet_type, MessageBuffer *b) = 0;
79
80 virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
81 LinkDirection direction,
82 const NetDest& routing_table_entry) = 0;
83 virtual void makeInLink(NodeID src, SwitchID dest, BasicLink* link,
84 LinkDirection direction,
85 const NetDest& routing_table_entry) = 0;
86 virtual void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
87 LinkDirection direction,

--- 19 unchanged lines hidden (view full) ---

107
108 uint32_t m_nodes;
109 static uint32_t m_virtual_networks;
110 Topology* m_topology_ptr;
111 static uint32_t m_control_msg_size;
112 static uint32_t m_data_msg_size;
113
114 // vector of queues from the components
115 std::vector<std::map<int, MessageBuffer*> > m_toNetQueues;
116 std::vector<std::map<int, MessageBuffer*> > m_fromNetQueues;
117
118 std::vector<bool> m_in_use;
119 std::vector<bool> m_ordered;
120
121 private:
122 //! Callback class used for collating statistics from all the
123 //! controller of this type.
124 class StatsCallback : public Callback

--- 25 unchanged lines hidden ---