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
fd770e53
Commit
fd770e53
authored
7 years ago
by
Aastha Mehta
Browse files
Options
Downloads
Patches
Plain Diff
add indexes in NIC datastructure for async implementation
parent
28a4eede
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
+10
-0
10 additions, 0 deletions
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+10
-0
10 additions, 0 deletions
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
with
20 additions
and
0 deletions
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
+
10
−
0
View file @
fd770e53
...
...
@@ -589,6 +589,16 @@ struct bnx2x_fastpath {
u16
rx_comp_prod
;
u16
rx_comp_cons
;
u16
rx_sge_prod
;
#ifdef CONFIG_XEN_SME
u16
hwi_bd_prod
;
u16
hwi_bd_cons
;
u16
hwi_comp_prod
;
u16
hwi_comp_cons
;
u16
swi_bd_prod
;
u16
swi_bd_cons
;
u16
swi_comp_prod
;
u16
swi_comp_cons
;
#endif
/* The last maximal completed SGE */
u16
last_max_sge
;
__le16
*
rx_cons_sb
;
...
...
This diff is collapsed.
Click to expand it.
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+
10
−
0
View file @
fd770e53
...
...
@@ -4609,6 +4609,16 @@ static int bnx2x_alloc_rx_bds(struct bnx2x_fastpath *fp,
bnx2x_fp_stats
(
bp
,
fp
)
->
eth_q_stats
.
rx_skb_alloc_failed
+=
failure_cnt
;
#ifdef CONFIG_XEN_SME
fp
->
hwi_bd_prod
=
fp
->
rx_bd_prod
;
fp
->
hwi_bd_cons
=
fp
->
rx_bd_cons
;
fp
->
hwi_comp_prod
=
fp
->
rx_comp_prod
;
fp
->
hwi_comp_cons
=
fp
->
rx_comp_cons
;
fp
->
swi_bd_prod
=
fp
->
rx_bd_prod
;
fp
->
swi_bd_cons
=
fp
->
rx_bd_cons
;
fp
->
swi_comp_prod
=
fp
->
rx_comp_prod
;
fp
->
swi_comp_cons
=
fp
->
rx_comp_cons
;
#endif
return
i
-
failure_cnt
;
}
...
...
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