Lines Matching refs:bpf
134 struct bpf_lwt_prog bpf; member
919 ret = bpf_prog_run_save_cb(slwt->bpf.prog, skb); in input_action_end_bpf()
1383 slwt->bpf.name = nla_memdup(tb[SEG6_LOCAL_BPF_PROG_NAME], GFP_KERNEL); in parse_nla_bpf()
1384 if (!slwt->bpf.name) in parse_nla_bpf()
1390 kfree(slwt->bpf.name); in parse_nla_bpf()
1394 slwt->bpf.prog = p; in parse_nla_bpf()
1402 if (!slwt->bpf.prog) in put_nla_bpf()
1409 if (nla_put_u32(skb, SEG6_LOCAL_BPF_PROG, slwt->bpf.prog->aux->id)) in put_nla_bpf()
1412 if (slwt->bpf.name && in put_nla_bpf()
1413 nla_put_string(skb, SEG6_LOCAL_BPF_PROG_NAME, slwt->bpf.name)) in put_nla_bpf()
1421 if (!a->bpf.name && !b->bpf.name) in cmp_nla_bpf()
1424 if (!a->bpf.name || !b->bpf.name) in cmp_nla_bpf()
1427 return strcmp(a->bpf.name, b->bpf.name); in cmp_nla_bpf()
1432 kfree(slwt->bpf.name); in destroy_attr_bpf()
1433 if (slwt->bpf.prog) in destroy_attr_bpf()
1434 bpf_prog_put(slwt->bpf.prog); in destroy_attr_bpf()