aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tun.c
AgeCommit message (Expand)AuthorFilesLines
7 daysMerge tag 'for-6.10/io_uring-20240511' of git://git.kernel.dk/linuxLinus Torvalds1-1/+1
2024-04-22net: extend ubuf_info callback to ops structurePavel Begunkov1-1/+1
2024-04-16tun: limit printing rate when illegal packet received by tun devLei Chen1-8/+10
2024-03-07net: introduce include/net/rps.hEric Dumazet1-0/+1
2024-03-05net: tap: Remove generic .ndo_get_stats64Breno Leitao1-1/+0
2024-03-05net: tuntap: Leverage core stats allocatorBreno Leitao1-9/+2
2024-02-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+1
2024-02-23tun: Fix xdp_rxq_info's queue_index when detachingYunjian Wang1-0/+1
2024-02-13xdp: rely on skb pointer reference in do_xdp_generic and netif_receive_generi...Lorenzo Bianconi1-2/+2
2024-02-04tun: Implement ethtool's get_channels() callbackYunjian Wang1-0/+10
2024-01-30net/tun: use reciprocal_scaleStephen Hemminger1-4/+3
2024-01-22tun: add missing rx stats accounting in tun_xdp_actYunjian Wang1-0/+2
2024-01-22tun: fix missing dropped counter in tun_xdp_actYunjian Wang1-2/+6
2023-10-17tun: prevent negative ifindexEric Dumazet1-2/+5
2023-08-17tun: add __exit annotations to module exit func tun_cleanup()Ziyang Xuan1-1/+1
2023-08-10tun: avoid high-order page allocation for packet headerTahsin Erdogan1-1/+4
2023-08-10Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2023-08-07drivers: net: prevent tun_build_skb() to exceed the packet size limitAndrew Kanner1-1/+1
2023-08-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2023-08-02net: tun: change tun_alloc_skb() to allow bigger paged allocationsEric Dumazet1-1/+3
2023-08-02net: tun_chr_open(): set sk_uid from current_fsuid()Laszlo Ersek1-1/+1
2023-05-17tun: Fix memory leak for detached NAPI queue.Kuniyuki Iwashima1-0/+15
2023-04-26Merge tag 'net-next-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-0/+2
2023-03-30iov_iter: add iter_iovec() helperJens Axboe1-1/+2
2023-03-10tun: flag the device as supporting FMODE_NOWAITJens Axboe1-0/+2
2023-02-10Daniel Borkmann says:Jakub Kicinski1-0/+5
2023-02-06tun: tun_chr_open(): correctly initialize socket uidPietro Borrello1-1/+1
2023-02-02drivers: net: turn on XDP featuresMarek Majtyka1-0/+5
2022-12-12driver/net/tun: Added features for USO.Andrew Melnychenko1-1/+7
2022-11-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+3
2022-11-29net: tun: Fix use-after-free in tun_detach()Shigeru Yoshida1-1/+3
2022-11-14net: tun: rebuild error handling in tun_get_userChuang Wang1-36/+29
2022-11-10Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-5/+13
2022-11-08net: tun: call napi_schedule_prep() to ensure we own a napiEric Dumazet1-6/+13
2022-11-04net: tun: Fix memory leaks of napi_get_fragsWang Yufen1-0/+1
2022-11-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+2
2022-11-03net: tun: bump the link speed from 10Mbps to 10GbpsIlya Maximets1-1/+1
2022-10-31net: tun: fix bugs for oversize packet when napi frags enabledZiyang Xuan1-1/+2
2022-09-30net: tun: Convert to use sysfs_emit() APIsWang Yufen1-7/+7
2022-09-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+6
2022-09-23tun: support not enabling carrier in TUNSETIFFPatrick Rohr1-3/+6
2022-08-31net: move from strlcpy with unused retval to strscpyWolfram Sang1-4/+4
2022-06-30net: tun: avoid disabling NAPI twiceJakub Kicinski1-1/+2
2022-06-27net: tun: stop NAPI when detaching queuesJakub Kicinski1-1/+10
2022-06-24net: tun: unlink NAPI from device on destructionJakub Kicinski1-0/+1
2022-05-05net: switch to netif_napi_add_tx()Jakub Kicinski1-2/+1
2022-04-14tun: annotate access to queue->trans_startAntoine Tenart1-1/+1
2022-03-11net: add per-cpu storage and net->core_statsEric Dumazet1-8/+8
2022-03-07tun: vxlan: Use netif_rx().Sebastian Andrzej Siewior1-1/+1
2022-03-06net: tun: track dropped skb via kfree_skb_reason()Dongli Zhang1-9/+28
2022-03-06net: tun: split run_ebpf_filter() and pskb_trim() into different "if statement"Dongli Zhang1-1/+4
2022-03-02tuntap: add sanity checks about msg_controllen in sendmsgHarold Huang1-1/+2
2022-03-01tun: support NAPI for packets received from batched XDP buffsHarold Huang1-13/+30
2021-12-31Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-1/+1
2021-12-17tun: avoid double free in tun_free_netdevGeorge Kennedy1-56/+59
2021-12-13bpf: Let bpf_warn_invalid_xdp_action() report more infoPaolo Abeni1-1/+1
2021-11-15tun: fix bonding active backup with arp monitoringNicolas Dichtel1-0/+5
2021-08-24ethtool: extend coalesce setting uAPI with CQE modeYufeng Mo1-2/+6
2021-05-19tun: use DEVICE_ATTR_RO macroYueHaibing1-8/+8
2021-04-28net: tun: Remove redundant assignment to retYang Li1-1/+0
2021-04-09Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+48
2021-04-06net: tun: set tun->dev->addr_len during TUNSETLINK processingPhillip Potter1-0/+48
2021-03-18bpf, devmap: Move drop error path to devmap for XDP_REDIRECTLorenzo Bianconi1-6/+9
2021-02-11net: fix dev_ifsioc_locked() race conditionCong Wang1-3/+2
2021-01-19net: tun: fix misspellings using codespell toolMenglong Dong1-1/+1
2021-01-08net, xdp: Introduce xdp_prepare_buff utility routineLorenzo Bianconi1-4/+1
2021-01-08net, xdp: Introduce xdp_init_buff utility routineLorenzo Bianconi1-4/+3
2021-01-07tap/tun: add skb_zcopy_init() helper for initialization.Jonathan Lemon1-2/+1
2021-01-07net: group skb_shinfo zerocopy related bits together.Jonathan Lemon1-2/+1
2021-01-07skbuff: Add skb parameter to the ubuf zerocopy callbackJonathan Lemon1-1/+1
2020-12-28tun: fix return value when the number of iovs exceeds MAX_SKB_FRAGSYunjian Wang1-1/+1
2020-12-04Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-1/+1
2020-12-01xsk: Propagate napi_id to XDP socket Rx pathBjörn Töpel1-1/+1
2020-11-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+11
2020-11-23net/tun: Call type change netdev notifiersMartin Schiller1-1/+10
2020-11-21tun: honor IOCB_NOWAIT flagJens Axboe1-3/+11
2020-11-09tun: switch to net core provided statistics countersHeiner Kallweit1-87/+34
2020-09-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+3
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-3/+3
2020-08-19net-tun: Eliminate two tun/xdp related function calls from vhost-netMaciej Żenczykowski1-18/+0
2020-08-19net-tun: Add type safety to tun_xdp_to_ptr() and tun_ptr_to_xdp()Maciej Żenczykowski1-3/+3
2020-08-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-15/+0
2020-07-31tun: add missing rcu annotation in tun_set_ebpf()Jason Wang1-1/+1
2020-07-25bpf, xdp: Remove XDP_QUERY_PROG and XDP_QUERY_PROG_HW XDP commandsAndrii Nakryiko1-15/+0
2020-06-30tun: implement header_ops->parse_protocol for AF_PACKETJason A. Donenfeld1-0/+2
2020-06-01xdp: Rename convert_to_xdp_frame in xdp_convert_buff_to_frameLorenzo Bianconi1-1/+1
2020-06-01tun: correct header offsets in napi frags modeWillem de Bruijn1-4/+10
2020-05-14tun: Add XDP frame sizeJesper Dangaard Brouer1-0/+2
2020-04-12net: tun: record RX queue in skb before do_xdp_generic()Gilberto Bertin1-1/+2
2020-04-06tun: Don't put_page() for all negative return values from XDP programWill Deacon1-4/+6
2020-03-06tun: reject unsupported coalescing paramsJakub Kicinski1-0/+1
2020-03-05tun: drop TUN_DEBUG and tun_debug()Michal Kubecek1-17/+0
2020-03-05tun: replace tun_debug() by netif_info()Michal Kubecek1-33/+27
2020-03-05tun: drop useless debugging statementsMichal Kubecek1-13/+0
2020-03-05tun: get rid of DBG1() macroMichal Kubecek1-14/+0
2020-03-05tun: fix misleading comment formatMichal Kubecek1-2/+1
2020-02-23tun: Remove unnecessary BUG_ON check in tun_net_xmitDavid Ahern1-2/+0
2020-01-26Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-0/+4
2020-01-23tun: add mutex_unlock() call and napi.skb clearing in tun_get_user()Eric Dumazet1-0/+4
2020-01-16xdp: Use bulking for non-map XDP_REDIRECT and consolidate code pathsToke Høiland-Jørgensen1-2/+2
2019-11-15tun: fix data-race in gro_normal_list()Petar Penkov1-2/+2
2019-11-07tun: switch to u64_stats_tEric Dumazet1-16/+16
2019-10-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-2/+2
2019-10-09tun: remove possible false sharing in tun_flow_update()Eric Dumazet1-2/+2
2019-10-08Revert "tun: call dev_get_valid_name() before register_netdevice()"Eric Dumazet1-3/+0
2019-10-08tun: fix memory leak in error pathEric Dumazet1-2/+12
2019-10-01netfilter: drop bridge nf reset from nf_resetFlorian Westphal1-1/+1
2019-09-12tun: fix use-after-free when register netdev failedYang Yingliang1-5/+11
2019-07-25tun: mark small packets as owned by the tap sockAlexis Bauvin1-3/+6
2019-07-08coallocate socket_wq with socket itselfAl Viro1-5/+3
2019-06-18tun: wake up waitqueues after IFF_UP is setFei Li1-10/+9
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157Thomas Gleixner1-10/+1
2019-05-09tuntap: synchronize through tfiles array instead of tun->numqueuesJason Wang1-1/+6
2019-05-09tuntap: fix dividing by zero in ebpf queue selectionJason Wang1-1/+6
2019-04-23net: pass net_device argument to the eth_get_headlenStanislav Fomichev1-1/+2
2019-03-23net: convert rps_needed and rfs_needed to new static branch apiEric Dumazet1-1/+1
2019-03-21tun: Remove unused first parameter of tun_get_iff()Kirill Tkhai1-4/+3
2019-03-21tun: Add ioctl() TUNGETDEVNETNS cmd to allow obtaining real net ns of tun deviceKirill Tkhai1-0/+8
2019-03-20net: remove 'fallback' argument from dev->ndo_select_queue()Paolo Abeni1-2/+1
2019-03-16tun: add a missing rcu_read_unlock() in error pathEric Dumazet1-0/+1
2019-03-15tun: properly test for IFF_UPEric Dumazet1-4/+11
2019-03-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+2
2019-02-25tun: remove unnecessary memory barrierTimur Celik1-1/+1
2019-02-24tun: fix blocking readTimur Celik1-2/+2
2019-02-22net: Don't set transport offset to invalid valueMaxim Mikityanskiy1-2/+2
2019-01-30tun: move the call to tun_set_real_num_queuesGeorge Amanakis1-2/+1
2019-01-10tun: publish tfile after it's fully initializedStanislav Fomichev1-4/+7
2018-12-14tun: replace get_cpu_ptr with this_cpu_ptr when bh disabledPrashant Bhole1-2/+4
2018-12-13net: dev: Add extack argument to dev_set_mac_address()Petr Machata1-1/+1
2018-12-09Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-4/+5
2018-12-06tun: remove unnecessary check in tun_flow_updateLi RongQing1-4/+1
2018-12-06tun: align write-heavy flow entry members to a cache lineLi RongQing1-3/+5
2018-12-03tun: remove skb access after netif_receive_skbPrashant Bhole1-1/+2
2018-11-30tun: forbid iface creation with rtnl opsNicolas Dichtel1-3/+3
2018-11-30tun: implement carrier changeNicolas Dichtel1-1/+26
2018-11-19Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+6
2018-11-18tuntap: fix multiqueue rxMatthew Cover1-1/+6
2018-11-18tun: use netdev_alloc_frag() in tun_napi_alloc_frags()Eric Dumazet1-8/+7
2018-11-17tun: Adjust on-stack tun_page initialization.David S. Miller1-1/+3
2018-11-17tuntap: free XDP dropped packets in a batchJason Wang1-3/+26
2018-11-07tun: compute the RFS hash only if needed.Paolo Abeni1-1/+2
2018-10-15tun: Consistently configure generic netdev params via rtnetlinkSerhey Popovych1-0/+2
2018-10-10net: tun: remove useless codes of tun_automq_select_queueWang Li1-22/+13
2018-10-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-16/+21
2018-10-01tun: napi flags belong to tfileEric Dumazet1-9/+14
2018-10-01tun: initialize napi_mutex unconditionallyEric Dumazet1-1/+1
2018-10-01tun: remove unused parametersEric Dumazet1-6/+6
2018-09-25Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-43/+0
2018-09-23tun: remove ndo_poll_controllerEric Dumazet1-43/+0
2018-09-13tuntap: accept an array of XDP buffs through sendmsg()Jason Wang1-3/+114
2018-09-13tun: switch to new type of msg_controlJason Wang1-1/+5
2018-09-13tuntap: move XDP flushing out of tun_do_xdp()Jason Wang1-1/+2
2018-09-13tuntap: split out XDP logicJason Wang1-37/+51
2018-09-13tuntap: tweak on the path of skb XDP case in tun_build_skb()Jason Wang1-15/+24
2018-09-13tuntap: simplify error handling in tun_build_skb()Jason Wang1-7/+3
2018-09-13tuntap: enable bh early during processing XDPJason Wang1-7/+3
2018-09-13tuntap: switch to use XDP_PACKET_HEADROOMJason Wang1-2/+1
2018-09-13net: sock: introduce SOCK_XDPJason Wang1-0/+19
2018-08-21Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+1
2018-08-04tun: not use hardcoded mask valueLi RongQing1-1/+2
2018-07-21signal: Use PIDTYPE_TGID to clearly store where file signals will be sentEric W. Biederman1-1/+1
2018-07-20Merge ra.kernel.org:/pub/scm/linux/kernel/git/torvalds/linuxDavid S. Miller1-1/+1
2018-07-16tun: Fix use-after-free on XDP_TXToshiaki Makita1-1/+1
2018-07-14Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-1/+0
2018-07-13xdp: don't make drivers report attachment modeJakub Kicinski1-1/+0
2018-07-09net: allow ndo_select_queue to pass netdevAlexander Duyck1-1/+2
2018-06-07net: in virtio_net_hdr only add VLAN_HLEN to csum_start if payload holds vlanWillem de Bruijn1-1/+2
2018-06-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-27/+17
2018-06-05tun: remove ndo_xdp_flush call tun_xdp_flushJesper Dangaard Brouer1-22/+1
2018-06-04Allow ethtool to change tun link settingsChas Williams1-2/+25
2018-06-03tun: implement flush flag for ndo_xdp_xmitJesper Dangaard Brouer1-6/+13
2018-06-03xdp: add flags argument to ndo_xdp_xmit APIJesper Dangaard Brouer1-2/+6
2018-06-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-6/+9
2018-05-29tun: Fix NULL pointer dereference in XDP redirectToshiaki Makita1-6/+9
2018-05-26Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-4/+15
2018-05-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-13/+24
2018-05-24xdp: change ndo_xdp_xmit API to support bulkingJesper Dangaard Brouer1-13/+24
2018-05-23tuntap: correctly set SOCKWQ_ASYNC_NOSPACEJason Wang1-4/+15
2018-05-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-15/+12
2018-05-16tuntap: fix use after free during releaseJason Wang1-1/+1
2018-05-14tun: fix use after free for ptr_ringJason Wang1-15/+12
2018-05-10tun: Do SIOCGSKNS out of rtnl_lock()Kirill Tkhai1-11/+7
2018-04-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-6/+1
2018-04-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-1/+2
2018-04-20tun: do not compute the rxhash, if not neededPaolo Abeni1-9/+6
2018-04-18bpf: make tun compatible w/ bpf_xdp_adjust_tailNikita V. Shirokov1-1/+2
2018-04-18tun: fix vlan packet truncationBjørn Mork1-6/+1
2018-04-17xdp: transition into using xdp_frame for ndo_xdp_xmitJesper Dangaard Brouer1-7/+12
2018-04-17xdp: transition into using xdp_frame for return APIJesper Dangaard Brouer1-2/+2
2018-04-17xdp: rhashtable with allocator ID to pointer mappingJesper Dangaard Brouer1-0/+6
2018-04-17tun: convert to use generic xdp_frame and xdp_return_frame APIJesper Dangaard Brouer1-23/+20
2018-04-11tun: send netlink notification when the device is modifiedSabrina Dubroca1-2/+22
2018-04-11tun: set the flags before registering the netdeviceSabrina Dubroca1-3/+6
2018-03-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+2
2018-03-14tuntap: XDP_TX can use native XDPJason Wang1-11/+8
2018-03-09vhost_net: examine pointer types during un-producingJason Wang1-1/+2
2018-03-06Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-15/+7
2018-02-26tuntap: correctly add the missing XDP flushJason Wang1-0/+1
2018-02-26tuntap: disable preemption during XDP processingJason Wang1-0/+6
2018-02-26Revert "tuntap: add missing xdp flush"Jason Wang1-15/+0