Network.hh (10303:71e0934af9f1) Network.hh (10311:ad9c042dce54)
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
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 MessageBuffer* getToNetQueue(NodeID id, bool ordered,
76 int netNumber, std::string vnet_type) = 0;
77 virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered,
78 int netNumber, std::string vnet_type) = 0;
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
79
80
81 virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
82 LinkDirection direction,
83 const NetDest& routing_table_entry) = 0;
84 virtual void makeInLink(NodeID src, SwitchID dest, BasicLink* link,
85 LinkDirection direction,
86 const NetDest& routing_table_entry) = 0;
87 virtual void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
88 LinkDirection direction,

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

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

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