Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etherlabmaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
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
ICS Control System Infrastructure
etherlabmaster
Commits
1e993683
Commit
1e993683
authored
16 years ago
by
Florian Pose
Browse files
Options
Downloads
Patches
Plain Diff
merge -c1554 branches/stable-1.4: Fixed WC calculation for multiple datagrams.
parent
8925aaf1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+8
-1
8 additions, 1 deletion
NEWS
master/domain.c
+3
-3
3 additions, 3 deletions
master/domain.c
with
11 additions
and
4 deletions
NEWS
+
8
−
1
View file @
1e993683
...
...
@@ -14,7 +14,14 @@ Changes since 1.4.0:
* Added phy_read and phy_write commands to ethercat tool.
* Added driver for Intel PRO/100 NICs.
Changes since 1.4.0-rc2:
Changes since 1.4.0-rc3:
* Fixed race condition in jiffy-based frame timeout calculation.
* Fixed race condition concerning the ec_slave_config_state->operational flag.
* Fixed wrong calculation of the expected working counter if the process data
of a domain span several datagrams.
Changes in 1.4.0-rc3:
* Ported the master thread to the kthread interface.
* Added missing semaphore up() in an ioctl(). In rare cases, the master
...
...
This diff is collapsed.
Click to expand it.
master/domain.c
+
3
−
3
View file @
1e993683
...
...
@@ -161,20 +161,20 @@ int ec_domain_add_datagram(
}
// If LRW is used, output FMMUs increment the working counter by 2,
// while input FMMUs increment it by 1.
domain
->
expected_working_counter
=
domain
->
expected_working_counter
+
=
used
[
EC_DIR_OUTPUT
]
*
2
+
used
[
EC_DIR_INPUT
];
}
else
if
(
used
[
EC_DIR_OUTPUT
])
{
// outputs only
if
(
ec_datagram_lwr
(
datagram
,
logical_offset
,
data_size
,
data
))
{
kfree
(
datagram
);
return
-
1
;
}
domain
->
expected_working_counter
=
used
[
EC_DIR_OUTPUT
];
domain
->
expected_working_counter
+
=
used
[
EC_DIR_OUTPUT
];
}
else
{
// inputs only (or nothing)
if
(
ec_datagram_lrd
(
datagram
,
logical_offset
,
data_size
,
data
))
{
kfree
(
datagram
);
return
-
1
;
}
domain
->
expected_working_counter
=
used
[
EC_DIR_INPUT
];
domain
->
expected_working_counter
+
=
used
[
EC_DIR_INPUT
];
}
ec_datagram_zero
(
datagram
);
...
...
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