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
5657cc21
Commit
5657cc21
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] 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)
...
@@ -187,6 +187,7 @@ static int de600_start_xmit(struct sk_buff *skb, struct net_device *dev)
int
len
;
int
len
;
int
tickssofar
;
int
tickssofar
;
u8
*
buffer
=
skb
->
data
;
u8
*
buffer
=
skb
->
data
;
int
i
;
if
(
free_tx_pages
<=
0
)
{
/* Do timeouts, to avoid hangs. */
if
(
free_tx_pages
<=
0
)
{
/* Do timeouts, to avoid hangs. */
tickssofar
=
jiffies
-
dev
->
trans_start
;
tickssofar
=
jiffies
-
dev
->
trans_start
;
...
@@ -228,8 +229,10 @@ static int de600_start_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -228,8 +229,10 @@ static int de600_start_xmit(struct sk_buff *skb, struct net_device *dev)
}
}
de600_setup_address
(
transmit_from
,
RW_ADDR
);
de600_setup_address
(
transmit_from
,
RW_ADDR
);
for
(
;
len
>
0
;
--
len
,
++
buffer
)
for
(
i
=
0
;
i
<
skb
->
len
;
++
i
,
++
buffer
)
de600_put_byte
(
*
buffer
);
de600_put_byte
(
*
buffer
);
for
(;
i
<
len
;
++
i
)
de600_put_byte
(
0
);
if
(
free_tx_pages
--
==
TX_PAGES
)
{
/* No transmission going on */
if
(
free_tx_pages
--
==
TX_PAGES
)
{
/* No transmission going on */
dev
->
trans_start
=
jiffies
;
dev
->
trans_start
=
jiffies
;
...
...
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