diff options
author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2005-08-09 23:16:04 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:50:08 -0400 |
commit | 757f612e091e7d13707eedc3ff71f1a9b53f5537 (patch) | |
tree | 9ee923abbafb48b5f3220b817c84ba206914ab1c /net/dccp | |
parent | 74459dc7bacda04d14626d239c8f5c4dac22560d (diff) |
[CCID3]: Reenable list_for_each_entry_safe_continue usage
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/ccids/ccid3.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c index 4f45902cb55e..04299c7565f3 100644 --- a/net/dccp/ccids/ccid3.c +++ b/net/dccp/ccids/ccid3.c | |||
@@ -1272,13 +1272,10 @@ static void ccid3_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb) | |||
1272 | ccid3_calc_new_delta(hctx); | 1272 | ccid3_calc_new_delta(hctx); |
1273 | 1273 | ||
1274 | /* remove all packets older than the one acked from history */ | 1274 | /* remove all packets older than the one acked from history */ |
1275 | #if 0 | ||
1276 | FIXME! | ||
1277 | list_for_each_entry_safe_continue(entry, next, &hctx->ccid3hctx_hist, ccid3htx_node) { | 1275 | list_for_each_entry_safe_continue(entry, next, &hctx->ccid3hctx_hist, ccid3htx_node) { |
1278 | list_del_init(&entry->ccid3htx_node); | 1276 | list_del_init(&entry->ccid3htx_node); |
1279 | ccid3_tx_hist_entry_delete(entry); | 1277 | ccid3_tx_hist_entry_delete(entry); |
1280 | } | 1278 | } |
1281 | #endif | ||
1282 | if (hctx->ccid3hctx_x < 10) { | 1279 | if (hctx->ccid3hctx_x < 10) { |
1283 | ccid3_pr_debug("ccid3_hc_tx_packet_recv hctx->ccid3hctx_x < 10\n"); | 1280 | ccid3_pr_debug("ccid3_hc_tx_packet_recv hctx->ccid3hctx_x < 10\n"); |
1284 | hctx->ccid3hctx_x = 10; | 1281 | hctx->ccid3hctx_x = 10; |
@@ -1820,8 +1817,7 @@ static void ccid3_hc_rx_detect_loss(struct sock *sk) | |||
1820 | 1817 | ||
1821 | a_next = b_next; | 1818 | a_next = b_next; |
1822 | num_later = 1; | 1819 | num_later = 1; |
1823 | #if 0 | 1820 | |
1824 | FIXME MERGE GIT! | ||
1825 | list_for_each_entry_safe_continue(entry, a_next, &hcrx->ccid3hcrx_hist, ccid3hrx_node) { | 1821 | list_for_each_entry_safe_continue(entry, a_next, &hcrx->ccid3hcrx_hist, ccid3hrx_node) { |
1826 | if (num_later == 0) { | 1822 | if (num_later == 0) { |
1827 | a_loss = entry; | 1823 | a_loss = entry; |
@@ -1830,7 +1826,6 @@ static void ccid3_hc_rx_detect_loss(struct sock *sk) | |||
1830 | entry->ccid3hrx_type == DCCP_PKT_DATAACK) | 1826 | entry->ccid3hrx_type == DCCP_PKT_DATAACK) |
1831 | --num_later; | 1827 | --num_later; |
1832 | } | 1828 | } |
1833 | #endif | ||
1834 | 1829 | ||
1835 | if (a_loss == NULL) { | 1830 | if (a_loss == NULL) { |
1836 | if (list_empty(&hcrx->ccid3hcrx_loss_interval_hist)) { | 1831 | if (list_empty(&hcrx->ccid3hcrx_loss_interval_hist)) { |
@@ -1848,8 +1843,6 @@ static void ccid3_hc_rx_detect_loss(struct sock *sk) | |||
1848 | 1843 | ||
1849 | /* Locate a lost data packet */ | 1844 | /* Locate a lost data packet */ |
1850 | entry = packet = b_loss; | 1845 | entry = packet = b_loss; |
1851 | #if 0 | ||
1852 | FIXME MERGE GIT! | ||
1853 | list_for_each_entry_safe_continue(entry, b_next, &hcrx->ccid3hcrx_hist, ccid3hrx_node) { | 1846 | list_for_each_entry_safe_continue(entry, b_next, &hcrx->ccid3hcrx_hist, ccid3hrx_node) { |
1854 | u64 delta = dccp_delta_seqno(entry->ccid3hrx_seqno, packet->ccid3hrx_seqno); | 1847 | u64 delta = dccp_delta_seqno(entry->ccid3hrx_seqno, packet->ccid3hrx_seqno); |
1855 | 1848 | ||
@@ -1875,7 +1868,6 @@ static void ccid3_hc_rx_detect_loss(struct sock *sk) | |||
1875 | if (packet == a_loss) | 1868 | if (packet == a_loss) |
1876 | break; | 1869 | break; |
1877 | } | 1870 | } |
1878 | #endif | ||
1879 | 1871 | ||
1880 | if (seq_loss != DCCP_MAX_SEQNO + 1) | 1872 | if (seq_loss != DCCP_MAX_SEQNO + 1) |
1881 | win_loss = a_loss->ccid3hrx_win_count; | 1873 | win_loss = a_loss->ccid3hrx_win_count; |