History

net: add queue argument to __skb_wait_for_more_packets and __skb_{,try_}recv_datagram

This will be used by ESP over TCP to handle the queue of IKE messages.

Sabrina Dubroca committed 6 years ago

Commit b50b0581 parent e7096c14 files · +31 −17Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/skbuff.h+8−3
@@ -3459,7 +3459,8 @@ static inline void skb_frag_list_init(struct sk_buff *skb) · 3458 unmodified lines
3459 for (iter = skb_shinfo(skb)->frag_list; iter; iter = iter->next)3459 for (iter = skb_shinfo(skb)->frag_list; iter; iter = iter->next)
3460 3460
3461 3461
3462int __skb_wait_for_more_packets(struct sock *sk, int *err, long *timeo_p,3462int __skb_wait_for_more_packets(struct sock *sk, struct sk_buff_head *queue,
3463 int *err, long *timeo_p,
3463 const struct sk_buff *skb);3464 const struct sk_buff *skb);
3464struct sk_buff *__skb_try_recv_from_queue(struct sock *sk,3465struct sk_buff *__skb_try_recv_from_queue(struct sock *sk,
3465 struct sk_buff_head *queue,3466 struct sk_buff_head *queue,
@@ -3468,12 +3469,16 @@ struct sk_buff *__skb_try_recv_from_queue(struct sock *sk, · 2 unmodified lines
3468 struct sk_buff *skb),3469 struct sk_buff *skb),
3469 int *off, int *err,3470 int *off, int *err,
3470 struct sk_buff **last);3471 struct sk_buff **last);
3471struct sk_buff *__skb_try_recv_datagram(struct sock *sk, unsigned flags,3472struct sk_buff *__skb_try_recv_datagram(struct sock *sk,
3473 struct sk_buff_head *queue,
3474 unsigned int flags,
3472 void (*destructor)(struct sock *sk,3475 void (*destructor)(struct sock *sk,
3473 struct sk_buff *skb),3476 struct sk_buff *skb),
3474 int *off, int *err,3477 int *off, int *err,
3475 struct sk_buff **last);3478 struct sk_buff **last);
3476struct sk_buff *__skb_recv_datagram(struct sock *sk, unsigned flags,3479struct sk_buff *__skb_recv_datagram(struct sock *sk,
3480 struct sk_buff_head *sk_queue,
3481 unsigned int flags,
3477 void (*destructor)(struct sock *sk,3482 void (*destructor)(struct sock *sk,
3478 struct sk_buff *skb),3483 struct sk_buff *skb),
3479 int *off, int *err);3484 int *off, int *err);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t