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
34593459 for (iter = skb_shinfo(skb)->frag_list; iter; iter = iter->next)
34603460
34613461
3462−int __skb_wait_for_more_packets(struct sock *sk, int *err, long *timeo_p,
3462+int __skb_wait_for_more_packets(struct sock *sk, struct sk_buff_head *queue,
3463+ int *err, long *timeo_p,
34633464 const struct sk_buff *skb);
34643465 struct sk_buff *__skb_try_recv_from_queue(struct sock *sk,
34653466 struct sk_buff_head *queue,
@@ -3468,12 +3469,16 @@ struct sk_buff *__skb_try_recv_from_queue(struct sock *sk, · 2 unmodified lines
34683469 struct sk_buff *skb),
34693470 int *off, int *err,
34703471 struct sk_buff **last);
3471−struct sk_buff *__skb_try_recv_datagram(struct sock *sk, unsigned flags,
3472+struct sk_buff *__skb_try_recv_datagram(struct sock *sk,
3473+ struct sk_buff_head *queue,
3474+ unsigned int flags,
34723475 void (*destructor)(struct sock *sk,
34733476 struct sk_buff *skb),
34743477 int *off, int *err,
34753478 struct sk_buff **last);
3476−struct sk_buff *__skb_recv_datagram(struct sock *sk, unsigned flags,
3479+struct sk_buff *__skb_recv_datagram(struct sock *sk,
3480+ struct sk_buff_head *sk_queue,
3481+ unsigned int flags,
34773482 void (*destructor)(struct sock *sk,
34783483 struct sk_buff *skb),
34793484 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