Lines Matching refs:attach_type
633 static int do_attach_detach_xdp(int progfd, enum net_attach_type attach_type,
640 if (attach_type == NET_ATTACH_TYPE_XDP_GENERIC)
642 if (attach_type == NET_ATTACH_TYPE_XDP_DRIVER)
644 if (attach_type == NET_ATTACH_TYPE_XDP_OFFLOAD)
652 enum net_attach_type attach_type;
660 attach_type = parse_attach_type(*argv);
661 if (attach_type == net_attach_type_size) {
688 if (is_prefix("xdp", attach_type_strings[attach_type]))
689 err = do_attach_detach_xdp(progfd, attach_type, ifindex,
693 attach_type_strings[attach_type], strerror(-err));
706 enum net_attach_type attach_type;
713 attach_type = parse_attach_type(*argv);
714 if (attach_type == net_attach_type_size) {
726 if (is_prefix("xdp", attach_type_strings[attach_type]))
727 err = do_attach_detach_xdp(progfd, attach_type, ifindex, NULL);
731 attach_type_strings[attach_type], strerror(-err));