]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/tipc/node.c
tipc: Major redesign of broadcast link ACK/NACK algorithms
[karo-tx-linux.git] / net / tipc / node.c
index 9196f943b8358ffbce1557284a7e1aae9c3f1a74..6d8bdfd95cd60307ac0b25729bd74af1dacceddc 100644 (file)
@@ -339,12 +339,12 @@ static void node_lost_contact(struct tipc_node *n_ptr)
        /* Flush broadcast link info associated with lost node */
 
        if (n_ptr->bclink.supported) {
-               n_ptr->bclink.gap_after = n_ptr->bclink.gap_to = 0;
                while (n_ptr->bclink.deferred_head) {
                        struct sk_buff *buf = n_ptr->bclink.deferred_head;
                        n_ptr->bclink.deferred_head = buf->next;
                        buf_discard(buf);
                }
+               n_ptr->bclink.deferred_size = 0;
 
                if (n_ptr->bclink.defragm) {
                        buf_discard(n_ptr->bclink.defragm);
@@ -450,7 +450,7 @@ struct sk_buff *tipc_node_get_links(const void *req_tlv_area, int req_tlv_space)
 
        read_lock_bh(&tipc_net_lock);
 
-       /* Get space for all unicast links + multicast link */
+       /* Get space for all unicast links + broadcast link */
 
        payload_size = TLV_SPACE(sizeof(link_info)) *
                (atomic_read(&tipc_num_links) + 1);