Home
last modified time | relevance | path

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

/openbmc/qemu/net/
H A Dtap-linux.c54 ifr.ifr_flags = IFF_TAP | IFF_NO_PI; in tap_open()
62 ifr.ifr_flags |= IFF_ONE_QUEUE; in tap_open()
68 ifr.ifr_flags |= IFF_VNET_HDR; in tap_open()
95 ifr.ifr_flags |= IFF_MULTI_QUEUE; in tap_open()
161 return ifr.ifr_flags & IFF_VNET_HDR; in tap_probe_vnet_hdr()
279 ifr.ifr_flags = IFF_ATTACH_QUEUE; in tap_fd_enable()
297 ifr.ifr_flags = IFF_DETACH_QUEUE; in tap_fd_disable()
/openbmc/google-misc/subprojects/ncsid/test/
H A Dnet_iface_mock.cpp43 ifr->ifr_flags = flags; in ioctl()
46 flags = ifr->ifr_flags; in ioctl()
/openbmc/linux/tools/testing/selftests/net/
H A Dtun.c26 ifr.ifr_flags = IFF_ATTACH_QUEUE; in tun_attach()
37 ifr.ifr_flags = IFF_DETACH_QUEUE; in tun_detach()
55 ifr.ifr_flags = IFF_TAP | IFF_NAPI | IFF_MULTI_QUEUE; in tun_alloc()
H A Dtap.c215 ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_VNET_HDR | IFF_MULTI_QUEUE; in opentap()
/openbmc/google-misc/subprojects/ncsid/src/
H A Dnet_iface.cpp75 ifr.ifr_flags |= flags; in mod_sock_flags()
79 ifr.ifr_flags &= ~flags; in mod_sock_flags()
H A Dnet_config.cpp179 flags_copy = ifr.ifr_flags; in set_mac_addr()
181 ifr.ifr_flags &= ~IFF_UP; in set_mac_addr()
192 ifr.ifr_flags = flags_copy | IFF_UP; in set_mac_addr()
/openbmc/phosphor-networkd/src/
H A Dsystem_queries.cpp108 ifr.ifr_flags &= ~IFF_UP; in setNICUp()
109 ifr.ifr_flags |= up ? IFF_UP : 0; in setNICUp()
/openbmc/linux/drivers/net/
H A Dtun.c1004 (ifr->ifr_flags & TUN_FEATURES); in tun_net_init()
1007 err = tun_attach(tun, tun->file, false, ifr->ifr_flags & IFF_NAPI, in tun_net_init()
1008 ifr->ifr_flags & IFF_NAPI_FRAGS, false); in tun_net_init()
2757 if ((ifr->ifr_flags & IFF_NAPI_FRAGS)) { in tun_set_iff()
2761 if (!(ifr->ifr_flags & IFF_NAPI) || in tun_set_iff()
2762 (ifr->ifr_flags & TUN_TYPE_MASK) != IFF_TAP) in tun_set_iff()
2768 if (ifr->ifr_flags & IFF_TUN_EXCL) in tun_set_iff()
2770 if ((ifr->ifr_flags & IFF_TUN) && dev->netdev_ops == &tun_netdev_ops) in tun_set_iff()
2772 else if ((ifr->ifr_flags & IFF_TAP) && dev->netdev_ops == &tap_netdev_ops) in tun_set_iff()
2777 if (!!(ifr->ifr_flags & IFF_MULTI_QUEUE) != in tun_set_iff()
[all …]
H A Dtap.c1025 if (get_user(u, &ifr->ifr_flags)) in tap_ioctl()
1047 put_user(u, &ifr->ifr_flags)) in tap_ioctl()
1054 if (get_user(u, &ifr->ifr_flags)) in tap_ioctl()
/openbmc/qemu/
H A Dqemu-bridge-helper.c349 ifr.ifr_flags = IFF_TAP|IFF_NO_PI; in main()
351 ifr.ifr_flags |= IFF_VNET_HDR; in main()
433 ifr.ifr_flags |= IFF_UP; in main()
/openbmc/u-boot/arch/sandbox/cpu/
H A Deth-raw-os.c54 ret = !!(ifr.ifr_flags & IFF_LOOPBACK); in sandbox_eth_raw_os_is_local()
130 ifr.ifr_flags |= IFF_PROMISC; in _raw_packet_start()
/openbmc/linux/Documentation/networking/
H A Dtuntap.rst108 ifr.ifr_flags = IFF_TUN;
163 ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_MULTI_QUEUE;
202 ifr.ifr_flags = IFF_ATTACH_QUEUE;
204 ifr.ifr_flags = IFF_DETACH_QUEUE;
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlwt_helpers.h49 ifr.ifr_flags = IFF_NO_PI | (need_mac ? IFF_TAP : IFF_TUN); in open_tuntap()
H A Dflow_dissector.c453 .ifr_flags = IFF_TAP | IFF_NO_PI | IFF_NAPI | IFF_NAPI_FRAGS, in create_tap()
498 ifr.ifr_flags |= IFF_UP; in ifup()
H A Dtc_redirect.c1033 ifr.ifr_flags = IFF_TUN | IFF_NO_PI; in tun_open()
/openbmc/linux/include/uapi/linux/
H A Dif.h265 #define ifr_flags ifr_ifru.ifru_flags /* flags */ macro
/openbmc/linux/arch/um/os-Linux/drivers/
H A Dtuntap_user.c148 ifr.ifr_flags = IFF_TAP | IFF_NO_PI; in tuntap_open()
/openbmc/linux/net/core/
H A Ddev_ioctl.c148 ifr->ifr_flags = (short) dev_get_flags(dev); in dev_ifsioc_locked()
529 return dev_change_flags(dev, ifr->ifr_flags, NULL); in dev_ifsioc()
/openbmc/phosphor-networkd/test/
H A Dmock_syscall.cpp173 req->ifr_flags = it->second.flags; in ioctl()
/openbmc/linux/arch/xtensa/platforms/iss/
H A Dnetwork.c172 ifr.ifr_flags = IFF_TAP | IFF_NO_PI; in tuntap_open()
/openbmc/linux/arch/um/drivers/
H A Dvector_user.c143 ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_VNET_HDR; in create_tap_fd()
/openbmc/linux/net/ipv4/
H A Ddevinet.c1174 if (!(ifr->ifr_flags & IFF_UP)) in devinet_ioctl()
1178 ret = dev_change_flags(dev, ifr->ifr_flags, NULL); in devinet_ioctl()