Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
a74f6100
Commit
a74f6100
authored
2 years ago
by
martinezric
Browse files
Options
Downloads
Patches
Plain Diff
PathComp component - Backend:
- Minor code cleanup
parent
1851f3e9
No related branches found
No related tags found
2 merge requests
!142
Release TeraFlowSDN 2.1
,
!100
PathComp Backend - Adding Logs and kpaths_return
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pathcomp/backend/pathComp_sp.c
+3
-3
3 additions, 3 deletions
src/pathcomp/backend/pathComp_sp.c
src/pathcomp/backend/pathComp_tools.h
+4
-3
4 additions, 3 deletions
src/pathcomp/backend/pathComp_tools.h
with
7 additions
and
6 deletions
src/pathcomp/backend/pathComp_sp.c
+
3
−
3
View file @
a74f6100
...
@@ -231,9 +231,9 @@ void sp_execution_services(struct compRouteOutputList_t* oPathList) {
...
@@ -231,9 +231,9 @@ void sp_execution_services(struct compRouteOutputList_t* oPathList) {
continue
;
continue
;
}
}
struct
path_t
*
path
=
&
(
pathService
->
paths
[
pathService
->
numPaths
-
1
]);
struct
path_t
*
path
=
&
(
pathService
->
paths
[
pathService
->
numPaths
-
1
]);
allocate_graph_resources
(
path
,
service
,
g
);
//
allocate_graph_resources(path, service, g);
// LGR: crashes in some cases with assymetric topos
allocate_graph_reverse_resources
(
path
,
service
,
g
);
//
allocate_graph_reverse_resources(path, service, g);
// LGR: crashes in some cases with assymetric topos
print_graph
(
g
);
print_graph
(
g
);
}
}
return
;
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/pathcomp/backend/pathComp_tools.h
+
4
−
3
View file @
a74f6100
...
@@ -125,8 +125,9 @@ struct map_nodes_t {
...
@@ -125,8 +125,9 @@ struct map_nodes_t {
gint
numMapNodes
;
gint
numMapNodes
;
};
};
#define MAX_NUM_VERTICES 20 // 100 # LGR: reduced from 100 to 20 to divide by 5 the memory used
#define MAX_NUM_VERTICES 100 // 100 # LGR: reduced from 100 to 20 to divide by 5 the memory used
#define MAX_NUM_EDGES 10 // 100 # LGR: reduced from 100 to 10 to divide by 10 the memory used
#define MAX_NUM_EDGES 5 // 100 # LGR: reduced from 100 to 5 to divide by 20 the memory used
// Structures for the graph composition
// Structures for the graph composition
struct
targetNodes_t
{
struct
targetNodes_t
{
// remote / targeted node
// remote / targeted node
...
@@ -250,7 +251,7 @@ struct endPoint_t {
...
@@ -250,7 +251,7 @@ struct endPoint_t {
// Structure for the device contents
// Structure for the device contents
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
#define MAX_DEV_TYPE_SIZE 128
#define MAX_DEV_TYPE_SIZE 128
#define MAX_DEV_ENDPOINT_LENGTH 10
#define MAX_DEV_ENDPOINT_LENGTH 10
0 // 10 # LGR: controllers might have large number of endpoints
struct
device_t
{
struct
device_t
{
gdouble
power_idle
;
// power idle (baseline) of the switch in Watts
gdouble
power_idle
;
// power idle (baseline) of the switch in Watts
gint
operational_status
;
// 0 - Undefined, 1 - Disabled, 2 - Enabled
gint
operational_status
;
// 0 - Undefined, 1 - Disabled, 2 - Enabled
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment