diff for duplicates of <20071206130309.GU4653@ghostprotocols.net> diff --git a/a/1.txt b/N1/1.txt index 5d30b72..3ffd6a6 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -12,7 +12,7 @@ Thanks a lot, - Arnaldo -From 2a3b4067dd514ce0e307d165783bc561cc7f17c4 Mon Sep 17 00:00:00 2001 +>From 2a3b4067dd514ce0e307d165783bc561cc7f17c4 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo <acme@redhat.com> Date: Thu, 6 Dec 2007 10:56:58 -0200 Subject: [PATCH 7/7] [TFRC]: New rx history code @@ -90,7 +90,7 @@ index 5ff5aab..28a5e4d 100644 ccid3_pr_debug("%s(%p) - entry \n", dccp_role(sk), sk); -+ if (unlikely(hcrx->ccid3hcrx_state = TFRC_RSTATE_TERM)) ++ if (unlikely(hcrx->ccid3hcrx_state == TFRC_RSTATE_TERM)) + return; + now = ktime_get_real(); @@ -106,7 +106,8 @@ index 5ff5aab..28a5e4d 100644 - delta = ktime_us_delta(now, - hcrx->ccid3hcrx_tstamp_last_feedback); - DCCP_BUG_ON(delta < 0); -- hcrx->ccid3hcrx_x_recv - scaled_div32(hcrx->ccid3hcrx_bytes_recv, delta); +- hcrx->ccid3hcrx_x_recv = +- scaled_div32(hcrx->ccid3hcrx_bytes_recv, delta); + case CCID3_FBACK_PARAM_CHANGE: + /* + * When parameters change (new loss or p > p_prev), we do not @@ -126,7 +127,8 @@ index 5ff5aab..28a5e4d 100644 + if (delta <= 0) + DCCP_BUG("delta (%ld) <= 0", (long)delta); + else -+ hcrx->ccid3hcrx_x_recv + scaled_div32(hcrx->ccid3hcrx_bytes_recv, delta); ++ hcrx->ccid3hcrx_x_recv = ++ scaled_div32(hcrx->ccid3hcrx_bytes_recv, delta); break; - case TFRC_RSTATE_TERM: - DCCP_BUG("%s(%p) - Illegal state TERM", dccp_role(sk), sk); @@ -135,7 +137,7 @@ index 5ff5aab..28a5e4d 100644 } - packet = tfrc_rx_hist_find_data_packet(&hcrx->ccid3hcrx_hist); -- if (unlikely(packet = NULL)) { +- if (unlikely(packet == NULL)) { - DCCP_WARN("%s(%p), no data packet in history!\n", - dccp_role(sk), sk); - return; @@ -148,7 +150,7 @@ index 5ff5aab..28a5e4d 100644 + hcrx->ccid3hcrx_last_counter = dccp_hdr(skb)->dccph_ccval; hcrx->ccid3hcrx_bytes_recv = 0; -- if (hcrx->ccid3hcrx_p = 0) +- if (hcrx->ccid3hcrx_p == 0) - hcrx->ccid3hcrx_pinv = ~0U; /* see RFC 4342, 8.5 */ - else if (hcrx->ccid3hcrx_p > 1000000) { - DCCP_WARN("p (%u) > 100%%\n", hcrx->ccid3hcrx_p); @@ -167,7 +169,8 @@ index 5ff5aab..28a5e4d 100644 - struct tfrc_rx_hist_entry *packet) -{ - struct ccid3_hc_rx_sock *hcrx = ccid3_hc_rx_sk(sk); -- struct tfrc_rx_hist_entry *rx_hist - tfrc_rx_hist_head(&hcrx->ccid3hcrx_hist); +- struct tfrc_rx_hist_entry *rx_hist = +- tfrc_rx_hist_head(&hcrx->ccid3hcrx_hist); - u64 seqno = packet->tfrchrx_seqno; - u64 tmp_seqno; - int loss = 0; @@ -235,16 +238,16 @@ index 5ff5aab..28a5e4d 100644 - - switch (DCCP_SKB_CB(skb)->dccpd_type) { - case DCCP_PKT_ACK: -- if (hcrx->ccid3hcrx_state = TFRC_RSTATE_NO_DATA) +- if (hcrx->ccid3hcrx_state == TFRC_RSTATE_NO_DATA) - return; - case DCCP_PKT_DATAACK: -- if (opt_recv->dccpor_timestamp_echo = 0) +- if (opt_recv->dccpor_timestamp_echo == 0) - break; - r_sample = dccp_timestamp() - opt_recv->dccpor_timestamp_echo; - rtt_prev = hcrx->ccid3hcrx_rtt; - r_sample = dccp_sample_rtt(sk, 10 * r_sample); - -- if (hcrx->ccid3hcrx_state = TFRC_RSTATE_NO_DATA) +- if (hcrx->ccid3hcrx_state == TFRC_RSTATE_NO_DATA) - hcrx->ccid3hcrx_rtt = r_sample; - else - hcrx->ccid3hcrx_rtt = (hcrx->ccid3hcrx_rtt * 9) / 10 + @@ -262,7 +265,7 @@ index 5ff5aab..28a5e4d 100644 - } - - packet = tfrc_rx_hist_entry_new(opt_recv->dccpor_ndp, skb, GFP_ATOMIC); -- if (unlikely(packet = NULL)) { +- if (unlikely(packet == NULL)) { - DCCP_WARN("%s(%p), Not enough mem to add rx packet " - "to history, consider it lost!\n", dccp_role(sk), sk); - return; @@ -273,7 +276,7 @@ index 5ff5aab..28a5e4d 100644 + const u32 ndp = dccp_sk(sk)->dccps_options_received.dccpor_ndp; + const bool is_data_packet = dccp_data_packet(skb); + -+ if (unlikely(hcrx->ccid3hcrx_state = TFRC_RSTATE_NO_DATA)) { ++ if (unlikely(hcrx->ccid3hcrx_state == TFRC_RSTATE_NO_DATA)) { + if (is_data_packet) { + const u32 payload = skb->len - dccp_hdr(skb)->dccph_doff * 4; + do_feedback = CCID3_FBACK_INITIAL; @@ -292,7 +295,7 @@ index 5ff5aab..28a5e4d 100644 + goto update_records; + } -- if (DCCP_SKB_CB(skb)->dccpd_type = DCCP_PKT_ACK) +- if (DCCP_SKB_CB(skb)->dccpd_type == DCCP_PKT_ACK) - return; + if (tfrc_rx_hist_duplicate(&hcrx->ccid3hcrx_hist, skb)) + return; /* done receiving */ @@ -391,7 +394,8 @@ index 5ff5aab..28a5e4d 100644 hcrx->ccid3hcrx_state = TFRC_RSTATE_NO_DATA; - INIT_LIST_HEAD(&hcrx->ccid3hcrx_hist); INIT_LIST_HEAD(&hcrx->ccid3hcrx_li_hist); -- hcrx->ccid3hcrx_tstamp_last_feedback - hcrx->ccid3hcrx_tstamp_last_ack = ktime_get_real(); +- hcrx->ccid3hcrx_tstamp_last_feedback = +- hcrx->ccid3hcrx_tstamp_last_ack = ktime_get_real(); - return 0; + return tfrc_rx_hist_alloc(&hcrx->ccid3hcrx_hist); } @@ -461,7 +465,7 @@ index a5f59af..7e0714a 100644 dccp_pr_debug("%s(%p), receive rate=%u bytes/s, implied " "loss rate=%u\n", dccp_role(sk), sk, x_recv, p); -- if (p = 0) +- if (p == 0) - return ~0; - else + if (p != 0) @@ -563,7 +567,7 @@ index 255cca1..e197389 100644 +} - list_for_each_entry(entry, list, tfrchrx_node) -- if (entry->tfrchrx_seqno = seq) { +- if (entry->tfrchrx_seqno == seq) { - packet = entry; - break; - } @@ -588,7 +592,7 @@ index 255cca1..e197389 100644 - if (packet) - *ccval = packet->tfrchrx_ccval; + for (i = 1; i <= h->loss_count; i++) -+ if (tfrc_rx_hist_entry(h, i)->tfrchrx_seqno = seq) ++ if (tfrc_rx_hist_entry(h, i)->tfrchrx_seqno == seq) + return 1; - return packet != NULL; @@ -607,8 +611,8 @@ index 255cca1..e197389 100644 +} - list_for_each_entry(entry, list, tfrchrx_node) -- if (entry->tfrchrx_type = DCCP_PKT_DATA || -- entry->tfrchrx_type = DCCP_PKT_DATAACK) { +- if (entry->tfrchrx_type == DCCP_PKT_DATA || +- entry->tfrchrx_type == DCCP_PKT_DATAACK) { - packet = entry; - break; - } @@ -640,7 +644,7 @@ index 255cca1..e197389 100644 + + for (i = 0; i <= TFRC_NDUPACK; i++) { + h->ring[i] = kmem_cache_alloc(tfrc_rx_hist_slab, GFP_ATOMIC); -+ if (h->ring[i] = NULL) ++ if (h->ring[i] == NULL) + goto out_free; + } + @@ -671,7 +675,7 @@ index 255cca1..e197389 100644 - - if (!list_empty(li_list)) { - list_for_each_entry_safe(entry, next, rx_list, tfrchrx_node) { -- if (num_later = 0) { +- if (num_later == 0) { - if (after48(nonloss_seqno, - entry->tfrchrx_seqno)) { - list_del_init(&entry->tfrchrx_node); @@ -689,7 +693,7 @@ index 255cca1..e197389 100644 - * rtt:s of data packets to approximate rtt. - */ - list_for_each_entry_safe(entry, next, rx_list, tfrchrx_node) { -- if (num_later = 0) { +- if (num_later == 0) { - switch (step) { - case 0: - step = 1; @@ -769,7 +773,7 @@ index 255cca1..e197389 100644 + tfrc_rx_hist_rtt_last_s(h)->tfrchrx_ccval); + + if (delta_v < 1 || delta_v > 4) { /* unsuitable CCVal delta */ -+ if (h->rtt_sample_prev = 2) { /* previous candidate stored */ ++ if (h->rtt_sample_prev == 2) { /* previous candidate stored */ + sample = SUB16(tfrc_rx_hist_rtt_prev_s(h)->tfrchrx_ccval, + tfrc_rx_hist_rtt_last_s(h)->tfrchrx_ccval); + if (sample) @@ -791,7 +795,7 @@ index 255cca1..e197389 100644 + goto keep_ref_for_next_time; + } + -+ } else if (delta_v = 4) /* optimal match */ ++ } else if (delta_v == 4) /* optimal match */ + sample = ktime_to_us(net_timedelta(tfrc_rx_hist_rtt_last_s(h)->tfrchrx_tstamp)); + else { /* suboptimal match */ + h->rtt_sample_prev = 2; @@ -909,8 +913,8 @@ index 5b0b983..3dfd182 100644 -static inline int - tfrc_rx_hist_entry_data_packet(const struct tfrc_rx_hist_entry *entry) -{ -- return entry->tfrchrx_type = DCCP_PKT_DATA || -- entry->tfrchrx_type = DCCP_PKT_DATAACK; +- return entry->tfrchrx_type == DCCP_PKT_DATA || +- entry->tfrchrx_type == DCCP_PKT_DATAACK; -} +extern void tfrc_rx_hist_add_packet(struct tfrc_rx_hist *h, + const struct sk_buff *skb, const u32 ndp); diff --git a/a/content_digest b/N1/content_digest index d2df16f..8fe4478 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,9 @@ "From\0Arnaldo Carvalho de Melo <acme@redhat.com>\0" "Subject\0[RFC2][PATCH 7/7] [TFRC]: New rx history code\0" - "Date\0Thu, 06 Dec 2007 13:03:09 +0000\0" - "To\0dccp@vger.kernel.org\0" + "Date\0Thu, 6 Dec 2007 11:03:09 -0200\0" + "To\0Gerrit Renker <gerrit@erg.abdn.ac.uk>\0" + "Cc\0dccp@vger.kernel.org" + " netdev@vger.kernel.org\0" "\00:1\0" "b\0" "Gerrit,\n" @@ -18,7 +20,7 @@ "\n" "- Arnaldo\n" "\n" - "From 2a3b4067dd514ce0e307d165783bc561cc7f17c4 Mon Sep 17 00:00:00 2001\n" + ">From 2a3b4067dd514ce0e307d165783bc561cc7f17c4 Mon Sep 17 00:00:00 2001\n" "From: Arnaldo Carvalho de Melo <acme@redhat.com>\n" "Date: Thu, 6 Dec 2007 10:56:58 -0200\n" "Subject: [PATCH 7/7] [TFRC]: New rx history code\n" @@ -96,7 +98,7 @@ " \n" " \tccid3_pr_debug(\"%s(%p) - entry \\n\", dccp_role(sk), sk);\n" " \n" - "+\tif (unlikely(hcrx->ccid3hcrx_state = TFRC_RSTATE_TERM))\n" + "+\tif (unlikely(hcrx->ccid3hcrx_state == TFRC_RSTATE_TERM))\n" "+\t\treturn;\n" "+\n" " \tnow = ktime_get_real();\n" @@ -112,7 +114,8 @@ "-\t\tdelta = ktime_us_delta(now,\n" "-\t\t\t\t hcrx->ccid3hcrx_tstamp_last_feedback);\n" "-\t\tDCCP_BUG_ON(delta < 0);\n" - "-\t\thcrx->ccid3hcrx_x_recv -\t\t\tscaled_div32(hcrx->ccid3hcrx_bytes_recv, delta);\n" + "-\t\thcrx->ccid3hcrx_x_recv =\n" + "-\t\t\tscaled_div32(hcrx->ccid3hcrx_bytes_recv, delta);\n" "+\tcase CCID3_FBACK_PARAM_CHANGE:\n" "+\t\t/*\n" "+\t\t * When parameters change (new loss or p > p_prev), we do not\n" @@ -132,7 +135,8 @@ "+\t\tif (delta <= 0)\n" "+\t\t\tDCCP_BUG(\"delta (%ld) <= 0\", (long)delta);\n" "+\t\telse\n" - "+\t\t\thcrx->ccid3hcrx_x_recv +\t\t\t\tscaled_div32(hcrx->ccid3hcrx_bytes_recv, delta);\n" + "+\t\t\thcrx->ccid3hcrx_x_recv =\n" + "+\t\t\t\tscaled_div32(hcrx->ccid3hcrx_bytes_recv, delta);\n" " \t\tbreak;\n" "-\tcase TFRC_RSTATE_TERM:\n" "-\t\tDCCP_BUG(\"%s(%p) - Illegal state TERM\", dccp_role(sk), sk);\n" @@ -141,7 +145,7 @@ " \t}\n" " \n" "-\tpacket = tfrc_rx_hist_find_data_packet(&hcrx->ccid3hcrx_hist);\n" - "-\tif (unlikely(packet = NULL)) {\n" + "-\tif (unlikely(packet == NULL)) {\n" "-\t\tDCCP_WARN(\"%s(%p), no data packet in history!\\n\",\n" "-\t\t\t dccp_role(sk), sk);\n" "-\t\treturn;\n" @@ -154,7 +158,7 @@ "+\thcrx->ccid3hcrx_last_counter\t = dccp_hdr(skb)->dccph_ccval;\n" " \thcrx->ccid3hcrx_bytes_recv\t = 0;\n" " \n" - "-\tif (hcrx->ccid3hcrx_p = 0)\n" + "-\tif (hcrx->ccid3hcrx_p == 0)\n" "-\t\thcrx->ccid3hcrx_pinv = ~0U;\t/* see RFC 4342, 8.5 */\n" "-\telse if (hcrx->ccid3hcrx_p > 1000000) {\n" "-\t\tDCCP_WARN(\"p (%u) > 100%%\\n\", hcrx->ccid3hcrx_p);\n" @@ -173,7 +177,8 @@ "-\t\t\t\t struct tfrc_rx_hist_entry *packet)\n" "-{\n" "-\tstruct ccid3_hc_rx_sock *hcrx = ccid3_hc_rx_sk(sk);\n" - "-\tstruct tfrc_rx_hist_entry *rx_hist -\t\t\t\ttfrc_rx_hist_head(&hcrx->ccid3hcrx_hist);\n" + "-\tstruct tfrc_rx_hist_entry *rx_hist =\n" + "-\t\t\t\ttfrc_rx_hist_head(&hcrx->ccid3hcrx_hist);\n" "-\tu64 seqno = packet->tfrchrx_seqno;\n" "-\tu64 tmp_seqno;\n" "-\tint loss = 0;\n" @@ -241,16 +246,16 @@ "-\n" "-\tswitch (DCCP_SKB_CB(skb)->dccpd_type) {\n" "-\tcase DCCP_PKT_ACK:\n" - "-\t\tif (hcrx->ccid3hcrx_state = TFRC_RSTATE_NO_DATA)\n" + "-\t\tif (hcrx->ccid3hcrx_state == TFRC_RSTATE_NO_DATA)\n" "-\t\t\treturn;\n" "-\tcase DCCP_PKT_DATAACK:\n" - "-\t\tif (opt_recv->dccpor_timestamp_echo = 0)\n" + "-\t\tif (opt_recv->dccpor_timestamp_echo == 0)\n" "-\t\t\tbreak;\n" "-\t\tr_sample = dccp_timestamp() - opt_recv->dccpor_timestamp_echo;\n" "-\t\trtt_prev = hcrx->ccid3hcrx_rtt;\n" "-\t\tr_sample = dccp_sample_rtt(sk, 10 * r_sample);\n" "-\n" - "-\t\tif (hcrx->ccid3hcrx_state = TFRC_RSTATE_NO_DATA)\n" + "-\t\tif (hcrx->ccid3hcrx_state == TFRC_RSTATE_NO_DATA)\n" "-\t\t\thcrx->ccid3hcrx_rtt = r_sample;\n" "-\t\telse\n" "-\t\t\thcrx->ccid3hcrx_rtt = (hcrx->ccid3hcrx_rtt * 9) / 10 +\n" @@ -268,7 +273,7 @@ "-\t}\n" "-\n" "-\tpacket = tfrc_rx_hist_entry_new(opt_recv->dccpor_ndp, skb, GFP_ATOMIC);\n" - "-\tif (unlikely(packet = NULL)) {\n" + "-\tif (unlikely(packet == NULL)) {\n" "-\t\tDCCP_WARN(\"%s(%p), Not enough mem to add rx packet \"\n" "-\t\t\t \"to history, consider it lost!\\n\", dccp_role(sk), sk);\n" "-\t\treturn;\n" @@ -279,7 +284,7 @@ "+\tconst u32 ndp = dccp_sk(sk)->dccps_options_received.dccpor_ndp;\n" "+\tconst bool is_data_packet = dccp_data_packet(skb);\n" "+\n" - "+\tif (unlikely(hcrx->ccid3hcrx_state = TFRC_RSTATE_NO_DATA)) {\n" + "+\tif (unlikely(hcrx->ccid3hcrx_state == TFRC_RSTATE_NO_DATA)) {\n" "+\t\tif (is_data_packet) {\n" "+\t\t\tconst u32 payload = skb->len - dccp_hdr(skb)->dccph_doff * 4;\n" "+\t\t\tdo_feedback = CCID3_FBACK_INITIAL;\n" @@ -298,7 +303,7 @@ "+\t\tgoto update_records;\n" "+ \t}\n" " \n" - "-\tif (DCCP_SKB_CB(skb)->dccpd_type = DCCP_PKT_ACK)\n" + "-\tif (DCCP_SKB_CB(skb)->dccpd_type == DCCP_PKT_ACK)\n" "-\t\treturn;\n" "+\tif (tfrc_rx_hist_duplicate(&hcrx->ccid3hcrx_hist, skb))\n" "+\t\treturn; /* done receiving */\n" @@ -397,7 +402,8 @@ " \thcrx->ccid3hcrx_state = TFRC_RSTATE_NO_DATA;\n" "-\tINIT_LIST_HEAD(&hcrx->ccid3hcrx_hist);\n" " \tINIT_LIST_HEAD(&hcrx->ccid3hcrx_li_hist);\n" - "-\thcrx->ccid3hcrx_tstamp_last_feedback -\t\thcrx->ccid3hcrx_tstamp_last_ack = ktime_get_real();\n" + "-\thcrx->ccid3hcrx_tstamp_last_feedback =\n" + "-\t\thcrx->ccid3hcrx_tstamp_last_ack = ktime_get_real();\n" "-\treturn 0;\n" "+\treturn tfrc_rx_hist_alloc(&hcrx->ccid3hcrx_hist);\n" " }\n" @@ -467,7 +473,7 @@ " \tdccp_pr_debug(\"%s(%p), receive rate=%u bytes/s, implied \"\n" " \t\t \"loss rate=%u\\n\", dccp_role(sk), sk, x_recv, p);\n" " \n" - "-\tif (p = 0)\n" + "-\tif (p == 0)\n" "-\t\treturn ~0;\n" "-\telse\n" "+\tif (p != 0)\n" @@ -569,7 +575,7 @@ "+}\n" " \n" "-\tlist_for_each_entry(entry, list, tfrchrx_node)\n" - "-\t\tif (entry->tfrchrx_seqno = seq) {\n" + "-\t\tif (entry->tfrchrx_seqno == seq) {\n" "-\t\t\tpacket = entry;\n" "-\t\t\tbreak;\n" "-\t\t}\n" @@ -594,7 +600,7 @@ "-\tif (packet)\n" "-\t\t*ccval = packet->tfrchrx_ccval;\n" "+\tfor (i = 1; i <= h->loss_count; i++)\n" - "+\t\tif (tfrc_rx_hist_entry(h, i)->tfrchrx_seqno = seq)\n" + "+\t\tif (tfrc_rx_hist_entry(h, i)->tfrchrx_seqno == seq)\n" "+\t\t\treturn 1;\n" " \n" "-\treturn packet != NULL;\n" @@ -613,8 +619,8 @@ "+}\n" " \n" "-\tlist_for_each_entry(entry, list, tfrchrx_node)\n" - "-\t\tif (entry->tfrchrx_type = DCCP_PKT_DATA ||\n" - "-\t\t entry->tfrchrx_type = DCCP_PKT_DATAACK) {\n" + "-\t\tif (entry->tfrchrx_type == DCCP_PKT_DATA ||\n" + "-\t\t entry->tfrchrx_type == DCCP_PKT_DATAACK) {\n" "-\t\t\tpacket = entry;\n" "-\t\t\tbreak;\n" "-\t\t}\n" @@ -646,7 +652,7 @@ "+\n" "+\tfor (i = 0; i <= TFRC_NDUPACK; i++) {\n" "+\t\th->ring[i] = kmem_cache_alloc(tfrc_rx_hist_slab, GFP_ATOMIC);\n" - "+\t\tif (h->ring[i] = NULL)\n" + "+\t\tif (h->ring[i] == NULL)\n" "+\t\t\tgoto out_free;\n" "+\t}\n" "+\n" @@ -677,7 +683,7 @@ "-\n" "-\tif (!list_empty(li_list)) {\n" "-\t\tlist_for_each_entry_safe(entry, next, rx_list, tfrchrx_node) {\n" - "-\t\t\tif (num_later = 0) {\n" + "-\t\t\tif (num_later == 0) {\n" "-\t\t\t\tif (after48(nonloss_seqno,\n" "-\t\t\t\t entry->tfrchrx_seqno)) {\n" "-\t\t\t\t\tlist_del_init(&entry->tfrchrx_node);\n" @@ -695,7 +701,7 @@ "-\t\t * rtt:s of data packets to approximate rtt.\n" "-\t\t */\n" "-\t\tlist_for_each_entry_safe(entry, next, rx_list, tfrchrx_node) {\n" - "-\t\t\tif (num_later = 0) {\n" + "-\t\t\tif (num_later == 0) {\n" "-\t\t\t\tswitch (step) {\n" "-\t\t\t\tcase 0:\n" "-\t\t\t\t\tstep = 1;\n" @@ -775,7 +781,7 @@ "+\t \t\t tfrc_rx_hist_rtt_last_s(h)->tfrchrx_ccval);\n" "+\n" "+\tif (delta_v < 1 || delta_v > 4) {\t/* unsuitable CCVal delta */\n" - "+\t\tif (h->rtt_sample_prev = 2) {\t/* previous candidate stored */\n" + "+\t\tif (h->rtt_sample_prev == 2) {\t/* previous candidate stored */\n" "+\t\t\tsample = SUB16(tfrc_rx_hist_rtt_prev_s(h)->tfrchrx_ccval,\n" "+\t\t\t\t tfrc_rx_hist_rtt_last_s(h)->tfrchrx_ccval);\n" "+\t\t\tif (sample)\n" @@ -797,7 +803,7 @@ "+\t\t\tgoto keep_ref_for_next_time;\n" "+\t\t}\n" "+\n" - "+\t} else if (delta_v = 4) /* optimal match */\n" + "+\t} else if (delta_v == 4) /* optimal match */\n" "+\t\tsample = ktime_to_us(net_timedelta(tfrc_rx_hist_rtt_last_s(h)->tfrchrx_tstamp));\n" "+\telse {\t\t\t /* suboptimal match */\n" "+\t\th->rtt_sample_prev = 2;\n" @@ -915,8 +921,8 @@ "-static inline int\n" "-\ttfrc_rx_hist_entry_data_packet(const struct tfrc_rx_hist_entry *entry)\n" "-{\n" - "-\treturn entry->tfrchrx_type = DCCP_PKT_DATA ||\n" - "-\t entry->tfrchrx_type = DCCP_PKT_DATAACK;\n" + "-\treturn entry->tfrchrx_type == DCCP_PKT_DATA ||\n" + "-\t entry->tfrchrx_type == DCCP_PKT_DATAACK;\n" "-}\n" "+extern void tfrc_rx_hist_add_packet(struct tfrc_rx_hist *h,\n" "+\t\t\t\t const struct sk_buff *skb, const u32 ndp);\n" @@ -935,4 +941,4 @@ "-- \n" 1.5.3.4 -d04af768921763fdff00c95cdaff995a1a549e486ed0f33796a87d89e616d273 +95a113246b6b6efa654dac815f64caddfb80fef77a95705a083ad6ed1485e04b
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.