Lines Matching refs:xdp
30 struct xdp_req *xdp = raw; in xdp_ebpf_cb() local
31 struct iplink_req *req = xdp->req; in xdp_ebpf_cb()
36 if (xdp->flags) in xdp_ebpf_cb()
37 addattr32(&req->n, sizeof(*req), IFLA_XDP_FLAGS, xdp->flags); in xdp_ebpf_cb()
45 static int xdp_delete(struct xdp_req *xdp) in xdp_delete() argument
47 xdp_ebpf_cb(xdp, -1, NULL); in xdp_delete()
58 struct xdp_req xdp = { in xdp_parse() local
63 xdp.flags |= XDP_FLAGS_UPDATE_IF_NOEXIST; in xdp_parse()
65 xdp.flags |= XDP_FLAGS_SKB_MODE; in xdp_parse()
67 xdp.flags |= XDP_FLAGS_DRV_MODE; in xdp_parse()
69 xdp.flags |= XDP_FLAGS_HW_MODE; in xdp_parse()
74 return xdp_delete(&xdp); in xdp_parse()
77 if (bpf_parse_common(BPF_PROG_TYPE_XDP, &cfg, &bpf_cb_ops, &xdp)) in xdp_parse()
101 void xdp_dump(FILE *fp, struct rtattr *xdp, bool link, bool details) in xdp_dump() argument
107 parse_rtattr_nested(tb, IFLA_XDP_MAX, xdp); in xdp_dump()