Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
5657cc21
Commit
5657cc21
authored
22 years ago
by
Alan Cox
Committed by
Linus Torvalds
22 years ago
Browse files
Options
Download
Email Patches
Plain Diff
[PATCH] fix padding on de600
parent
e8588f9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
drivers/net/de600.c
drivers/net/de600.c
+4
-1
No files found.
drivers/net/de600.c
View file @
5657cc21
...
...
@@ -187,6 +187,7 @@ static int de600_start_xmit(struct sk_buff *skb, struct net_device *dev)
int
len
;
int
tickssofar
;
u8
*
buffer
=
skb
->
data
;
int
i
;
if
(
free_tx_pages
<=
0
)
{
/* Do timeouts, to avoid hangs. */
tickssofar
=
jiffies
-
dev
->
trans_start
;
...
...
@@ -228,8 +229,10 @@ static int de600_start_xmit(struct sk_buff *skb, struct net_device *dev)
}
de600_setup_address
(
transmit_from
,
RW_ADDR
);
for
(
;
len
>
0
;
--
len
,
++
buffer
)
for
(
i
=
0
;
i
<
skb
->
len
;
++
i
,
++
buffer
)
de600_put_byte
(
*
buffer
);
for
(;
i
<
len
;
++
i
)
de600_put_byte
(
0
);
if
(
free_tx_pages
--
==
TX_PAGES
)
{
/* No transmission going on */
dev
->
trans_start
=
jiffies
;
...
...
This diff is collapsed.
Click to expand it.
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