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
268000b7
Commit
268000b7
authored
Jan 10, 2003
by
Alan Cox
Committed by
Linus Torvalds
Jan 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] padto - fix 82596 using skb_padto
parent
8cee0ea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
drivers/net/82596.c
drivers/net/82596.c
+7
-1
No files found.
drivers/net/82596.c
View file @
268000b7
...
...
@@ -1063,12 +1063,18 @@ static int i596_start_xmit(struct sk_buff *skb, struct net_device *dev)
struct
i596_private
*
lp
=
(
struct
i596_private
*
)
dev
->
priv
;
struct
tx_cmd
*
tx_cmd
;
struct
i596_tbd
*
tbd
;
short
length
=
ETH_ZLEN
<
skb
->
len
?
skb
->
len
:
ETH_ZLEN
;
short
length
=
skb
->
len
;
dev
->
trans_start
=
jiffies
;
DEB
(
DEB_STARTTX
,
printk
(
KERN_DEBUG
"%s: i596_start_xmit(%x,%x) called
\n
"
,
dev
->
name
,
skb
->
len
,
(
unsigned
int
)
skb
->
data
));
if
(
skb
->
len
<
ETH_ZLEN
)
{
skb
=
skb_padto
(
skb
,
ETH_ZLEN
);
if
(
skb
==
NULL
)
return
0
;
length
=
ETH_ZLEN
;
}
netif_stop_queue
(
dev
);
tx_cmd
=
lp
->
tx_cmds
+
lp
->
next_tx_cmd
;
...
...
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