Lines Matching refs:skb
15 static void qpolicy_simple_push(struct sock *sk, struct sk_buff *skb)
17 skb_queue_tail(&sk->sk_write_queue, skb);
38 struct sk_buff *skb, *best = NULL;
40 skb_queue_walk(&sk->sk_write_queue, skb)
41 if (best == NULL || skb->priority > best->priority)
42 best = skb;
48 struct sk_buff *skb, *worst = NULL;
50 skb_queue_walk(&sk->sk_write_queue, skb)
51 if (worst == NULL || skb->priority < worst->priority)
52 worst = skb;
65 * @push: add a new @skb to the write queue
71 void (*push) (struct sock *sk, struct sk_buff *skb);
95 void dccp_qpolicy_push(struct sock *sk, struct sk_buff *skb)
97 qpol_table[dccp_sk(sk)->dccps_qpolicy].push(sk, skb);
105 void dccp_qpolicy_drop(struct sock *sk, struct sk_buff *skb)
107 if (skb != NULL) {
108 skb_unlink(skb, &sk->sk_write_queue);
109 kfree_skb(skb);
120 struct sk_buff *skb = dccp_qpolicy_top(sk);
122 if (skb != NULL) {
123 /* Clear any skb fields that we used internally */
124 skb->priority = 0;
125 skb_unlink(skb, &sk->sk_write_queue);
127 return skb;