Network.hh (11663:cf870cd20cfc) Network.hh (11664:2365e9e396f7)
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;

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

80 virtual void checkNetworkAllocation(NodeID id, bool ordered,
81 int network_num, std::string vnet_type);
82
83 virtual void makeExtOutLink(SwitchID src, NodeID dest, BasicLink* link,
84 const NetDest& routing_table_entry) = 0;
85 virtual void makeExtInLink(NodeID src, SwitchID dest, BasicLink* link,
86 const NetDest& routing_table_entry) = 0;
87 virtual void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
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;

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

80 virtual void checkNetworkAllocation(NodeID id, bool ordered,
81 int network_num, std::string vnet_type);
82
83 virtual void makeExtOutLink(SwitchID src, NodeID dest, BasicLink* link,
84 const NetDest& routing_table_entry) = 0;
85 virtual void makeExtInLink(NodeID src, SwitchID dest, BasicLink* link,
86 const NetDest& routing_table_entry) = 0;
87 virtual void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
88 const NetDest& routing_table_entry) = 0;
88 const NetDest& routing_table_entry,
89 PortDirection src_outport,
90 PortDirection dst_inport) = 0;
89
90 virtual void collateStats() = 0;
91 virtual void print(std::ostream& out) const = 0;
92
93 /*
94 * Virtual functions for functionally reading and writing packets in
95 * the network. Each network needs to implement these for functional
96 * accesses to work correctly.

--- 52 unchanged lines hidden ---
91
92 virtual void collateStats() = 0;
93 virtual void print(std::ostream& out) const = 0;
94
95 /*
96 * Virtual functions for functionally reading and writing packets in
97 * the network. Each network needs to implement these for functional
98 * accesses to work correctly.

--- 52 unchanged lines hidden ---