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
a8f20e65
Commit
a8f20e65
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 at1700
parent
53168dd6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
drivers/net/at1700.c
drivers/net/at1700.c
+12
-1
No files found.
drivers/net/at1700.c
View file @
a8f20e65
...
@@ -572,7 +572,9 @@ static int net_send_packet (struct sk_buff *skb, struct net_device *dev)
...
@@ -572,7 +572,9 @@ static int net_send_packet (struct sk_buff *skb, struct net_device *dev)
struct
net_local
*
lp
=
(
struct
net_local
*
)
dev
->
priv
;
struct
net_local
*
lp
=
(
struct
net_local
*
)
dev
->
priv
;
int
ioaddr
=
dev
->
base_addr
;
int
ioaddr
=
dev
->
base_addr
;
short
length
=
ETH_ZLEN
<
skb
->
len
?
skb
->
len
:
ETH_ZLEN
;
short
length
=
ETH_ZLEN
<
skb
->
len
?
skb
->
len
:
ETH_ZLEN
;
short
len
=
skb
->
len
;
unsigned
char
*
buf
=
skb
->
data
;
unsigned
char
*
buf
=
skb
->
data
;
static
u8
pad
[
ETH_ZLEN
];
netif_stop_queue
(
dev
);
netif_stop_queue
(
dev
);
...
@@ -584,7 +586,16 @@ static int net_send_packet (struct sk_buff *skb, struct net_device *dev)
...
@@ -584,7 +586,16 @@ static int net_send_packet (struct sk_buff *skb, struct net_device *dev)
lp
->
tx_queue_ready
=
0
;
lp
->
tx_queue_ready
=
0
;
{
{
outw
(
length
,
ioaddr
+
DATAPORT
);
outw
(
length
,
ioaddr
+
DATAPORT
);
outsw
(
ioaddr
+
DATAPORT
,
buf
,
(
length
+
1
)
>>
1
);
/* Packet data */
outsw
(
ioaddr
+
DATAPORT
,
buf
,
len
>>
1
);
/* Check for dribble byte */
if
(
len
&
1
)
{
outw
(
skb
->
data
[
skb
->
len
-
1
],
ioaddr
+
DATAPORT
);
len
++
;
}
/* Check for packet padding */
if
(
length
!=
skb
->
len
)
outsw
(
ioaddr
+
DATAPORT
,
pad
,
(
length
-
len
+
1
)
>>
1
);
lp
->
tx_queue
++
;
lp
->
tx_queue
++
;
lp
->
tx_queue_len
+=
length
+
2
;
lp
->
tx_queue_len
+=
length
+
2
;
...
...
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