Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
34c0ccb2
Commit
34c0ccb2
authored
May 20, 2003
by
Scott Feldman
Committed by
Jeff Garzik
May 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] cleanup Tx resources before running ethtool diags.
* Bug fix: clean up Tx resources before running ethtool diags.
parent
e96b44e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
drivers/net/e100/e100_main.c
drivers/net/e100/e100_main.c
+13
-0
No files found.
drivers/net/e100/e100_main.c
View file @
34c0ccb2
...
...
@@ -1588,9 +1588,22 @@ e100_alloc_tcb_pool(struct e100_private *bdp)
void
e100_free_tcb_pool
(
struct
e100_private
*
bdp
)
{
tcb_t
*
tcb
;
int
i
;
/* Return tx skbs */
for
(
i
=
0
;
i
<
bdp
->
params
.
TxDescriptors
;
i
++
)
{
tcb
=
bdp
->
tcb_pool
.
data
;
tcb
+=
bdp
->
tcb_pool
.
head
;
e100_tx_skb_free
(
bdp
,
tcb
);
if
(
NEXT_TCB_TOUSE
(
bdp
->
tcb_pool
.
head
)
==
bdp
->
tcb_pool
.
tail
)
break
;
bdp
->
tcb_pool
.
head
=
NEXT_TCB_TOUSE
(
bdp
->
tcb_pool
.
head
);
}
pci_free_consistent
(
bdp
->
pdev
,
sizeof
(
tcb_t
)
*
bdp
->
params
.
TxDescriptors
,
bdp
->
tcb_pool
.
data
,
bdp
->
tcb_phys
);
bdp
->
tcb_pool
.
head
=
0
;
bdp
->
tcb_pool
.
tail
=
1
;
bdp
->
tcb_phys
=
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment