• Home
  • Raw
  • Download

Lines Matching refs:ret

24 #define ERROR(ret) do {\  argument
26 bpf_trace_printk(fmt, sizeof(fmt), __LINE__, ret); \
48 int ret; in _gre_set_tunnel() local
57 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in _gre_set_tunnel()
59 if (ret < 0) { in _gre_set_tunnel()
60 ERROR(ret); in _gre_set_tunnel()
70 int ret; in _gre_get_tunnel() local
74 ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0); in _gre_get_tunnel()
75 if (ret < 0) { in _gre_get_tunnel()
76 ERROR(ret); in _gre_get_tunnel()
88 int ret; in _ip6gretap_set_tunnel() local
97 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in _ip6gretap_set_tunnel()
100 if (ret < 0) { in _ip6gretap_set_tunnel()
101 ERROR(ret); in _ip6gretap_set_tunnel()
113 int ret; in _ip6gretap_get_tunnel() local
115 ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), in _ip6gretap_get_tunnel()
117 if (ret < 0) { in _ip6gretap_get_tunnel()
118 ERROR(ret); in _ip6gretap_get_tunnel()
133 int ret; in _erspan_set_tunnel() local
141 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in _erspan_set_tunnel()
143 if (ret < 0) { in _erspan_set_tunnel()
144 ERROR(ret); in _erspan_set_tunnel()
162 ret = bpf_skb_set_tunnel_opt(skb, &md, sizeof(md)); in _erspan_set_tunnel()
163 if (ret < 0) { in _erspan_set_tunnel()
164 ERROR(ret); in _erspan_set_tunnel()
178 int ret; in _erspan_get_tunnel() local
180 ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0); in _erspan_get_tunnel()
181 if (ret < 0) { in _erspan_get_tunnel()
182 ERROR(ret); in _erspan_get_tunnel()
186 ret = bpf_skb_get_tunnel_opt(skb, &md, sizeof(md)); in _erspan_get_tunnel()
187 if (ret < 0) { in _erspan_get_tunnel()
188 ERROR(ret); in _erspan_get_tunnel()
217 int ret; in _ip4ip6erspan_set_tunnel() local
225 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in _ip4ip6erspan_set_tunnel()
227 if (ret < 0) { in _ip4ip6erspan_set_tunnel()
228 ERROR(ret); in _ip4ip6erspan_set_tunnel()
247 ret = bpf_skb_set_tunnel_opt(skb, &md, sizeof(md)); in _ip4ip6erspan_set_tunnel()
248 if (ret < 0) { in _ip4ip6erspan_set_tunnel()
249 ERROR(ret); in _ip4ip6erspan_set_tunnel()
263 int ret; in _ip4ip6erspan_get_tunnel() local
265 ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), in _ip4ip6erspan_get_tunnel()
267 if (ret < 0) { in _ip4ip6erspan_get_tunnel()
268 ERROR(ret); in _ip4ip6erspan_get_tunnel()
272 ret = bpf_skb_get_tunnel_opt(skb, &md, sizeof(md)); in _ip4ip6erspan_get_tunnel()
273 if (ret < 0) { in _ip4ip6erspan_get_tunnel()
274 ERROR(ret); in _ip4ip6erspan_get_tunnel()
301 int ret; in _vxlan_set_tunnel() local
311 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in _vxlan_set_tunnel()
313 if (ret < 0) { in _vxlan_set_tunnel()
314 ERROR(ret); in _vxlan_set_tunnel()
319 ret = bpf_skb_set_tunnel_opt(skb, &md, sizeof(md)); in _vxlan_set_tunnel()
320 if (ret < 0) { in _vxlan_set_tunnel()
321 ERROR(ret); in _vxlan_set_tunnel()
331 int ret; in _vxlan_get_tunnel() local
336 ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0); in _vxlan_get_tunnel()
337 if (ret < 0) { in _vxlan_get_tunnel()
338 ERROR(ret); in _vxlan_get_tunnel()
342 ret = bpf_skb_get_tunnel_opt(skb, &md, sizeof(md)); in _vxlan_get_tunnel()
343 if (ret < 0) { in _vxlan_get_tunnel()
344 ERROR(ret); in _vxlan_get_tunnel()
358 int ret; in _ip6vxlan_set_tunnel() local
366 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in _ip6vxlan_set_tunnel()
368 if (ret < 0) { in _ip6vxlan_set_tunnel()
369 ERROR(ret); in _ip6vxlan_set_tunnel()
381 int ret; in _ip6vxlan_get_tunnel() local
383 ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), in _ip6vxlan_get_tunnel()
385 if (ret < 0) { in _ip6vxlan_get_tunnel()
386 ERROR(ret); in _ip6vxlan_get_tunnel()
399 int ret; in _geneve_set_tunnel() local
418 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in _geneve_set_tunnel()
420 if (ret < 0) { in _geneve_set_tunnel()
421 ERROR(ret); in _geneve_set_tunnel()
425 ret = bpf_skb_set_tunnel_opt(skb, &gopt, sizeof(gopt)); in _geneve_set_tunnel()
426 if (ret < 0) { in _geneve_set_tunnel()
427 ERROR(ret); in _geneve_set_tunnel()
437 int ret; in _geneve_get_tunnel() local
442 ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0); in _geneve_get_tunnel()
443 if (ret < 0) { in _geneve_get_tunnel()
444 ERROR(ret); in _geneve_get_tunnel()
448 ret = bpf_skb_get_tunnel_opt(skb, &gopt, sizeof(gopt)); in _geneve_get_tunnel()
449 if (ret < 0) in _geneve_get_tunnel()
462 int ret; in _ip6geneve_set_tunnel() local
470 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in _ip6geneve_set_tunnel()
472 if (ret < 0) { in _ip6geneve_set_tunnel()
473 ERROR(ret); in _ip6geneve_set_tunnel()
486 ret = bpf_skb_set_tunnel_opt(skb, &gopt, sizeof(gopt)); in _ip6geneve_set_tunnel()
487 if (ret < 0) { in _ip6geneve_set_tunnel()
488 ERROR(ret); in _ip6geneve_set_tunnel()
501 int ret; in _ip6geneve_get_tunnel() local
503 ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), in _ip6geneve_get_tunnel()
505 if (ret < 0) { in _ip6geneve_get_tunnel()
506 ERROR(ret); in _ip6geneve_get_tunnel()
510 ret = bpf_skb_get_tunnel_opt(skb, &gopt, sizeof(gopt)); in _ip6geneve_get_tunnel()
511 if (ret < 0) in _ip6geneve_get_tunnel()
527 int ret; in _ipip_set_tunnel() local
540 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), 0); in _ipip_set_tunnel()
541 if (ret < 0) { in _ipip_set_tunnel()
542 ERROR(ret); in _ipip_set_tunnel()
552 int ret; in _ipip_get_tunnel() local
556 ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0); in _ipip_get_tunnel()
557 if (ret < 0) { in _ipip_get_tunnel()
558 ERROR(ret); in _ipip_get_tunnel()
573 int ret; in _ipip6_set_tunnel() local
587 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in _ipip6_set_tunnel()
589 if (ret < 0) { in _ipip6_set_tunnel()
590 ERROR(ret); in _ipip6_set_tunnel()
600 int ret; in _ipip6_get_tunnel() local
604 ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), in _ipip6_get_tunnel()
606 if (ret < 0) { in _ipip6_get_tunnel()
607 ERROR(ret); in _ipip6_get_tunnel()
623 int ret; in _ip6ip6_set_tunnel() local
636 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in _ip6ip6_set_tunnel()
638 if (ret < 0) { in _ip6ip6_set_tunnel()
639 ERROR(ret); in _ip6ip6_set_tunnel()
649 int ret; in _ip6ip6_get_tunnel() local
653 ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), in _ip6ip6_get_tunnel()
655 if (ret < 0) { in _ip6ip6_get_tunnel()
656 ERROR(ret); in _ip6ip6_get_tunnel()
670 int ret; in _xfrm_get_state() local
672 ret = bpf_skb_get_xfrm_state(skb, 0, &x, sizeof(x), 0); in _xfrm_get_state()
673 if (ret < 0) in _xfrm_get_state()