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
Merge requests
!21
libethernet: removed unwanted code in rmon stats
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
libethernet: removed unwanted code in rmon stats
ethernet_rmonstats_followup
into
devel
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Amit Kumar
requested to merge
ethernet_rmonstats_followup
into
devel
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
devel
devel (base)
and
latest version
latest version
d94e3029
1 commit,
1 year ago
1 file
+
0
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
bcm/bcm.c
+
0
−
6
Options
@@ -417,19 +417,13 @@ int bcm_eth_get_stats(const char *ifname, struct eth_stats *s)
int
bcm_eth_get_rmon_stats
(
const
char
*
ifname
,
struct
eth_rmon_stats
*
rmon
)
{
struct
ethswctl_data
data
;
int
unit
=
-
1
;
int
port
=
-
1
;
int
ret
;
if
(
!
rmon
)
return
-
1
;
memset
(
&
data
,
0
,
sizeof
(
struct
ethswctl_data
));
ret
=
bcm_eth_get_unit_port
(
ifname
,
&
unit
,
&
port
);
if
(
ret
)
return
-
1
;
//data.op = ETHSWDUMPMIB;
data
.
op
=
ETHSWEMACGET
;
strncpy
(
data
.
ifname
,
ifname
,
OBJIFNAMSIZ
);
data
.
addressing_flag
|=
(
ETHSW_ADDRESSING_DEV
);
Loading