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
52bc51b1
Commit
52bc51b1
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 atarilance using padto
parent
c351d4b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
drivers/net/atarilance.c
drivers/net/atarilance.c
+15
-5
No files found.
drivers/net/atarilance.c
View file @
52bc51b1
...
...
@@ -787,6 +787,21 @@ static int lance_start_xmit( struct sk_buff *skb, struct net_device *dev )
DPRINTK
(
2
,
(
"%s: lance_start_xmit() called, csr0 %4.4x.
\n
"
,
dev
->
name
,
DREG
));
/* The old LANCE chips doesn't automatically pad buffers to min. size. */
len
=
skb
->
len
;
if
(
len
<
ETH_ZLEN
)
len
=
ETH_ZLEN
;
/* PAM-Card has a bug: Can only send packets with even number of bytes! */
else
if
(
lp
->
cardtype
==
PAM_CARD
&&
(
len
&
1
))
++
len
;
if
(
len
>
skb
->
len
)
{
skb
=
skb_padto
(
skb
,
len
);
if
(
skb
==
NULL
)
return
0
;
}
netif_stop_queue
(
dev
);
/* Fill in a Tx ring entry */
...
...
@@ -816,11 +831,6 @@ static int lance_start_xmit( struct sk_buff *skb, struct net_device *dev )
* last.
*/
/* The old LANCE chips doesn't automatically pad buffers to min. size. */
len
=
(
ETH_ZLEN
<
skb
->
len
)
?
skb
->
len
:
ETH_ZLEN
;
/* PAM-Card has a bug: Can only send packets with even number of bytes! */
if
(
lp
->
cardtype
==
PAM_CARD
&&
(
len
&
1
))
++
len
;
head
->
length
=
-
len
;
head
->
misc
=
0
;
...
...
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