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
dec03d92
Commit
dec03d92
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 eexpress using skb_padto
parent
3cd1b5e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
drivers/net/eexpress.c
drivers/net/eexpress.c
+8
-2
No files found.
drivers/net/eexpress.c
View file @
dec03d92
...
...
@@ -636,6 +636,7 @@ static void eexp_timeout(struct net_device *dev)
static
int
eexp_xmit
(
struct
sk_buff
*
buf
,
struct
net_device
*
dev
)
{
struct
net_local
*
lp
=
(
struct
net_local
*
)
dev
->
priv
;
short
length
=
buf
->
len
;
#ifdef CONFIG_SMP
unsigned
long
flags
;
#endif
...
...
@@ -644,6 +645,13 @@ static int eexp_xmit(struct sk_buff *buf, struct net_device *dev)
printk
(
KERN_DEBUG
"%s: eexp_xmit()
\n
"
,
dev
->
name
);
#endif
if
(
buf
->
len
<
ETH_ZLEN
)
{
buf
=
skb_padto
(
buf
,
ETH_ZLEN
);
if
(
buf
==
NULL
)
return
0
;
length
=
buf
->
len
;
}
disable_irq
(
dev
->
irq
);
/*
...
...
@@ -656,8 +664,6 @@ static int eexp_xmit(struct sk_buff *buf, struct net_device *dev)
#endif
{
unsigned
short
length
=
(
ETH_ZLEN
<
buf
->
len
)
?
buf
->
len
:
ETH_ZLEN
;
unsigned
short
*
data
=
(
unsigned
short
*
)
buf
->
data
;
lp
->
stats
.
tx_bytes
+=
length
;
...
...
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