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
9a648288
Commit
9a648288
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 eepro using skb_padto
parent
7d5dc678
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
drivers/net/eepro.c
drivers/net/eepro.c
+7
-1
No files found.
drivers/net/eepro.c
View file @
9a648288
...
@@ -1130,17 +1130,23 @@ static int eepro_send_packet(struct sk_buff *skb, struct net_device *dev)
...
@@ -1130,17 +1130,23 @@ static int eepro_send_packet(struct sk_buff *skb, struct net_device *dev)
struct
eepro_local
*
lp
=
(
struct
eepro_local
*
)
dev
->
priv
;
struct
eepro_local
*
lp
=
(
struct
eepro_local
*
)
dev
->
priv
;
unsigned
long
flags
;
unsigned
long
flags
;
int
ioaddr
=
dev
->
base_addr
;
int
ioaddr
=
dev
->
base_addr
;
short
length
=
skb
->
len
;
if
(
net_debug
>
5
)
if
(
net_debug
>
5
)
printk
(
KERN_DEBUG
"%s: entering eepro_send_packet routine.
\n
"
,
dev
->
name
);
printk
(
KERN_DEBUG
"%s: entering eepro_send_packet routine.
\n
"
,
dev
->
name
);
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
);
eepro_dis_int
(
ioaddr
);
eepro_dis_int
(
ioaddr
);
spin_lock_irqsave
(
&
lp
->
lock
,
flags
);
spin_lock_irqsave
(
&
lp
->
lock
,
flags
);
{
{
short
length
=
ETH_ZLEN
<
skb
->
len
?
skb
->
len
:
ETH_ZLEN
;
unsigned
char
*
buf
=
skb
->
data
;
unsigned
char
*
buf
=
skb
->
data
;
if
(
hardware_send_packet
(
dev
,
buf
,
length
))
if
(
hardware_send_packet
(
dev
,
buf
,
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