aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vhost/net.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-22net: extend ubuf_info callback to ops structurePavel Begunkov1-2/+6
2024-03-19Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds1-0/+3
2024-03-19vhost: Added pad cleanup if vnet_hdr is not present.Andrew Melnychenko1-0/+3
2024-03-05vhost/net: remove vhost_net_page_frag_refill()Yunsheng Lin1-64/+27
2024-03-05page_frag: unify gfp bits for order 3 page allocationYunsheng Lin1-1/+1
2023-07-03vhost: convert poll work to be vq basedMike Christie1-2/+4
2023-07-03vhost, vhost_net: add helper to check if vq has workMike Christie1-1/+1
2023-06-08vhost_net: revert upend_idx only on retriable errorAndrey Smetanin1-3/+8
2023-02-20vhost-net: support VIRTIO_F_RING_RESETKangjie Xu1-1/+2
2023-02-20vhost: remove unused parameteLiming Wu1-1/+1
2023-01-27vhost/net: Clear the pending messages when the backend is removedEric Auger1-0/+3
2022-11-25use less confusing names for iov_iter direction initializersAl Viro1-3/+3
2022-10-10Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds1-2/+2
2022-10-07vhost: add __init/__exit annotations to module init/exit funcsXiu Jianfeng1-2/+2
2022-09-28vhost/net: use struct ubuf_info_msgzcPavel Begunkov1-7/+8
2022-05-31vhost: rename vhost_work_dev_flushMike Christie1-2/+2
2022-05-31vhost_net: get rid of vhost_net_flush_vq() and extra flush callsAndrey Ryabinin1-9/+2
2022-05-31vhost: get rid of vhost_poll_flush() wrapperAndrey Ryabinin1-2/+2
2022-05-18Fix double fget() in vhost_net_set_backend()Al Viro1-8/+7
2022-03-02tuntap: add sanity checks about msg_controllen in sendmsgHarold Huang1-0/+1
2021-09-09vhost_net: fix OoB on sendmsg() failure.Paolo Abeni1-1/+10
2021-08-26sock: remove one redundant SKB_FRAG_PAGE_ORDER macroYunsheng Lin1-2/+0
2021-05-14vhost_net: use XDP helpersMatteo Croce1-4/+2
2021-01-19vhost_net: avoid tx queue stuck when sendmsg failsYunjian Wang1-12/+14
2021-01-07tap/tun: add skb_zcopy_init() helper for initialization.Jonathan Lemon1-0/+1
2021-01-07skbuff: Add skb parameter to the ubuf zerocopy callbackJonathan Lemon1-1/+2
2021-01-04vhost_net: fix ubuf refcount incorrectly when sendmsg failsYunjian Wang1-3/+3
2020-08-11Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds1-18/+4
2020-08-05vhost: generialize backend features setting/gettingJason Wang1-16/+2
2020-08-03virtio: VIRTIO_F_IOMMU_PLATFORM -> VIRTIO_F_ACCESS_PLATFORMMichael S. Tsirkin1-2/+2
2020-07-16treewide: Remove uninitialized_var() usageKees Cook1-3/+3
2020-06-10Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds1-1/+1
2020-06-04vhost: allow device that does not depend on vhost workerJason Wang1-1/+1
2020-05-14vhost_net: Also populate XDP frame sizeJesper Dangaard Brouer1-0/+1
2020-04-16vhost: Create accessors for virtqueues private_dataEugenio Pérez1-13/+15
2020-04-01vhost: factor out IOTLBJason Wang1-1/+1
2020-04-01vhost: allow per device message handlerJason Wang1-1/+2
2020-02-22vhost: Check docket sk_family instead of call getnameEugenio Pérez1-9/+1
2019-10-23compat_ioctl: move drivers to compat_ptr_ioctlArnd Bergmann1-11/+1
2019-07-17Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds1-2/+2
2019-06-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+1
2019-06-19treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 482Thomas Gleixner1-2/+1
2019-06-17vhost_net: disable zerocopy by defaultJason Wang1-1/+1
2019-06-05vhost: rename vq_iotlb_prefetch() to vq_meta_prefetch()Jason Wang1-2/+2
2019-05-27vhost_net: fix possible infinite loopJason Wang1-16/+13
2019-05-27vhost: introduce vhost_exceeds_weight()Jason Wang1-16/+6
2019-01-28vhost: fix OOB in get_rx_bufs()Jason Wang1-1/+2
2019-01-17vhost: log dirty page correctlyJason Wang1-1/+2
2018-12-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-3/+51
2018-12-26Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-1/+1
2018-12-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+7
2018-12-12vhost_net: switch to use mutex_trylock() in vhost_net_busy_poll()Jason Wang1-1/+7
2018-11-27drivers/vhost: Replace synchronize_rcu_bh() with synchronize_rcu()Paul E. McKenney1-1/+1
2018-11-17vhost_net: mitigate page reference counting during page frag refillJason Wang1-3/+51
2018-10-07net: vhost: remove bad code lineTonghao Zhang1-1/+0
2018-09-26net: vhost: add rx busy polling in tx pathTonghao Zhang1-21/+14
2018-09-26net: vhost: factor out busy polling logic to vhost_net_busy_poll()Tonghao Zhang1-40/+70
2018-09-26net: vhost: replace magic number of lock annotationTonghao Zhang1-3/+3
2018-09-21vhost_net: add a missing error returnDan Carpenter1-0/+1
2018-09-13vhost_net: batch submitting XDP buffers to underlayer socketsJason Wang1-13/+161
2018-09-13tun: switch to new type of msg_controlJason Wang1-2/+5
2018-08-06vhost: switch to use new message formatJason Wang1-0/+30
2018-07-22vhost_net: batch update used ring for datacopy TXJason Wang1-15/+25
2018-07-22vhost_net: rename VHOST_RX_BATCH to VHOST_NET_BATCHJason Wang1-4/+4
2018-07-22vhost_net: rename vhost_rx_signal_used() to vhost_net_signal_used()Jason Wang1-4/+4
2018-07-22vhost_net: split out datacopy logicJason Wang1-20/+90
2018-07-22vhost_net: introduce tx_can_batch()Jason Wang1-2/+7
2018-07-22vhost_net: introduce get_tx_bufs()Jason Wang1-17/+32
2018-07-22vhost_net: introduce vhost_exceeds_weight()Jason Wang1-5/+8
2018-07-22vhost_net: introduce helper to initialize tx iov iterJason Wang1-9/+17
2018-07-22vhost_net: drop unnecessary parameterJason Wang1-4/+2
2018-07-04vhost_net: Avoid rx vring kicks during busyloopToshiaki Makita1-3/+7
2018-07-04vhost_net: Avoid rx queue wake-ups during busypollToshiaki Makita1-7/+19
2018-07-04vhost_net: Avoid tx vring kicks during busyloopToshiaki Makita1-13/+22
2018-07-04vhost_net: Rename local variables in vhost_net_rx_peek_head_lenToshiaki Makita1-17/+17
2018-06-23vhost_net: validate sock before trying to put its fdJason Wang1-1/+2
2018-06-12treewide: kmalloc() -> kmalloc_array()Kees Cook1-3/+5
2018-06-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-13/+24
2018-05-30vhost_net: flush batched heads before trying to busy pollingJason Wang1-13/+24
2018-04-24vhost_net: use packet weight for rx handler, tooPaolo Abeni1-4/+8
2018-04-17tun: convert to use generic xdp_frame and xdp_return_frame APIJesper Dangaard Brouer1-3/+4
2018-04-09vhost-net: set packet weight of tx polling to 2 * vq sizehaibinzhang(张海斌)1-1/+7
2018-04-01Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+2
2018-03-26vhost_net: add missing lock nesting notationJason Wang1-2/+2
2018-03-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-3/+5
2018-03-09vhost_net: examine pointer types during un-producingJason Wang1-1/+1
2018-03-09vhost_net: keep private_data and rx_ring syncedJason Wang1-2/+3
2018-03-09vhost_net: initialize rx_ring in vhost_net_open()Alexander Potapenko1-0/+1
2018-02-12net: make getname() functions return length rather than use int* parameterDenys Vlasenko1-4/+3
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-2/+2
2018-02-08Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds1-1/+1
2018-02-01vhost: remove unused lock check flag in vhost_dev_cleanup()夷则(Caspar)1-1/+1
2018-01-31Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-24/+44
2018-01-30Merge branch 'misc.poll' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2018-01-29vhost_net: stop device during reset ownerJason Wang1-0/+1
2018-01-10vhost_net: batch used ring update in rxJason Wang1-4/+11
2018-01-09tuntap: XDP transmissionJason Wang1-1/+12
2018-01-09tun/tap: use ptr_ring instead of skb_arrayJason Wang1-19/+20
2017-12-02vhost: fix skb leak in handle_rx()Wei Xu1-10/+10
2017-11-28the rest of drivers/*: annotate ->poll() instancesAl Viro1-1/+1
2017-11-15vhost_net: conditionally enable tx pollingJason Wang1-0/+2
2017-10-09vhost_net: do not stall on zerocopy depletionWillem de Bruijn1-9/+3
2017-09-05vhost_net: correctly check tx avail during rx busy pollingJason Wang1-1/+6
2017-09-01net: convert (struct ubuf_info)->refcnt to refcount_tEric Dumazet1-1/+1
2017-08-03sock: enable MSG_ZEROCOPYWillem de Bruijn1-0/+1
2017-07-12mm, tree wide: replace __GFP_REPEAT by __GFP_RETRY_MAYFAIL with more useful s...Michal Hocko1-1/+1
2017-05-18vhost_net: try batch dequing from skb arrayJason Wang1-6/+122
2017-05-08mm: support __GFP_REPEAT in kvmalloc_node for >32kBMichal Hocko1-6/+3
2017-03-02sched/headers: Prepare to move signal wakeup & sigpending methods from <linux...Ingo Molnar1-0/+1
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-02-11tap: Renaming tap related APIs, data structures, macrosSainath Grandhi1-1/+2
2017-01-18vhost_net: tx batchingJason Wang1-3/+20
2016-11-16locking/core: Remove cpu_relax_lowlatency() usersChristian Borntraeger1-2/+2
2016-08-06Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhostLinus Torvalds1-10/+57
2016-08-02vhost: new device IOTLB APIJason Wang1-6/+53
2016-08-02vhost: convert pre sorted vhost memory array to interval treeJason Wang1-4/+4
2016-07-01tun: switch to use skb array for txJason Wang1-1/+15
2016-06-07vhost_net: stop polling socket during rx processingJason Wang1-31/+33
2016-03-11vhost_net: basic polling supportJason Wang1-5/+73
2016-03-02vhost: rename vhost_init_used()Greg Kurz1-1/+1
2015-09-16vhost: move features to coreMichael S. Tsirkin1-2/+1
2015-04-11new helper: msg_data_left()Al Viro1-2/+2
2015-03-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-11/+14
2015-03-02net: Remove iocb argument from sendmsg and recvmsgYing Xue1-3/+3
2015-02-27vhost: drop hard-coded num_buffers sizeMichael S. Tsirkin1-1/+2
2015-02-27vhost: cleanup iterator update logicMichael S. Tsirkin1-10/+12
2015-02-15vhost_net: fix wrong iter offset when setting number of buffersJason Wang1-5/+6
2015-02-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-7/+7
2015-02-04vhost/net: fix up num_buffers endian-nessMichael S. Tsirkin1-1/+3
2015-02-04vhost: don't bother copying iovecs in handle_rx(), kill memcpy_toiovecend()Al Viro1-59/+23
2015-02-04vhost: don't bother with copying iovec in handle_tx()Al Viro1-4/+5
2015-01-15Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2015-01-13net: rename vlan_tx_* helpers since "tx" is misleading thereJiri Pirko1-1/+1
2015-01-07vhost/net: length miscalculationMichael S. Tsirkin1-1/+1
2014-12-11Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-5/+3
2014-12-09put iov_iter into msghdrAl Viro1-5/+3
2014-12-09vhost/net: enable virtio 1.0Michael S. Tsirkin1-1/+2
2014-12-09vhost/net: larger header for virtio 1.0Michael S. Tsirkin1-1/+2
2014-12-09vhost/net: virtio 1.0 byte swapMichael S. Tsirkin1-5/+10
2014-12-09vhost/net: force len for TX to host endianMichael S. Tsirkin1-5/+5
2014-06-23vhost-net: don't open-code kvfreeRomain Francoise1-10/+2
2014-06-09vhost: move memory pointer to VQsMichael S. Tsirkin1-2/+2
2014-06-09vhost: move acked_features to VQsMichael S. Tsirkin1-5/+3
2014-06-09vhost-net: extend device allocation to vmallocMichael S. Tsirkin1-5/+18
2014-04-01vhost: don't open-code sockfd_put()Al Viro1-7/+7
2014-03-28vhost: validate vhost_get_vq_desc return valueMichael S. Tsirkin1-1/+5
2014-03-28vhost: fix total length when packets are too shortMichael S. Tsirkin1-0/+14
2014-02-13vhost: fix a theoretical race in device cleanupMichael S. Tsirkin1-0/+6
2014-02-13vhost: fix ref cnt checking deadlockMichael S. Tsirkin1-21/+20
2013-12-06vhost: remove the dead branchZhi Yong Wu1-7/+2
2013-09-03vhost_net: correctly limit the max pending buffersJason Wang1-11/+7
2013-09-03vhost_net: poll vhost queue after marking DMA is doneJason Wang1-4/+5
2013-09-03vhost_net: determine whether or not to use zerocopy at one timeJason Wang1-27/+20
2013-09-03vhost_net: use vhost_add_used_and_signal_n() in vhost_zerocopy_signal_used()Jason Wang1-5/+8
2013-09-03vhost_net: make vhost_zerocopy_signal_used() return voidJason Wang1-3/+2
2013-07-11vhost: Remove custom vhost rcu usageAsias He1-10/+6
2013-07-11vhost-net: Always access vq->private_data under vq mutexAsias He1-11/+10
2013-07-07vhost: Make local function staticAsias He1-2/+2
2013-07-07vhost-net: fix use-after-free in vhost_net_flushMichael S. Tsirkin1-2/+7
2013-06-11vhost: fix ubuf_info cleanupMichael S. Tsirkin1-15/+7
2013-06-11vhost: check owner before we overwrite ubuf_infoMichael S. Tsirkin1-0/+4
2013-06-10vhost_net: clear msg.control for non-zerocopy case during txJason Wang1-1/+2
2013-05-06vhost-net: Cleanup vhost_ubuf and vhost_zcopyAsias He1-28/+30
2013-05-06vhost: Move VHOST_NET_FEATURES to net.cAsias He1-0/+6
2013-05-06vhost-net: Free ubuf when vhost_dev_set_owner failsAsias He1-6/+32
2013-05-01vhost: fix error handling in RESET_OWNER ioctlMichael S. Tsirkin1-1/+7
2013-05-01vhost: move per-vq net specific fields out to netMichael S. Tsirkin1-16/+27
2013-05-01vhost: move vhost-net zerocopy fields to net.cAsias He1-23/+141
2013-05-01vhost: Allow device specific fields per vqAsias He1-23/+41
2013-04-11vhost_net: remove tx polling stateJason Wang1-68/+6
2013-03-17vhost/net: fix heads usage of ubuf_infoMichael S. Tsirkin1-1/+2
2013-01-29vhost_net: handle polling errors when setting backendJason Wang1-9/+18
2013-01-29vhost_net: correct error handling in vhost_net_set_backend()Jason Wang1-5/+11
2012-12-06vhost-net: enable zerocopy tx by defaultMichael S. Tsirkin1-2/+3
2012-12-06vhost-net: skip head management if no outstandingMichael S. Tsirkin1-4/+7
2012-12-06vhost-net: flush outstanding DMAs on memory changeMichael S. Tsirkin1-9/+19
2012-12-06vhost: avoid backend flush on vring opsMichael S. Tsirkin1-2/+5
2012-12-03vhost-net: initialize zcopy packet countersMichael S. Tsirkin1-0/+3
2012-11-10Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+2
2012-11-02vhost-net: reduce vq polling on tx zerocopyMichael S. Tsirkin1-2/+12
2012-11-02vhost-net: select tx zero copy dynamicallyMichael S. Tsirkin1-8/+53
2012-11-02vhost: move -net specific code outMichael S. Tsirkin1-0/+45
2012-11-02vhost-net: cleanup macros for DMA status trackingMichael S. Tsirkin1-1/+2
2012-10-24vhost: fix mergeable bufs on BE hostsMichael S. Tsirkin1-1/+2
2012-07-22vhost: Separate vhost-net features from vhost featuresStefan Hajnoczi1-2/+2
2012-05-16Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+6
2012-05-11vhost-net: fix handle_rx buffer sizeBasil Gor1-1/+6
2012-05-02vhost_net: zerocopy: adding and signalling immediately when fully copiedJason Wang1-0/+2
2012-05-02vhost_net: re-poll only on EAGAIN or ENOBUFSJason Wang1-1/+2
2012-05-02vhost_net: zerocopy: fix possible NULL pointer dereference of vq->bufsJason Wang1-1/+1
2012-04-13skbuff: struct ubuf_info callback type safetyMichael S. Tsirkin1-1/+1
2012-02-28vhost: fix release path lockdep checksMichael S. Tsirkin1-1/+1
2012-01-13vhost-net: add module alias (v2.1)stephen hemminger1-3/+5
2011-07-21vhost: handle wrap around in # of bufs mathShirley Ma1-3/+9
2011-07-21vhost-net: update used ring on backend changeMichael S. Tsirkin1-1/+5
2011-07-19vhost: init used ring after backend was setJason Wang1-0/+4
2011-07-18vhost: vhost TX zero-copy supportMichael S. Tsirkin1-1/+76
2011-05-30vhost: support event indexMichael S. Tsirkin1-6/+6
2011-03-13vhost-net: remove unlocked use of receive_queueMichael S. Tsirkin1-1/+1
2011-03-13vhost: lock receive queue, not the socketJason Wang1-3/+4