* Start a timer for the reorder queue. This assumes the timer is not * already running. */
| 1150 | * already running. |
| 1151 | */ |
| 1152 | static void |
| 1153 | ng_pptpgre_start_reorder_timer(hpriv_p hpriv) |
| 1154 | { |
| 1155 | int ticks; |
| 1156 | |
| 1157 | /* Be conservative: timeout can happen up to 1 tick early */ |
| 1158 | ticks = (((reorder_timeout * hz) + 1000 - 1) / 1000) + 1; |
| 1159 | ng_callout(&hpriv->reorderTimer, hpriv->node, hpriv->hook, |
| 1160 | ticks, ng_pptpgre_reorder_timeout, hpriv, 0); |
| 1161 | } |
| 1162 | |
| 1163 | /* |
| 1164 | * The oldest packet spent too much time in the reorder queue. |
no test coverage detected