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
eace991d
Commit
eace991d
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 de620
parent
5657cc21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
drivers/net/de620.c
drivers/net/de620.c
+5
-2
No files found.
drivers/net/de620.c
View file @
eace991d
...
...
@@ -315,7 +315,7 @@ de620_read_byte(struct net_device *dev)
}
static
inline
void
de620_write_block
(
struct
net_device
*
dev
,
byte
*
buffer
,
int
count
)
de620_write_block
(
struct
net_device
*
dev
,
byte
*
buffer
,
int
count
,
int
pad
)
{
#ifndef LOWSPEED
byte
uflip
=
NIC_Cmd
^
(
DS0
|
DS1
);
...
...
@@ -334,6 +334,9 @@ de620_write_block(struct net_device *dev, byte *buffer, int count)
for
(
;
count
>
0
;
--
count
,
++
buffer
)
{
de620_put_byte
(
dev
,
*
buffer
);
}
for
(
count
=
pad
;
count
>
0
;
--
count
,
++
buffer
)
{
de620_put_byte
(
dev
,
0
);
}
de620_send_command
(
dev
,
W_DUMMY
);
#ifdef COUNT_LOOPS
/* trial debug output: loops per byte in de620_ready() */
...
...
@@ -571,7 +574,7 @@ static int de620_start_xmit(struct sk_buff *skb, struct net_device *dev)
spin_unlock_irqrestore
(
&
de620_lock
,
flags
);
return
1
;
}
de620_write_block
(
dev
,
buffer
,
len
);
de620_write_block
(
dev
,
buffer
,
skb
->
len
,
len
-
skb
->
len
);
dev
->
trans_start
=
jiffies
;
if
(
!
(
using_txbuf
==
(
TXBF0
|
TXBF1
)))
...
...
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