• Home
  • Raw
  • Download

Lines Matching refs:opts

270 			     const struct bpf_xdp_set_link_opts *opts)  in bpf_set_link_xdp_fd_opts()  argument
274 if (!OPTS_VALID(opts, bpf_xdp_set_link_opts)) in bpf_set_link_xdp_fd_opts()
277 if (OPTS_HAS(opts, old_fd)) { in bpf_set_link_xdp_fd_opts()
278 old_fd = OPTS_GET(opts, old_fd, -1); in bpf_set_link_xdp_fd_opts()
517 const struct bpf_tc_opts *opts,
540 struct bpf_tc_opts *opts; member
550 if (!info || !info->opts) in __get_tc_info()
561 OPTS_SET(info->opts, prog_id, libbpf_nla_getattr_u32(tbb[TCA_BPF_ID])); in __get_tc_info()
562 OPTS_SET(info->opts, handle, tc->tcm_handle); in __get_tc_info()
563 OPTS_SET(info->opts, priority, TC_H_MAJ(tc->tcm_info) >> 16); in __get_tc_info()
605 int bpf_tc_attach(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) in bpf_tc_attach() argument
613 if (!hook || !opts || in bpf_tc_attach()
615 !OPTS_VALID(opts, bpf_tc_opts)) in bpf_tc_attach()
622 handle = OPTS_GET(opts, handle, 0); in bpf_tc_attach()
623 priority = OPTS_GET(opts, priority, 0); in bpf_tc_attach()
624 prog_fd = OPTS_GET(opts, prog_fd, 0); in bpf_tc_attach()
625 prog_id = OPTS_GET(opts, prog_id, 0); in bpf_tc_attach()
626 flags = OPTS_GET(opts, flags, 0); in bpf_tc_attach()
668 info.opts = opts; in bpf_tc_attach()
679 const struct bpf_tc_opts *opts, in __bpf_tc_detach() argument
688 !OPTS_VALID(opts, bpf_tc_opts)) in __bpf_tc_detach()
695 handle = OPTS_GET(opts, handle, 0); in __bpf_tc_detach()
696 priority = OPTS_GET(opts, priority, 0); in __bpf_tc_detach()
697 prog_fd = OPTS_GET(opts, prog_fd, 0); in __bpf_tc_detach()
698 prog_id = OPTS_GET(opts, prog_id, 0); in __bpf_tc_detach()
699 flags = OPTS_GET(opts, flags, 0); in __bpf_tc_detach()
740 const struct bpf_tc_opts *opts) in bpf_tc_detach() argument
744 if (!opts) in bpf_tc_detach()
747 ret = __bpf_tc_detach(hook, opts, false); in bpf_tc_detach()
751 int bpf_tc_query(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) in bpf_tc_query() argument
758 if (!hook || !opts || in bpf_tc_query()
760 !OPTS_VALID(opts, bpf_tc_opts)) in bpf_tc_query()
767 handle = OPTS_GET(opts, handle, 0); in bpf_tc_query()
768 priority = OPTS_GET(opts, priority, 0); in bpf_tc_query()
769 prog_fd = OPTS_GET(opts, prog_fd, 0); in bpf_tc_query()
770 prog_id = OPTS_GET(opts, prog_id, 0); in bpf_tc_query()
771 flags = OPTS_GET(opts, flags, 0); in bpf_tc_query()
799 info.opts = opts; in bpf_tc_query()