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
d12219a0
Commit
d12219a0
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 ethernet padding on axnet_cs
parent
6e0f1eff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
drivers/net/pcmcia/axnet_cs.c
drivers/net/pcmcia/axnet_cs.c
+11
-3
No files found.
drivers/net/pcmcia/axnet_cs.c
View file @
d12219a0
...
...
@@ -1216,7 +1216,8 @@ static int ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
struct
ei_device
*
ei_local
=
(
struct
ei_device
*
)
dev
->
priv
;
int
length
,
send_length
,
output_page
;
unsigned
long
flags
;
u8
packet
[
ETH_ZLEN
];
netif_stop_queue
(
dev
);
length
=
skb
->
len
;
...
...
@@ -1241,7 +1242,7 @@ static int ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
ei_local
->
irqlock
=
1
;
send_length
=
ETH_ZLEN
<
length
?
length
:
ETH_ZLEN
;
/*
* We have two Tx slots available for use. Find the first free
* slot, and then perform some sanity checks. With two Tx bufs,
...
...
@@ -1286,7 +1287,14 @@ static int ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
* trigger the send later, upon receiving a Tx done interrupt.
*/
ei_block_output
(
dev
,
length
,
skb
->
data
,
output_page
);
if
(
length
==
skb
->
len
)
ei_block_output
(
dev
,
length
,
skb
->
data
,
output_page
);
else
{
memset
(
packet
,
0
,
ETH_ZLEN
);
memcpy
(
packet
,
skb
->
data
,
skb
->
len
);
ei_block_output
(
dev
,
length
,
packet
,
output_page
);
}
if
(
!
ei_local
->
txing
)
{
ei_local
->
txing
=
1
;
...
...
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