Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
qosmngr
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
qosmngr
Commits
9f40a004
Project 'iopsys/qosmngr' was moved to 'hal/qosmngr'. Please update any links and bookmarks that may still have the old path.
Commit
9f40a004
authored
2 years ago
by
Amit Kumar
Browse files
Options
Downloads
Patches
Plain Diff
qosmngr: handling to get number of queue
parent
56ebfed1
No related branches found
No related tags found
No related merge requests found
Pipeline
#89245
passed
2 years ago
Stage: static_code_analysis
Stage: functional_test
Stage: api_test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.c
+6
-1
6 additions, 1 deletion
src/main.c
with
6 additions
and
1 deletion
src/main.c
+
6
−
1
View file @
9f40a004
...
@@ -89,11 +89,12 @@ int main(int argc, char **argv)
...
@@ -89,11 +89,12 @@ int main(int argc, char **argv)
{
{
int
ret
;
int
ret
;
int
ch
;
int
ch
;
int
num_of_q
;
/* Logging to syslog */
/* Logging to syslog */
openlog
(
"qosmngr"
,
LOG_PID
|
LOG_CONS
,
LOG_LOCAL1
);
openlog
(
"qosmngr"
,
LOG_PID
|
LOG_CONS
,
LOG_LOCAL1
);
while
((
ch
=
getopt
(
argc
,
argv
,
"vs:e:"
))
!=
-
1
)
{
while
((
ch
=
getopt
(
argc
,
argv
,
"vs
q
:e:"
))
!=
-
1
)
{
switch
(
ch
)
{
switch
(
ch
)
{
case
'v'
:
case
'v'
:
qosmngr_version
();
qosmngr_version
();
...
@@ -101,6 +102,10 @@ int main(int argc, char **argv)
...
@@ -101,6 +102,10 @@ int main(int argc, char **argv)
case
's'
:
case
's'
:
ubus_socket
=
optarg
;
ubus_socket
=
optarg
;
break
;
break
;
case
'q'
:
num_of_q
=
qos_get_num_of_queue
(
argv
[
argc
-
1
]);
printf
(
"%d"
,
num_of_q
);
exit
(
0
);
default:
default:
break
;
break
;
}
}
...
...
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