aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/net/bpf_jit_comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/net/bpf_jit_comp.c')
-rw-r--r--arch/x86/net/bpf_jit_comp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/net/bpf_jit_comp.c b/arch/x86/net/bpf_jit_comp.c
index 45e4eb5bcbb2..ce5b2ebd5701 100644
--- a/arch/x86/net/bpf_jit_comp.c
+++ b/arch/x86/net/bpf_jit_comp.c
@@ -1188,7 +1188,7 @@ skip_init_addrs:
1188 * may converge on the last pass. In such case do one more 1188 * may converge on the last pass. In such case do one more
1189 * pass to emit the final image 1189 * pass to emit the final image
1190 */ 1190 */
1191 for (pass = 0; pass < 10 || image; pass++) { 1191 for (pass = 0; pass < 20 || image; pass++) {
1192 proglen = do_jit(prog, addrs, image, oldproglen, &ctx); 1192 proglen = do_jit(prog, addrs, image, oldproglen, &ctx);
1193 if (proglen <= 0) { 1193 if (proglen <= 0) {
1194 image = NULL; 1194 image = NULL;
@@ -1215,6 +1215,7 @@ skip_init_addrs:
1215 } 1215 }
1216 } 1216 }
1217 oldproglen = proglen; 1217 oldproglen = proglen;
1218 cond_resched();
1218 } 1219 }
1219 1220
1220 if (bpf_jit_enable > 1) 1221 if (bpf_jit_enable > 1)