Home
last modified time | relevance | path

Searched refs:av (Results 1 – 4 of 4) sorted by relevance

/net/dccp/
Dackvec.c19 struct dccp_ackvec *av = kmem_cache_zalloc(dccp_ackvec_slab, priority); in dccp_ackvec_alloc() local
21 if (av != NULL) { in dccp_ackvec_alloc()
22 av->av_buf_head = av->av_buf_tail = DCCPAV_MAX_ACKVEC_LEN - 1; in dccp_ackvec_alloc()
23 INIT_LIST_HEAD(&av->av_records); in dccp_ackvec_alloc()
25 return av; in dccp_ackvec_alloc()
28 static void dccp_ackvec_purge_records(struct dccp_ackvec *av) in dccp_ackvec_purge_records() argument
32 list_for_each_entry_safe(cur, next, &av->av_records, avr_node) in dccp_ackvec_purge_records()
34 INIT_LIST_HEAD(&av->av_records); in dccp_ackvec_purge_records()
37 void dccp_ackvec_free(struct dccp_ackvec *av) in dccp_ackvec_free() argument
39 if (likely(av != NULL)) { in dccp_ackvec_free()
[all …]
Dackvec.h106 void dccp_ackvec_free(struct dccp_ackvec *av);
108 void dccp_ackvec_input(struct dccp_ackvec *av, struct sk_buff *skb);
109 int dccp_ackvec_update_records(struct dccp_ackvec *av, u64 seq, u8 sum);
110 void dccp_ackvec_clear_state(struct dccp_ackvec *av, const u64 ackno);
111 u16 dccp_ackvec_buflen(const struct dccp_ackvec *av);
113 static inline bool dccp_ackvec_is_empty(const struct dccp_ackvec *av) in dccp_ackvec_is_empty() argument
115 return av->av_overflow == 0 && av->av_buf_head == av->av_buf_tail; in dccp_ackvec_is_empty()
Doptions.c399 struct dccp_ackvec *av = dp->dccps_hc_rx_ackvec; in dccp_insert_option_ackvec() local
401 const u16 buflen = dccp_ackvec_buflen(av); in dccp_insert_option_ackvec()
431 from = av->av_buf + av->av_buf_head; in dccp_insert_option_ackvec()
432 tail = av->av_buf + DCCPAV_MAX_ACKVEC_LEN; in dccp_insert_option_ackvec()
444 nonce ^= av->av_buf_nonce[i]; in dccp_insert_option_ackvec()
446 *to++ = DCCPO_ACK_VECTOR_0 + av->av_buf_nonce[i]; in dccp_insert_option_ackvec()
457 from = av->av_buf; in dccp_insert_option_ackvec()
468 if (dccp_ackvec_update_records(av, dcb->dccpd_seq, nonce)) in dccp_insert_option_ackvec()
Dinput.c161 struct dccp_ackvec *av = dccp_sk(sk)->dccps_hc_rx_ackvec; in dccp_handle_ackvec_processing() local
163 if (av == NULL) in dccp_handle_ackvec_processing()
166 dccp_ackvec_clear_state(av, DCCP_SKB_CB(skb)->dccpd_ack_seq); in dccp_handle_ackvec_processing()
167 dccp_ackvec_input(av, skb); in dccp_handle_ackvec_processing()