Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
easy-soc-libs
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
Container registry
Model registry
Operate
Environments
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
easy-soc-libs
Commits
95dc95bf
Commit
95dc95bf
authored
2 years ago
by
Padmalochan Mohapatra
Committed by
Rahul Thakur
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
libqos : Support of queue stats collection for Qualcomm platform.
parent
4569d6a5
No related branches found
No related tags found
1 merge request
!338
libqos : Support of queue stats collection for Qualcomm platform.
Pipeline
#83280
passed
2 years ago
Stage: static_code_analysis
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
libqos/Makefile
+7
-0
7 additions, 0 deletions
libqos/Makefile
libqos/include/qos.h
+1
-1
1 addition, 1 deletion
libqos/include/qos.h
libqos/linux/linux_qos.c
+7
-1
7 additions, 1 deletion
libqos/linux/linux_qos.c
libqos/src/qos.c
+1
-1
1 addition, 1 deletion
libqos/src/qos.c
with
16 additions
and
3 deletions
libqos/Makefile
+
7
−
0
View file @
95dc95bf
...
@@ -36,6 +36,13 @@ OBJ_LIB += $(addprefix $(LIB_DIR)/src/, ecnt_qos.o )
...
@@ -36,6 +36,13 @@ OBJ_LIB += $(addprefix $(LIB_DIR)/src/, ecnt_qos.o )
LIBQOS_CFLAGS
+=
$(
DIAG_CFLAGS
)
-Werror
LIBQOS_CFLAGS
+=
$(
DIAG_CFLAGS
)
-Werror
endif
endif
ifeq
($(PLATFORM),IPQ95XX)
LIB_DIR
=
linux
LIBS
+=
-lnl-3
OBJ_LIB
+=
$(
addprefix
$(
LIB_DIR
)
/, linux_qos.o
)
LIBQOS_CFLAGS
+=
$(
DIAG_CFLAGS
)
-Werror
-I
./
$(
LIB_DIR
)
endif
ifeq
($(PLATFORM),LINUX)
ifeq
($(PLATFORM),LINUX)
LIB_DIR
=
linux
LIB_DIR
=
linux
LIBS
+=
-lnl-3
LIBS
+=
-lnl-3
...
...
This diff is collapsed.
Click to expand it.
libqos/include/qos.h
+
1
−
1
View file @
95dc95bf
...
@@ -25,7 +25,7 @@ extern const struct qos_ops qos_ecnt_ops_eth;
...
@@ -25,7 +25,7 @@ extern const struct qos_ops qos_ecnt_ops_eth;
extern
const
struct
qos_ops
qos_ecnt_ops_nas
;
extern
const
struct
qos_ops
qos_ecnt_ops_nas
;
extern
const
struct
qos_ops
qos_ecnt_ops_ae_wan
;
extern
const
struct
qos_ops
qos_ecnt_ops_ae_wan
;
#endif
#endif
#ifdef
IOPSYS_LINUX
#if
def
ined(
IOPSYS_LINUX
) || defined(IPQ95XX)
extern
const
struct
qos_ops
qos_linux_ops_eth
;
extern
const
struct
qos_ops
qos_linux_ops_eth
;
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
libqos/linux/linux_qos.c
+
7
−
1
View file @
95dc95bf
...
@@ -351,8 +351,14 @@ static int linux_get_stats(const char *ifname,
...
@@ -351,8 +351,14 @@ static int linux_get_stats(const char *ifname,
return
ret
;
return
ret
;
}
}
#if defined(IOPSYS_LINUX)
const
struct
qos_ops
qos_linux_ops_eth
=
{
const
struct
qos_ops
qos_linux_ops_eth
=
{
.
ifname
=
"lan"
,
.
ifname
=
"lan"
,
.
get_stats
=
linux_get_stats
,
.
get_stats
=
linux_get_stats
,
};
};
#elif defined(IPQ95XX)
const
struct
qos_ops
qos_linux_ops_eth
=
{
.
ifname
=
"eth"
,
.
get_stats
=
linux_get_stats
,
};
#endif
This diff is collapsed.
Click to expand it.
libqos/src/qos.c
+
1
−
1
View file @
95dc95bf
...
@@ -40,7 +40,7 @@ const struct qos_ops *qos_ops[] = {
...
@@ -40,7 +40,7 @@ const struct qos_ops *qos_ops[] = {
&
qos_ecnt_ops_nas
,
&
qos_ecnt_ops_nas
,
&
qos_ecnt_ops_ae_wan
,
&
qos_ecnt_ops_ae_wan
,
#endif
#endif
#ifdef
IOPSYS_LINUX
#if
def
ined(
IOPSYS_LINUX
) || defined(IPQ95XX)
&
qos_linux_ops_eth
,
&
qos_linux_ops_eth
,
#endif
#endif
};
};
...
...
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