Home
last modified time | relevance | path

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

/external/iproute2/ip/
Diplink_xdp.c30 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()
[all …]
/external/pdfium/testing/resources/
Dbug_216.in15 (xdp:xdp) 23 0 R
17 (</xdp:xdp>) 30 0 R]
23 <xdp:xdp xmlns:xdp="http://www.foxitsoftware.com/">
34 </xdp:xdp>
Dbug_765384.in30 (xdp:xdp) 43 0 R
32 (</xdp:xdp>) 50 0 R
81 <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
92 </xdp:xdp>
Dbug_709793.in14 <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/"><config><form/></></>
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_xdp.c80 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4() argument
82 void *data_end = (void *)(long)xdp->data_end; in handle_ipv4()
83 void *data = (void *)(long)xdp->data; in handle_ipv4()
113 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in handle_ipv4()
116 data = (void *)(long)xdp->data; in handle_ipv4()
117 data_end = (void *)(long)xdp->data_end; in handle_ipv4()
153 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6() argument
155 void *data_end = (void *)(long)xdp->data_end; in handle_ipv6()
156 void *data = (void *)(long)xdp->data; in handle_ipv6()
183 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in handle_ipv6()
[all …]
Dtest_adjust_tail.c15 int _xdp_adjust_tail(struct xdp_md *xdp) in _xdp_adjust_tail() argument
17 void *data_end = (void *)(long)xdp->data_end; in _xdp_adjust_tail()
18 void *data = (void *)(long)xdp->data; in _xdp_adjust_tail()
25 if (bpf_xdp_adjust_tail(xdp, 0 - offset)) in _xdp_adjust_tail()
Dtest_xdp_noinline.c289 bool encap_v6(struct xdp_md *xdp, struct ctl_value *cval, in encap_v6() argument
300 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in encap_v6()
302 data = (void *)(long)xdp->data; in encap_v6()
303 data_end = (void *)(long)xdp->data_end; in encap_v6()
332 bool encap_v4(struct xdp_md *xdp, struct ctl_value *cval, in encap_v4() argument
348 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in encap_v4()
350 data = (void *)(long)xdp->data; in encap_v4()
351 data_end = (void *)(long)xdp->data_end; in encap_v4()
380 if (bpf_xdp_adjust_head(xdp, (int)sizeof(struct iphdr))) in encap_v4()
386 bool decap_v6(struct xdp_md *xdp, void **data, void **data_end, bool inner_v4) in decap_v6() argument
[all …]
Dtest_xdp_redirect.c18 int xdp_redirect_to_111(struct xdp_md *xdp) in xdp_redirect_to_111() argument
23 int xdp_redirect_to_222(struct xdp_md *xdp) in xdp_redirect_to_222() argument
Dtest_xdp_vlan.sh84 ip link set dev lo xdp off 2>/dev/null > /dev/null
169 ip netns exec ns1 ip link set $DEVNS1 xdp object $FILE section $XDP_PROG
190 ip netns exec ns1 ip link set $DEVNS1 xdp off
191 ip netns exec ns1 ip link set $DEVNS1 xdp object $FILE section $XDP_PROG
Dtest_xdp_meta.sh17 ip link set dev lo xdp off 2>/dev/null > /dev/null
43 ip netns exec ns1 ip link set dev veth1 xdp obj test_xdp_meta.o sec x
44 ip netns exec ns2 ip link set dev veth2 xdp obj test_xdp_meta.o sec x
Dtest_offload.py412 def ip_link_show(self, xdp): argument
418 fail(xdp != "xdp" in link,
420 ("xdp" in link, xdp))
820 ipl = sim.ip_link_show(xdp=True)
834 ipl = sim.ip_link_show(xdp=True)
891 ipl = sim.ip_link_show(xdp=True)
936 xdp = sim.ip_link_show(xdp=True)["xdp"] variable
938 fail("prog" not in xdp, "Base program not reported in single program mode")
943 two_xdps = sim.ip_link_show(xdp=True)["xdp"]
948 fail(xdp["attached"][0] not in two_xdps["attached"],
[all …]
/external/pdfium/testing/resources/javascript/
Dbug_735912.in30 (xdp:xdp) 43 0 R
32 (</xdp:xdp>) 50 0 R
96 <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
107 </xdp:xdp>
Dbug_679642.in32 (xdp:xdp) 23 0 R
34 (</xdp:xdp>) 30 0 R
121 <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
132 </xdp:xdp>
Dbug_679643.in32 (xdp:xdp) 23 0 R
34 (</xdp:xdp>) 30 0 R
116 <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
127 </xdp:xdp>
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/BPF/
Dremove_truncate_1.ll10 ; int xdp_dummy(struct xdp_md *xdp)
16 ; long addr1 = (long)xdp->data;
21 ; tmp = *(volatile char *)(long)xdp->data_end;
25 ; addr = (long)xdp->data;
37 define i32 @xdp_dummy(%struct.xdp_md* nocapture readonly %xdp) local_unnamed_addr #0 {
44 %data = getelementptr inbounds %struct.xdp_md, %struct.xdp_md* %xdp, i64 0, i32 0
55 %data_end = getelementptr inbounds %struct.xdp_md, %struct.xdp_md* %xdp, i64 0, i32 1
65 …%data13.phi.trans.insert = getelementptr inbounds %struct.xdp_md, %struct.xdp_md* %xdp, i64 0, i32…
Dremove_truncate_2.ll10 ; int xdp_dummy(struct xdp_md *xdp)
12 ; char addr = *(char *)(long)xdp->data;
28 define i32 @xdp_dummy(%struct.xdp_md* nocapture readonly %xdp) local_unnamed_addr #0 {
30 %data = getelementptr inbounds %struct.xdp_md, %struct.xdp_md* %xdp, i64 0, i32 0
Dremove_truncate_3.ll10 ; int xdp_dummy(struct xdp_md *xdp)
16 ; long addr1 = (long)xdp->data;
21 ; tmp = *(volatile char *)(long)xdp->data_end;
25 ; addr = (long)xdp->data;
/external/syzkaller/sys/linux/
Dsocket_xdp.txt12 socket$xdp(domain const[AF_XDP], type const[SOCK_RAW], proto const[0]) sock_xdp
13 bind$xdp(fd sock_xdp, addr ptr[in, sockaddr_xdp_bind], len bytesize[addr])
14 sendmsg$xdp(fd sock_xdp, msg ptr[in, msghdr_xdp], f flags[send_flags])
15 mmap$xdp(addr vma, len len[addr], prot flags[mmap_prot], flags flags[mmap_flags], fd sock_xdp, offs…
Dsocket.txt67 xdp sockaddr_xdp
97 xdp sockaddr_xdp
/external/bcc/examples/networking/xdp/
DCMakeLists.txt1 install(PROGRAMS xdp_drop_count.py DESTINATION share/bcc/examples/networking/xdp)
/external/bcc/examples/networking/
DCMakeLists.txt11 add_subdirectory(xdp)
/external/python/cpython3/Lib/test/
Dmime.types253 application/vnd.adobe.xdp+xml xdp
/external/bcc/docs/
Dkernel-versions.md138 …yet](https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git/commit/?h=xdp&id=0afee87cfc800bf3…