Skip to content

Commit

Permalink
Fix syntax error in xdp_redirect_cpu.py (iovisor#1969)
Browse files Browse the repository at this point in the history
Fix syntax error in xdp_redirect_cpu.py
  • Loading branch information
annp1987 authored and yonghong-song committed Sep 13, 2018
1 parent 17f797d commit 0cae0dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/networking/xdp/xdp_redirect_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def usage():
}
""", cflags=["-w", "-D__MAX_CPU__=%u" % max_cpu], debug=0)

dest = b.get_table("dest");
dest = b.get_table("dest")
dest[0] = ct.c_uint32(cpu_id)

cpumap = b.get_table("cpumap");
cpumap = b.get_table("cpumap")
cpumap[cpu_id] = ct.c_uint32(192)

in_fn = b.load_func("xdp_redirect_cpu", BPF.XDP)
Expand All @@ -90,6 +90,6 @@ def usage():
time.sleep(1)
except KeyboardInterrupt:
print("Removing filter from device")
break;
break

b.remove_xdp(in_if, flags)

0 comments on commit 0cae0dd

Please sign in to comment.