Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/
Dtun.c2614 if ((ifr->ifr_flags & IFF_NAPI_FRAGS)) { in tun_set_iff()
2618 if (!(ifr->ifr_flags & IFF_NAPI) || in tun_set_iff()
2619 (ifr->ifr_flags & TUN_TYPE_MASK) != IFF_TAP) in tun_set_iff()
2625 if (ifr->ifr_flags & IFF_TUN_EXCL) in tun_set_iff()
2627 if ((ifr->ifr_flags & IFF_TUN) && dev->netdev_ops == &tun_netdev_ops) in tun_set_iff()
2629 else if ((ifr->ifr_flags & IFF_TAP) && dev->netdev_ops == &tap_netdev_ops) in tun_set_iff()
2634 if (!!(ifr->ifr_flags & IFF_MULTI_QUEUE) != in tun_set_iff()
2644 err = tun_attach(tun, file, ifr->ifr_flags & IFF_NOFILTER, in tun_set_iff()
2645 ifr->ifr_flags & IFF_NAPI, in tun_set_iff()
2646 ifr->ifr_flags & IFF_NAPI_FRAGS, true); in tun_set_iff()
[all …]
Dtap.c988 if (get_user(u, &ifr->ifr_flags)) in tap_ioctl()
1010 put_user(u, &ifr->ifr_flags)) in tap_ioctl()
1017 if (get_user(u, &ifr->ifr_flags)) in tap_ioctl()
/Linux-v5.15/Documentation/networking/
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;
/Linux-v5.15/include/uapi/linux/
Dif.h265 #define ifr_flags ifr_ifru.ifru_flags /* flags */ macro
/Linux-v5.15/net/core/
Ddev_ioctl.c145 ifr->ifr_flags = (short) dev_get_flags(dev); in dev_ifsioc_locked()
324 return dev_change_flags(dev, ifr->ifr_flags, NULL); in dev_ifsioc()
/Linux-v5.15/arch/um/os-Linux/drivers/
Dtuntap_user.c148 ifr.ifr_flags = IFF_TAP | IFF_NO_PI; in tuntap_open()
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c394 .ifr_flags = IFF_TAP | IFF_NO_PI | IFF_NAPI | IFF_NAPI_FRAGS, in create_tap()
439 ifr.ifr_flags |= IFF_UP; in ifup()
Dtc_redirect.c573 ifr.ifr_flags = IFF_TUN | IFF_NO_PI; in tun_open()
/Linux-v5.15/arch/xtensa/platforms/iss/
Dnetwork.c175 ifr.ifr_flags = IFF_TAP | IFF_NO_PI; in tuntap_open()
/Linux-v5.15/arch/um/drivers/
Dvector_user.c143 ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_VNET_HDR; in create_tap_fd()
/Linux-v5.15/net/ipv4/
Ddevinet.c1138 if (!(ifr->ifr_flags & IFF_UP)) in devinet_ioctl()
1142 ret = dev_change_flags(dev, ifr->ifr_flags, NULL); in devinet_ioctl()