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
5791704f
Commit
5791704f
authored
Aug 31, 2006
by
Auke Kok
Committed by
Auke Kok
Aug 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ixgb: Convert dev_alloc_skb to netdev_alloc_skb.
Signed-off-by:
Auke Kok
<
auke-jan.h.kok@intel.com
>
parent
a535aa19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/net/ixgb/ixgb_main.c
drivers/net/ixgb/ixgb_main.c
+2
-2
No files found.
drivers/net/ixgb/ixgb_main.c
View file @
5791704f
...
...
@@ -1948,7 +1948,7 @@ ixgb_clean_rx_irq(struct ixgb_adapter *adapter)
#define IXGB_CB_LENGTH 256
if
(
length
<
IXGB_CB_LENGTH
)
{
struct
sk_buff
*
new_skb
=
dev_alloc_skb
(
length
+
NET_IP_ALIGN
);
netdev_alloc_skb
(
netdev
,
length
+
NET_IP_ALIGN
);
if
(
new_skb
)
{
skb_reserve
(
new_skb
,
NET_IP_ALIGN
);
new_skb
->
dev
=
netdev
;
...
...
@@ -2032,7 +2032,7 @@ ixgb_alloc_rx_buffers(struct ixgb_adapter *adapter)
while
(
--
cleancount
>
2
)
{
/* recycle! its good for you */
if
(
!
(
skb
=
buffer_info
->
skb
))
skb
=
dev_alloc_skb
(
adapter
->
rx_buffer_len
skb
=
netdev_alloc_skb
(
netdev
,
adapter
->
rx_buffer_len
+
NET_IP_ALIGN
);
else
{
skb_trim
(
skb
,
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