History

bpf: introduce BPF_F_XDP_HAS_FRAGS flag in prog_flags loading the ebpf program

Introduce BPF_F_XDP_HAS_FRAGS and the related field in bpf_prog_aux in order to notify the driver the loaded program support xdp frags.

Lorenzo Bianconi committed 4 years ago

Commit c2f2cdb1 parent c41ced04 files · +14 −1Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/bpf.h+5−0
@@ -1113,6 +1113,11 @@ enum bpf_link_type { · 1112 unmodified lines
11131113 */
11141114 #define BPF_F_SLEEPABLE (1U << 4)
11151115
1116+/* If BPF_F_XDP_HAS_FRAGS is used in BPF_PROG_LOAD command, the loaded program
1117+ * fully support xdp frags.
1118+ */
1119+#define BPF_F_XDP_HAS_FRAGS (1U << 5)
1120+
11161121 /* When BPF ldimm64's insn[0].src_reg != 0 then this can have
11171122 * the following extensions:
11181123 *