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
d8f6deab
Commit
d8f6deab
authored
Aug 07, 2015
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrsw_rtud: fix missing loop brackets, otherwise we don't really check if the port is down
parent
ee9933d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
rtud.c
userspace/wrsw_rtud/rtud.c
+2
-1
No files found.
userspace/wrsw_rtud/rtud.c
View file @
d8f6deab
...
...
@@ -228,7 +228,7 @@ static int rtu_daemon_learning_process(void)
req
.
has_vid
?
req
.
vid
:
0
,
req
.
has_prio
?
req
.
prio
:
0
);
for
(
port_down
=
i
=
0
;
i
<=
MAX_PORT
;
i
++
)
for
(
port_down
=
i
=
0
;
i
<=
MAX_PORT
;
i
++
)
{
p
=
&
hal_ports_local_copy
[
i
];
if
(
p
->
in_use
&&
p
->
hw_index
==
req
.
port_id
&&
!
state_up
(
p
->
state
))
{
...
...
@@ -236,6 +236,7 @@ static int rtu_daemon_learning_process(void)
pr_info
(
"port down %d
\n
"
,
i
);
break
;
}
}
/* don't learn on ports that are down (FIFO tail?) */
if
(
port_down
)
...
...
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