Lines Matching refs:bi
124 static void bpf_parse_obj_pinned(struct xt_bpf_info_v1 *bi, in bpf_parse_obj_pinned() argument
127 bi->fd = bpf_obj_get(filepath); in bpf_parse_obj_pinned()
128 if (bi->fd < 0) in bpf_parse_obj_pinned()
133 if (fcntl(bi->fd, F_SETFD, FD_CLOEXEC) == -1) { in bpf_parse_obj_pinned()
142 struct xt_bpf_info *bi = (void *) cb->data; in bpf_parse() local
147 bpf_parse_string(bi->bpf_program, &bi->bpf_program_num_elem, in bpf_parse()
148 ARRAY_SIZE(bi->bpf_program), cb->arg); in bpf_parse()
157 struct xt_bpf_info_v1 *bi = (void *) cb->data; in bpf_parse_v1() local
162 bpf_parse_string(bi->bpf_program, &bi->bpf_program_num_elem, in bpf_parse_v1()
163 ARRAY_SIZE(bi->bpf_program), cb->arg); in bpf_parse_v1()
164 bi->mode = XT_BPF_MODE_BYTECODE; in bpf_parse_v1()
167 bpf_parse_obj_pinned(bi, cb->arg); in bpf_parse_v1()
168 bi->mode = XT_BPF_MODE_FD_PINNED; in bpf_parse_v1()