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
b4850fc1
Commit
b4850fc1
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] fix lasi_82596 using skb_padto
parent
e7851533
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
drivers/net/lasi_82596.c
drivers/net/lasi_82596.c
+8
-1
No files found.
drivers/net/lasi_82596.c
View file @
b4850fc1
...
@@ -1080,12 +1080,19 @@ static int i596_start_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -1080,12 +1080,19 @@ static int i596_start_xmit(struct sk_buff *skb, struct net_device *dev)
struct
i596_private
*
lp
=
(
struct
i596_private
*
)
dev
->
priv
;
struct
i596_private
*
lp
=
(
struct
i596_private
*
)
dev
->
priv
;
struct
tx_cmd
*
tx_cmd
;
struct
tx_cmd
*
tx_cmd
;
struct
i596_tbd
*
tbd
;
struct
i596_tbd
*
tbd
;
short
length
=
ETH_ZLEN
<
skb
->
len
?
skb
->
len
:
ETH_ZLEN
;
short
length
=
skb
->
len
;
dev
->
trans_start
=
jiffies
;
dev
->
trans_start
=
jiffies
;
DEB
(
DEB_STARTTX
,
printk
(
"%s: i596_start_xmit(%x,%p) called
\n
"
,
dev
->
name
,
DEB
(
DEB_STARTTX
,
printk
(
"%s: i596_start_xmit(%x,%p) called
\n
"
,
dev
->
name
,
skb
->
len
,
skb
->
data
));
skb
->
len
,
skb
->
data
));
if
(
length
<
ETH_ZLEN
)
{
skb
=
skb_padto
(
skb
,
ETH_ZLEN
);
if
(
skb
==
NULL
)
return
0
;
length
=
ETH_ZLEN
;
}
netif_stop_queue
(
dev
);
netif_stop_queue
(
dev
);
tx_cmd
=
lp
->
tx_cmds
+
lp
->
next_tx_cmd
;
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