From 8bafef4b8fb26bb149e0e388be7192a0684abbe7 Mon Sep 17 00:00:00 2001 From: Tyler Cipriani Date: Sun, 9 Jan 2022 14:38:26 -0700 Subject: [PATCH] Typo "flgas" -> "flags" --- docs/reference_guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference_guide.md b/docs/reference_guide.md index 96e8a3f2..5fc78d49 100644 --- a/docs/reference_guide.md +++ b/docs/reference_guide.md @@ -1825,7 +1825,7 @@ XDP_FLAGS_REPLACE = (1 << 4) You can use flags like this ```BPF.attach_xdp(dev="device", fn=b.load_func("fn_name",BPF.XDP), flags=BPF.XDP_FLAGS_UPDATE_IF_NOEXIST)``` -The default value of flgas is 0. This means if there is no xdp program with `device`, the fn will run with that device. If there is an xdp program running with device, the old program will be replaced with new fn program. +The default value of flags is 0. This means if there is no xdp program with `device`, the fn will run with that device. If there is an xdp program running with device, the old program will be replaced with new fn program. Currently, bcc does not support XDP_FLAGS_REPLACE flag. The following are the descriptions of other flags. -- 2.34.1