Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux-backend-4.9.5
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
pacer
linux-backend-4.9.5
Commits
cf75c2cf
Commit
cf75c2cf
authored
7 years ago
by
Aastha Mehta
Browse files
Options
Downloads
Patches
Plain Diff
debug info about work done in polling function
parent
d2b476cc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+6
-4
6 additions, 4 deletions
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
with
6 additions
and
4 deletions
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+
6
−
4
View file @
cf75c2cf
...
...
@@ -3621,6 +3621,7 @@ static int bnx2x_poll(struct napi_struct *napi, int budget)
int
was_there_work
=
0
;
union
eth_rx_cqe
*
cqe
=
NULL
;
struct
eth_fast_path_rx_cqe
*
cqe_fp
=
NULL
;
int
total_work_done
=
0
;
#endif
#ifdef BNX2X_STOP_ON_ERROR
...
...
@@ -3639,6 +3640,7 @@ redo_poll:
was_there_work
=
bnx2x_has_rx_work
(
fp
);
if
(
was_there_work
)
rx_work_done
=
bnx2x_rx_int
(
fp
,
budget
);
total_work_done
+=
rx_work_done
;
#else
rx_work_done
=
(
bnx2x_has_rx_work
(
fp
))
?
bnx2x_rx_int
(
fp
,
budget
)
:
0
;
#endif
...
...
@@ -3695,16 +3697,16 @@ redo_poll:
#endif
memset
(
dbg_buff
,
0
,
DBG_BUF_SIZE
);
sprintf
(
dbg_buff
,
"REDO POLL
rx_
work
_
done: %d, was_there_work: %d"
,
rx_work_done
,
was_there_work
);
"REDO POLL work
done: %d,
total work: %d,
was_there_work: %d"
,
rx_work_done
,
total_work_done
,
was_there_work
);
xsl_print_rx_data
(
bp
->
dev
,
fp
->
index
,
fp
->
rx_bd_prod
,
fp
->
rx_bd_cons
,
fp
->
rx_comp_prod
,
fp
->
rx_comp_cons
,
dbg_buff
);
goto
redo_poll
;
}
memset
(
dbg_buff
,
0
,
DBG_BUF_SIZE
);
sprintf
(
dbg_buff
,
"NAPI COMPLETE work done: %d was there work: %d"
,
rx_work_done
,
was_there_work
);
sprintf
(
dbg_buff
,
"NAPI COMPLETE work done: %d
, total work: %d,
was there work: %d"
,
rx_work_done
,
total_work_done
,
was_there_work
);
xsl_print_rx_data
(
bp
->
dev
,
fp
->
index
,
fp
->
rx_bd_prod
,
fp
->
rx_bd_cons
,
fp
->
rx_comp_prod
,
fp
->
rx_comp_cons
,
dbg_buff
);
...
...
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