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
5bb682b7
Commit
5bb682b7
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] padto -f ix am79c961 using padto
parent
17a35e6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
drivers/net/am79c961a.c
drivers/net/am79c961a.c
+9
-1
No files found.
drivers/net/am79c961a.c
View file @
5bb682b7
...
...
@@ -407,10 +407,18 @@ static int
am79c961_sendpacket
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
)
{
struct
dev_priv
*
priv
=
(
struct
dev_priv
*
)
dev
->
priv
;
unsigned
int
length
=
ETH_ZLEN
<
skb
->
len
?
skb
->
len
:
ETH_ZLEN
;
unsigned
int
length
=
skb
->
len
;
unsigned
int
hdraddr
,
bufaddr
;
unsigned
int
head
;
unsigned
long
flags
;
/* FIXME: I thought the 79c961 could do padding - RMK ??? */
if
(
length
<
ETH_ZLEN
)
{
skb
=
skb_padto
(
skb
,
ETH_ZLEN
);
if
(
skb
==
NULL
)
return
0
;
length
=
ETH_ZLEN
;
}
head
=
priv
->
txhead
;
hdraddr
=
priv
->
txhdr
+
(
head
<<
3
);
...
...
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