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
c9b46cc9
Commit
c9b46cc9
authored
Mar 18, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build error on non-x86.
parent
085c9a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
drivers/net/ns83820.c
drivers/net/ns83820.c
+0
-18
No files found.
drivers/net/ns83820.c
View file @
c9b46cc9
...
...
@@ -797,23 +797,6 @@ static void ns83820_cleanup_rx(struct ns83820 *dev)
}
}
/* I hate the network stack sometimes */
#ifdef __i386__
#define skb_mangle_for_davem(skb,len) (skb)
#else
static
inline
struct
sk_buff
*
skb_mangle_for_davem
(
struct
sk_buff
*
skb
,
int
len
)
{
tmp
=
__dev_alloc_skb
(
len
+
2
,
GFP_ATOMIC
);
if
(
!
tmp
)
goto
done
;
tmp
->
dev
=
&
dev
->
net_dev
;
skb_reserve
(
tmp
,
2
);
memcpy
(
skb_put
(
tmp
,
len
),
skb
->
data
,
len
);
kfree_skb
(
skb
);
return
tmp
;
}
#endif
static
void
FASTCALL
(
ns83820_rx_kick
(
struct
ns83820
*
dev
));
static
void
ns83820_rx_kick
(
struct
ns83820
*
dev
)
{
...
...
@@ -883,7 +866,6 @@ static void rx_irq(struct ns83820 *dev)
if
(
likely
(
CMDSTS_OK
&
cmdsts
))
{
int
len
=
cmdsts
&
0xffff
;
skb_put
(
skb
,
len
);
skb
=
skb_mangle_for_davem
(
skb
,
len
);
if
(
unlikely
(
!
skb
))
goto
netdev_mangle_me_harder_failed
;
if
(
cmdsts
&
CMDSTS_DEST_MULTI
)
...
...
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