Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/lib/bpf/
Dnetlink.c138 struct nlattr *nla, *nla_xdp; in __bpf_set_link_xdp_fd_replace() local
166 nla_xdp = (struct nlattr *)((char *)nla + nla->nla_len); in __bpf_set_link_xdp_fd_replace()
167 nla_xdp->nla_type = IFLA_XDP_FD; in __bpf_set_link_xdp_fd_replace()
168 nla_xdp->nla_len = NLA_HDRLEN + sizeof(int); in __bpf_set_link_xdp_fd_replace()
169 memcpy((char *)nla_xdp + NLA_HDRLEN, &fd, sizeof(fd)); in __bpf_set_link_xdp_fd_replace()
170 nla->nla_len += nla_xdp->nla_len; in __bpf_set_link_xdp_fd_replace()
174 nla_xdp = (struct nlattr *)((char *)nla + nla->nla_len); in __bpf_set_link_xdp_fd_replace()
175 nla_xdp->nla_type = IFLA_XDP_FLAGS; in __bpf_set_link_xdp_fd_replace()
176 nla_xdp->nla_len = NLA_HDRLEN + sizeof(flags); in __bpf_set_link_xdp_fd_replace()
177 memcpy((char *)nla_xdp + NLA_HDRLEN, &flags, sizeof(flags)); in __bpf_set_link_xdp_fd_replace()
[all …]