Home
last modified time | relevance | path

Searched refs:nlattr_add (Results 1 – 2 of 2) sorted by relevance

/linux-6.3-rc2/tools/lib/bpf/
A Dnetlink.c277 err = nlattr_add(&req, CTRL_ATTR_FAMILY_NAME, name, len); in libbpf_netlink_resolve_genl_family_id()
302 ret = nlattr_add(&req, IFLA_XDP_FD, &fd, sizeof(fd)); in __bpf_set_link_xdp_fd_replace()
306 ret = nlattr_add(&req, IFLA_XDP_FLAGS, &flags, sizeof(flags)); in __bpf_set_link_xdp_fd_replace()
311 ret = nlattr_add(&req, IFLA_XDP_EXPECTED_FD, &old_fd, in __bpf_set_link_xdp_fd_replace()
528 return nlattr_add(req, TCA_KIND, "clsact", sizeof("clsact")); in clsact_config()
696 ret = nlattr_add(req, TCA_BPF_FD, &fd, sizeof(fd)); in tc_add_fd_and_name()
704 return nlattr_add(req, TCA_BPF_NAME, name, len + 1); in tc_add_fd_and_name()
755 ret = nlattr_add(&req, TCA_KIND, "bpf", sizeof("bpf")); in bpf_tc_attach()
765 ret = nlattr_add(&req, TCA_BPF_FLAGS, &bpf_flags, sizeof(bpf_flags)); in bpf_tc_attach()
834 ret = nlattr_add(&req, TCA_KIND, "bpf", sizeof("bpf")); in __bpf_tc_detach()
[all …]
A Dnlattr.h141 static inline int nlattr_add(struct libbpf_nla_req *req, int type, in nlattr_add() function
165 if (nlattr_add(req, type | NLA_F_NESTED, NULL, 0)) in nlattr_begin_nested()

Completed in 6 milliseconds