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
a20e9c62
Commit
a20e9c62
authored
Jul 31, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Convert to netdev_alloc_skb
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
8af27456
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/net/tg3.c
drivers/net/tg3.c
+5
-5
No files found.
drivers/net/tg3.c
View file @
a20e9c62
...
...
@@ -68,8 +68,8 @@
#define DRV_MODULE_NAME "tg3"
#define PFX DRV_MODULE_NAME ": "
#define DRV_MODULE_VERSION "3.6
3
"
#define DRV_MODULE_RELDATE "July
25
, 2006"
#define DRV_MODULE_VERSION "3.6
4
"
#define DRV_MODULE_RELDATE "July
31
, 2006"
#define TG3_DEF_MAC_MODE 0
#define TG3_DEF_RX_MODE 0
...
...
@@ -3097,7 +3097,7 @@ static int tg3_alloc_rx_skb(struct tg3 *tp, u32 opaque_key,
* Callers depend upon this behavior and assume that
* we leave everything unchanged if we fail.
*/
skb
=
dev_alloc_skb
(
skb_size
);
skb
=
netdev_alloc_skb
(
tp
->
dev
,
skb_size
);
if
(
skb
==
NULL
)
return
-
ENOMEM
;
...
...
@@ -3270,7 +3270,7 @@ static int tg3_rx(struct tg3 *tp, int budget)
tg3_recycle_rx
(
tp
,
opaque_key
,
desc_idx
,
*
post_ptr
);
copy_skb
=
dev_alloc_skb
(
len
+
2
);
copy_skb
=
netdev_alloc_skb
(
tp
->
dev
,
len
+
2
);
if
(
copy_skb
==
NULL
)
goto
drop_it_no_recycle
;
...
...
@@ -8618,7 +8618,7 @@ static int tg3_run_loopback(struct tg3 *tp, int loopback_mode)
err
=
-
EIO
;
tx_len
=
1514
;
skb
=
dev_alloc_skb
(
tx_len
);
skb
=
netdev_alloc_skb
(
tp
->
dev
,
tx_len
);
if
(
!
skb
)
return
-
ENOMEM
;
...
...
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