Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
0178b38f
Commit
0178b38f
authored
May 04, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/wrsw_rtud: disable aging (possible source of bugs)
parent
9e5a697a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
rtud.c
userspace/wrsw_rtud/rtud.c
+6
-3
No files found.
userspace/wrsw_rtud/rtud.c
View file @
0178b38f
...
...
@@ -64,8 +64,8 @@ static int rtu_create_static_entries()
uint32_t
enabled_port_mask
=
0
;
// packets addressed to WR card interfaces are forwarded to NIC virtual port
halexp_query_ports
(
&
plist
);
// packets addressed to WR card interfaces are forwarded to NIC virtual port
TRACE
(
TRACE_INFO
,
"qp %d"
,
halexp_query_ports
(
&
plist
));
TRACE
(
TRACE_INFO
,
"Number of physical ports: %d, active ports: %d
\n
"
,
plist
.
num_physical_ports
,
plist
.
num_ports
);
...
...
@@ -101,6 +101,8 @@ static int rtu_create_static_entries()
if
(
err
)
return
err
;
TRACE
(
TRACE_INFO
,
"done creating static entries."
);
return
0
;
}
...
...
@@ -164,6 +166,7 @@ static int rtu_daemon_learning_process()
port_map
=
(
1
<<
req
.
port_id
);
// create or update entry at filtering database
err
=
rtu_fd_create_entry
(
req
.
src
,
vid
,
port_map
,
DYNAMIC
);
err
=
0
;
if
(
err
==
-
ENOMEM
)
{
// TODO remove oldest entries (802.1D says you MAY do it)
TRACE
(
TRACE_INFO
,
"filtering database full
\n
"
);
...
...
@@ -327,7 +330,7 @@ int main(int argc, char **argv)
daemonize
();
// Start up aging process and auxiliary WRIPC thread
if
(
(
err
=
pthread_create
(
&
aging_process
,
NULL
,
rtu_daemon_aging_process
,
(
void
*
)
aging_res
))
||
if
(
/*(err = pthread_create(&aging_process, NULL, rtu_daemon_aging_process, (void *) aging_res)) ||*/
(
err
=
pthread_create
(
&
wripc_process
,
NULL
,
rtu_daemon_wripc_process
,
NULL
)))
{
rtu_daemon_destroy
();
return
err
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment