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
9034f77b
Commit
9034f77b
authored
Feb 10, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netdev: Use __netdev_alloc_skb() instead of __dev_alloc_skb().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
149490f1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
drivers/net/b44.c
drivers/net/b44.c
+1
-1
drivers/net/defxx.c
drivers/net/defxx.c
+1
-1
No files found.
drivers/net/b44.c
View file @
9034f77b
...
@@ -973,7 +973,7 @@ static int b44_start_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -973,7 +973,7 @@ static int b44_start_xmit(struct sk_buff *skb, struct net_device *dev)
ssb_dma_unmap_single
(
bp
->
sdev
,
mapping
,
len
,
ssb_dma_unmap_single
(
bp
->
sdev
,
mapping
,
len
,
DMA_TO_DEVICE
);
DMA_TO_DEVICE
);
bounce_skb
=
__
dev_alloc_skb
(
len
,
GFP_ATOMIC
|
GFP_DMA
);
bounce_skb
=
__
netdev_alloc_skb
(
dev
,
len
,
GFP_ATOMIC
|
GFP_DMA
);
if
(
!
bounce_skb
)
if
(
!
bounce_skb
)
goto
err_out
;
goto
err_out
;
...
...
drivers/net/defxx.c
View file @
9034f77b
...
@@ -2937,7 +2937,7 @@ static int dfx_rcv_init(DFX_board_t *bp, int get_buffers)
...
@@ -2937,7 +2937,7 @@ static int dfx_rcv_init(DFX_board_t *bp, int get_buffers)
for
(
i
=
0
;
i
<
(
int
)(
bp
->
rcv_bufs_to_post
);
i
++
)
for
(
i
=
0
;
i
<
(
int
)(
bp
->
rcv_bufs_to_post
);
i
++
)
for
(
j
=
0
;
(
i
+
j
)
<
(
int
)
PI_RCV_DATA_K_NUM_ENTRIES
;
j
+=
bp
->
rcv_bufs_to_post
)
for
(
j
=
0
;
(
i
+
j
)
<
(
int
)
PI_RCV_DATA_K_NUM_ENTRIES
;
j
+=
bp
->
rcv_bufs_to_post
)
{
{
struct
sk_buff
*
newskb
=
__
dev_alloc_skb
(
NEW_SKB_SIZE
,
GFP_NOIO
);
struct
sk_buff
*
newskb
=
__
netdev_alloc_skb
(
bp
->
dev
,
NEW_SKB_SIZE
,
GFP_NOIO
);
if
(
!
newskb
)
if
(
!
newskb
)
return
-
ENOMEM
;
return
-
ENOMEM
;
bp
->
descr_block_virt
->
rcv_data
[
i
+
j
].
long_0
=
(
u32
)
(
PI_RCV_DESCR_M_SOP
|
bp
->
descr_block_virt
->
rcv_data
[
i
+
j
].
long_0
=
(
u32
)
(
PI_RCV_DESCR_M_SOP
|
...
...
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