Searched refs:ifr_flags (Results 1 – 16 of 16) sorted by relevance
| /linux/tools/testing/selftests/net/ |
| H A D | ipv6_fragmentation.c | 65 ifr.ifr_flags = ifr.ifr_flags | IFF_UP; in setup()
|
| H A D | skf_net_off.c | 64 ifr.ifr_flags = IFF_TAP; in tun_open() 66 ifr.ifr_flags |= IFF_NAPI | IFF_NAPI_FRAGS; in tun_open()
|
| H A D | tun.c | 131 ifr.ifr_flags = IFF_ATTACH_QUEUE; in tun_attach() 142 ifr.ifr_flags = IFF_DETACH_QUEUE; in tun_detach() 160 ifr.ifr_flags = IFF_TAP | IFF_NAPI | IFF_MULTI_QUEUE; in tun_alloc() 189 ifr.ifr_flags = flags; in tun_open() 221 ifr.ifr_flags |= (IFF_UP | IFF_RUNNING); in tun_open()
|
| H A D | psock_fanout.c | 79 if (state_up != !!(ifreq.ifr_flags & IFF_UP)) { in loopback_set_up_down() 80 ifreq.ifr_flags ^= IFF_UP; in loopback_set_up_down()
|
| H A D | tap.c | 209 ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_VNET_HDR | IFF_MULTI_QUEUE; in opentap()
|
| /linux/drivers/net/ |
| H A D | tun.c | 937 (ifr->ifr_flags & TUN_FEATURES); in tun_net_init() 940 err = tun_attach(tun, tun->file, false, ifr->ifr_flags & IFF_NAPI, in tun_net_init() 941 ifr->ifr_flags & IFF_NAPI_FRAGS, false); in tun_net_init() 2702 if ((ifr->ifr_flags & IFF_NAPI_FRAGS)) { in tun_set_iff() 2706 if (!(ifr->ifr_flags & IFF_NAPI) || in tun_set_iff() 2707 (ifr->ifr_flags & TUN_TYPE_MASK) != IFF_TAP) in tun_set_iff() 2713 if (ifr->ifr_flags & IFF_TUN_EXCL) in tun_set_iff() 2715 if ((ifr->ifr_flags & IFF_TUN) && dev->netdev_ops == &tun_netdev_ops) in tun_set_iff() 2717 else if ((ifr->ifr_flags & IFF_TAP) && dev->netdev_ops == &tap_netdev_ops) in tun_set_iff() 2722 if (!!(ifr->ifr_flags & IFF_MULTI_QUEUE) != in tun_set_iff() [all …]
|
| H A D | tap.c | 933 if (get_user(u, &ifr->ifr_flags)) in tap_ioctl() 955 put_user(u, &ifr->ifr_flags)) in tap_ioctl() 962 if (get_user(u, &ifr->ifr_flags)) in tap_ioctl()
|
| /linux/Documentation/networking/ |
| H A D | tuntap.rst | 108 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;
|
| /linux/include/uapi/linux/ |
| H A D | if.h | 265 #define ifr_flags ifr_ifru.ifru_flags /* flags */ macro
|
| /linux/tools/virtio/ |
| H A D | vhost_net_test.c | 74 ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_VNET_HDR; in tun_alloc() 116 ifr.ifr_flags |= (IFF_UP | IFF_RUNNING); in vdev_create_socket()
|
| /linux/net/core/ |
| H A D | dev_ioctl.c | 150 ifr->ifr_flags = (short)netif_get_flags(dev); in dev_ifsioc_locked() 555 return dev_change_flags(dev, ifr->ifr_flags, NULL); in dev_siocwandev()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | flow_dissector.c | 569 .ifr_flags = IFF_TAP | IFF_NO_PI | IFF_NAPI | IFF_NAPI_FRAGS, in create_tap() 614 ifr.ifr_flags |= IFF_UP; in ifup()
|
| H A D | tc_redirect.c | 1096 ifr.ifr_flags = IFF_TUN | IFF_NO_PI; in tun_open()
|
| /linux/arch/um/drivers/ |
| H A D | vector_user.c | 146 ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_VNET_HDR; in create_tap_fd()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | network_helpers.c | 583 ifr.ifr_flags = IFF_NO_PI | (need_mac ? IFF_TAP : IFF_TUN); in open_tuntap()
|
| /linux/net/ipv4/ |
| H A D | devinet.c | 1192 if (!(ifr->ifr_flags & IFF_UP)) in devinet_ioctl() 1199 ret = dev_change_flags(dev, ifr->ifr_flags, NULL); in devinet_ioctl()
|