Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libethernet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HAL
libethernet
Commits
dc6ca0ca
Commit
dc6ca0ca
authored
5 months ago
by
Markus Gothe
Browse files
Options
Downloads
Patches
Plain Diff
Fix detection of 'ae_wan' WAN-interface.
parent
6e7216e6
Branches
Branches containing commit
No related tags found
1 merge request
!25
Fix detection of 'ae_wan' WAN-interface.
Pipeline
#190599
passed
5 months ago
Stage: static_code_analysis
Stage: compile_test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
econet/econet.c
+10
-19
10 additions, 19 deletions
econet/econet.c
with
10 additions
and
19 deletions
econet/econet.c
+
10
−
19
View file @
dc6ca0ca
...
@@ -67,15 +67,11 @@ int econet_eth_get_stats(const char *ifname, struct eth_stats *stats)
...
@@ -67,15 +67,11 @@ int econet_eth_get_stats(const char *ifname, struct eth_stats *stats)
/* Check and fetch stats if the Interface belongs to hsgmii_lan driver */
/* Check and fetch stats if the Interface belongs to hsgmii_lan driver */
if
(
!
hsgmii_lan_prvt_get_port_statistics
(
ifname
,
stats
,
NULL
))
{
if
(
!
hsgmii_lan_prvt_get_port_statistics
(
ifname
,
stats
,
NULL
))
{
return
0
;
return
0
;
}
}
else
if
(
!
strcmp
(
ifname
,
"ae_wan"
))
{
libethernet_err
(
"invalid port name: %s
\n
"
,
ifname
);
/* Check and fetch rstats if the Interface belongs to ae_wan driver */
return
-
1
;
if
(
!
ae_wan_prvt_get_port_statistics
(
stats
,
NULL
))
{
}
return
0
;
}
if
(
!
strcmp
(
ifname
,
"ae_wan"
))
{
/* Check and fetch rstats if the Interface belongs to ae_wan driver */
if
(
!
ae_wan_prvt_get_port_statistics
(
stats
,
NULL
))
{
return
0
;
}
}
libethernet_err
(
"error reading stats for interface %s
\n
"
,
ifname
);
libethernet_err
(
"error reading stats for interface %s
\n
"
,
ifname
);
...
@@ -100,16 +96,11 @@ int econet_eth_get_rmon_stats(const char *ifname, struct eth_rmon_stats *rstats)
...
@@ -100,16 +96,11 @@ int econet_eth_get_rmon_stats(const char *ifname, struct eth_rmon_stats *rstats)
/* Check and fetch rstats if the Interface belongs to hsgmii_lan driver */
/* Check and fetch rstats if the Interface belongs to hsgmii_lan driver */
if
(
!
hsgmii_lan_prvt_get_port_statistics
(
ifname
,
NULL
,
rstats
))
{
if
(
!
hsgmii_lan_prvt_get_port_statistics
(
ifname
,
NULL
,
rstats
))
{
return
0
;
return
0
;
}
}
else
if
(
!
strcmp
(
ifname
,
"ae_wan"
))
{
/* Check and fetch rstats if the Interface belongs to ae_wan driver */
libethernet_err
(
"invalid port name: %s
\n
"
,
ifname
);
if
(
!
ae_wan_prvt_get_port_statistics
(
NULL
,
rstats
))
{
return
-
1
;
return
0
;
}
}
if
(
!
strcmp
(
ifname
,
"ae_wan"
))
{
/* Check and fetch rstats if the Interface belongs to ae_wan driver */
if
(
!
ae_wan_prvt_get_port_statistics
(
NULL
,
rstats
))
{
return
0
;
}
}
libethernet_err
(
"error reading rmon stats for interface %s
\n
"
,
ifname
);
libethernet_err
(
"error reading rmon stats for interface %s
\n
"
,
ifname
);
...
...
This diff is collapsed.
Click to expand it.
Markus Gothe
@markus.gothe
mentioned in commit
3161ec26
·
5 months ago
mentioned in commit
3161ec26
mentioned in commit 3161ec269840d4733c37fe8e5d85f2b631b45cc1
Toggle commit list
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