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
Kirill Smelkov
linux
Commits
9b18b619
Commit
9b18b619
authored
Jan 14, 2003
by
Roger Luethi
Committed by
Linus Torvalds
Jan 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix via-rhine using skb_padto
This patch has already made it into 2.4.21pre3-ac4. Please apply.
parent
4dd94cac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
drivers/net/via-rhine.c
drivers/net/via-rhine.c
+6
-0
No files found.
drivers/net/via-rhine.c
View file @
9b18b619
...
@@ -1239,6 +1239,12 @@ static int via_rhine_start_tx(struct sk_buff *skb, struct net_device *dev)
...
@@ -1239,6 +1239,12 @@ static int via_rhine_start_tx(struct sk_buff *skb, struct net_device *dev)
/* Calculate the next Tx descriptor entry. */
/* Calculate the next Tx descriptor entry. */
entry
=
np
->
cur_tx
%
TX_RING_SIZE
;
entry
=
np
->
cur_tx
%
TX_RING_SIZE
;
if
(
skb
->
len
<
ETH_ZLEN
)
{
skb
=
skb_padto
(
skb
,
ETH_ZLEN
);
if
(
skb
==
NULL
)
return
0
;
}
np
->
tx_skbuff
[
entry
]
=
skb
;
np
->
tx_skbuff
[
entry
]
=
skb
;
if
((
np
->
drv_flags
&
ReqTxAlign
)
&&
if
((
np
->
drv_flags
&
ReqTxAlign
)
&&
...
...
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