aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyen Phuong An <annp1987@users.noreply.github.com>2018-09-14 01:47:39 +0700
committeryonghong-song <ys114321@gmail.com>2018-09-13 11:47:39 -0700
commit0cae0dd3ad34738259a8843dca788f41e8dfa634 (patch)
tree04384448106917d860f9ef2d34aff8840136f58f
parent17f797d9946d77f8d43d57d2e40155c5be65b8de (diff)
downloadbcc-0cae0dd3ad34738259a8843dca788f41e8dfa634.zip
bcc-0cae0dd3ad34738259a8843dca788f41e8dfa634.tar.gz
bcc-0cae0dd3ad34738259a8843dca788f41e8dfa634.tar.bz2
Fix syntax error in xdp_redirect_cpu.py (#1969)
Fix syntax error in xdp_redirect_cpu.py
-rwxr-xr-xexamples/networking/xdp/xdp_redirect_cpu.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/networking/xdp/xdp_redirect_cpu.py b/examples/networking/xdp/xdp_redirect_cpu.py
index e77f39c..f7aa2bc 100755
--- a/examples/networking/xdp/xdp_redirect_cpu.py
+++ b/examples/networking/xdp/xdp_redirect_cpu.py
@@ -68,10 +68,10 @@ int xdp_dummy(struct xdp_md *ctx) {
}
""", 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)
@@ -90,6 +90,6 @@ while 1:
time.sleep(1)
except KeyboardInterrupt:
print("Removing filter from device")
- break;
+ break
b.remove_xdp(in_if, flags)