Lines Matching refs:nlattr_add
278 err = nlattr_add(&req, CTRL_ATTR_FAMILY_NAME, name, len); in libbpf_netlink_resolve_genl_family_id()
303 ret = nlattr_add(&req, IFLA_XDP_FD, &fd, sizeof(fd)); in __bpf_set_link_xdp_fd_replace()
307 ret = nlattr_add(&req, IFLA_XDP_FLAGS, &flags, sizeof(flags)); in __bpf_set_link_xdp_fd_replace()
312 ret = nlattr_add(&req, IFLA_XDP_EXPECTED_FD, &old_fd, in __bpf_set_link_xdp_fd_replace()
490 err = nlattr_add(&req, NETDEV_A_DEV_IFINDEX, &ifindex, sizeof(ifindex)); in bpf_xdp_query()
539 return nlattr_add(req, TCA_KIND, "clsact", sizeof("clsact")); in clsact_config()
707 ret = nlattr_add(req, TCA_BPF_FD, &fd, sizeof(fd)); in tc_add_fd_and_name()
715 return nlattr_add(req, TCA_BPF_NAME, name, len + 1); in tc_add_fd_and_name()
766 ret = nlattr_add(&req, TCA_KIND, "bpf", sizeof("bpf")); in bpf_tc_attach()
776 ret = nlattr_add(&req, TCA_BPF_FLAGS, &bpf_flags, sizeof(bpf_flags)); in bpf_tc_attach()
845 ret = nlattr_add(&req, TCA_KIND, "bpf", sizeof("bpf")); in __bpf_tc_detach()
909 ret = nlattr_add(&req, TCA_KIND, "bpf", sizeof("bpf")); in bpf_tc_query()