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
c351d4b5
Commit
c351d4b5
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 - fix ariadne using skb_padto
parent
5bb682b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
drivers/net/ariadne.c
drivers/net/ariadne.c
+11
-2
No files found.
drivers/net/ariadne.c
View file @
c351d4b5
...
...
@@ -574,6 +574,7 @@ static int ariadne_start_xmit(struct sk_buff *skb, struct net_device *dev)
volatile
struct
Am79C960
*
lance
=
(
struct
Am79C960
*
)
dev
->
base_addr
;
int
entry
;
unsigned
long
flags
;
int
len
=
skb
->
len
;
#if 0
if (ariadne_debug > 3) {
...
...
@@ -584,6 +585,15 @@ static int ariadne_start_xmit(struct sk_buff *skb, struct net_device *dev)
}
#endif
/* FIXME: is the 79C960 new enough to do its own padding right ? */
if
(
skb
->
len
<
ETH_ZLEN
)
{
skb
=
skb_padto
(
skb
,
ETH_ZLEN
);
if
(
skb
==
NULL
)
return
0
;
len
=
ETH_ZLEN
;
}
/* Fill in a Tx ring entry */
#if 0
...
...
@@ -613,8 +623,7 @@ static int ariadne_start_xmit(struct sk_buff *skb, struct net_device *dev)
priv
->
tx_ring
[
entry
]
->
TMD2
=
swapw
((
u_short
)
-
skb
->
len
);
priv
->
tx_ring
[
entry
]
->
TMD3
=
0x0000
;
memcpyw
(
priv
->
tx_buff
[
entry
],
(
u_short
*
)
skb
->
data
,
skb
->
len
<=
ETH_ZLEN
?
ETH_ZLEN
:
skb
->
len
);
memcpyw
(
priv
->
tx_buff
[
entry
],
(
u_short
*
)
skb
->
data
,
len
);
#if 0
{
...
...
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