Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
8c729ccf
Commit
8c729ccf
authored
May 26, 2017
by
Vikram Narayanan
Browse files
net/arp: Allocate from private pool if feature bit is set
Signed-off-by:
Vikram Narayanan
<
vikram186@gmail.com
>
parent
2e1fcb18
Changes
1
Hide whitespace changes
Inline
Side-by-side
net/ipv4/arp.c
View file @
8c729ccf
...
...
@@ -533,7 +533,12 @@ struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
* Allocate a buffer
*/
skb
=
alloc_skb
(
arp_hdr_len
(
dev
)
+
hlen
+
tlen
,
GFP_ATOMIC
);
int
skb_sz
=
arp_hdr_len
(
dev
)
+
hlen
+
tlen
;
if
(
dev
->
features
&
NETIF_F_PRIV_DATA_POOL
)
skb_sz
|=
SKB_DATA_PRIV_POOL
;
skb
=
alloc_skb
(
skb_sz
,
GFP_ATOMIC
);
if
(
!
skb
)
return
NULL
;
...
...
Write
Preview
Supports
Markdown
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