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
834d41ab
Commit
834d41ab
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 sk_g16
parent
c514e0c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
drivers/net/sk_g16.c
drivers/net/sk_g16.c
+3
-0
No files found.
drivers/net/sk_g16.c
View file @
834d41ab
...
...
@@ -1254,6 +1254,7 @@ static int SK_send_packet(struct sk_buff *skb, struct net_device *dev)
{
struct
priv
*
p
=
(
struct
priv
*
)
dev
->
priv
;
struct
tmd
*
tmdp
;
static
char
pad
[
64
];
PRINTK2
((
"## %s: SK_send_packet() called, CSR0 %#04x.
\n
"
,
SK_NAME
,
SK_read_reg
(
CSR0
)));
...
...
@@ -1278,6 +1279,8 @@ static int SK_send_packet(struct sk_buff *skb, struct net_device *dev)
/* Copy data into dual ported ram */
memcpy_toio
((
tmdp
->
u
.
buffer
&
0x00ffffff
),
skb
->
data
,
skb
->
len
);
if
(
len
!=
skb
->
len
)
memcpy_toio
((
tmdp
->
u
.
buffer
&
0x00ffffff
)
+
sb
->
len
,
pad
,
len
-
skb
->
len
);
writew
(
-
len
,
&
tmdp
->
blen
);
/* set length to transmit */
...
...
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