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
8497303e
Commit
8497303e
authored
6 years ago
by
Aastha Mehta
Browse files
Options
Downloads
Patches
Plain Diff
debug prints to track bnx2x_tx_free_pkts panic
parent
0b31cd13
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
+19
-0
19 additions, 0 deletions
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
with
19 additions
and
0 deletions
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+
19
−
0
View file @
8497303e
...
...
@@ -218,6 +218,11 @@ static u16 bnx2x_free_tx_pkt(struct bnx2x *bp, struct bnx2x_fp_txdata *txdata,
int
nbd
;
u16
split_bd_len
=
0
;
#if CONFIG_XEN_SME
int
orig_nbd
;
u16
orig_first_bd_idx
;
#endif
/* prefetch skb end pointer to speedup dev_kfree_skb() */
prefetch
(
&
skb
->
end
);
...
...
@@ -227,6 +232,10 @@ static u16 bnx2x_free_tx_pkt(struct bnx2x *bp, struct bnx2x_fp_txdata *txdata,
tx_start_bd
=
&
txdata
->
tx_desc_ring
[
bd_idx
].
start_bd
;
nbd
=
le16_to_cpu
(
tx_start_bd
->
nbd
)
-
1
;
#if CONFIG_XEN_SME
orig_nbd
=
nbd
;
orig_first_bd_idx
=
bd_idx
;
#endif
#ifdef BNX2X_STOP_ON_ERROR
if
((
nbd
-
1
)
>
(
MAX_SKB_FRAGS
+
2
))
{
BNX2X_ERR
(
"BAD nbd!
\n
"
);
...
...
@@ -272,6 +281,16 @@ static u16 bnx2x_free_tx_pkt(struct bnx2x *bp, struct bnx2x_fp_txdata *txdata,
}
/* release skb */
#if CONFIG_XEN_SME
if
(
!
skb
)
{
BNX2X_ERR
(
"NULL SKB TXQ[%d] idx %d nbd %d => %d bd_idx %d => %d
\n
"
"bd_prod %u pkt_prod %u bd_cons %u pkt_cons %u hw_cons %u"
,
txdata
->
txq_index
,
idx
,
orig_nbd
,
nbd
,
orig_first_bd_idx
,
bd_idx
,
txdata
->
tx_bd_prod
,
txdata
->
tx_pkt_prod
,
txdata
->
tx_bd_cons
,
txdata
->
tx_pkt_cons
,
le16_to_cpu
(
*
txdata
->
tx_cons_sb
)
);
}
#endif
WARN_ON
(
!
skb
);
if
(
likely
(
skb
))
{
(
*
pkts_compl
)
++
;
...
...
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