Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34687
b: refs/heads/master
c: 4a0a50f
h: refs/heads/master
i:
  34685: 44530f6
  34683: f18cc0c
  34679: 3aabe48
  34671: 21add41
  34655: 6f3a3b3
  34623: 6c79798
  34559: e8c2e9d
v: v3
  • Loading branch information
Andrea Bittau authored and David S. Miller committed Sep 22, 2006
1 parent 261ee13 commit 8d46736
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e27e4650cb7e73aa4dd97d860539e7605ac7e39
refs/heads/master: 4a0a50fb43912b4a593d2416c507a198fe607a6d
5 changes: 2 additions & 3 deletions trunk/net/dccp/ackvec.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,13 @@ struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority)
struct dccp_ackvec *av = kmem_cache_alloc(dccp_ackvec_slab, priority);

if (av != NULL) {
av->dccpav_buf_head =
av->dccpav_buf_tail = DCCP_MAX_ACKVEC_LEN - 1;
av->dccpav_buf_head = DCCP_MAX_ACKVEC_LEN - 1;
av->dccpav_buf_ackno = DCCP_MAX_SEQNO + 1;
av->dccpav_buf_nonce = av->dccpav_buf_nonce = 0;
av->dccpav_ack_ptr = 0;
av->dccpav_time.tv_sec = 0;
av->dccpav_time.tv_usec = 0;
av->dccpav_sent_len = av->dccpav_vec_len = 0;
av->dccpav_vec_len = 0;
INIT_LIST_HEAD(&av->dccpav_records);
}

Expand Down
4 changes: 1 addition & 3 deletions trunk/net/dccp/ackvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ struct dccp_ackvec {
struct list_head dccpav_records;
struct timeval dccpav_time;
u8 dccpav_buf_head;
u8 dccpav_buf_tail;
u8 dccpav_ack_ptr;
u8 dccpav_sent_len;
u8 dccpav_vec_len;
u8 dccpav_buf_nonce;
u8 dccpav_ack_nonce;
Expand Down Expand Up @@ -107,7 +105,7 @@ extern int dccp_insert_option_ackvec(struct sock *sk, struct sk_buff *skb);

static inline int dccp_ackvec_pending(const struct dccp_ackvec *av)
{
return av->dccpav_sent_len != av->dccpav_vec_len;
return av->dccpav_vec_len;
}
#else /* CONFIG_IP_DCCP_ACKVEC */
static inline int dccp_ackvec_init(void)
Expand Down

0 comments on commit 8d46736

Please sign in to comment.