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
1f1c31e0
Commit
1f1c31e0
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 bagetlance using padto
parent
52bc51b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
drivers/net/bagetlance.c
drivers/net/bagetlance.c
+12
-6
No files found.
drivers/net/bagetlance.c
View file @
1f1c31e0
...
...
@@ -830,6 +830,18 @@ static int lance_start_xmit( struct sk_buff *skb, struct net_device *dev )
struct
lance_tx_head
*
head
;
unsigned
long
flags
;
/* 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
;
if
(
len
>
skb
->
len
)
{
skb
=
skb_padto
(
skb
,
len
);
if
(
skb
==
NULL
)
return
0
;
}
/* Transmitter timeout, serious problems. */
if
(
dev
->
tbusy
)
{
int
tickssofar
=
jiffies
-
dev
->
trans_start
;
...
...
@@ -916,12 +928,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
;
lp
->
memcpy_f
(
PKTBUF_ADDR
(
head
),
(
void
*
)
skb
->
data
,
skb
->
len
);
...
...
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