mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: ip_queue_rcv_skb() helper
When queueing a skb to socket, we can immediately release its dst if target socket do not use IP_CMSG_PKTINFO. tcp_data_queue() can drop dst too. This to benefit from a hot cache line and avoid the receiver, possibly on another cpu, to dirty this cache line himself. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4b0b72f7dd
commit
f84af32cbc
7 changed files with 22 additions and 4 deletions
|
@ -393,6 +393,7 @@ extern int ip_options_rcv_srr(struct sk_buff *skb);
|
|||
* Functions provided by ip_sockglue.c
|
||||
*/
|
||||
|
||||
extern int ip_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);
|
||||
extern void ip_cmsg_recv(struct msghdr *msg, struct sk_buff *skb);
|
||||
extern int ip_cmsg_send(struct net *net,
|
||||
struct msghdr *msg, struct ipcm_cookie *ipc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue