aboutsummaryrefslogtreecommitdiffstats
path: root/net/xdp/xsk.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-05xsk: validate user input for XDP_{UMEM|COMPLETION}_FILL_RINGEric Dumazet1-0/+2
2024-03-02Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-1/+4
2024-02-13xsk: Add truesize to skb_add_rx_frag().Sebastian Andrzej Siewior1-1/+2
2024-02-05xsk: support redirect to any socket bound to the same umemMagnus Karlsson1-1/+4
2024-01-24xsk: recycle buffer in case Rx queue was fullMaciej Fijalkowski1-4/+8
2023-12-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+2
2023-12-05xsk: Skip polling event check for unbound socketYewon Choi1-3/+2
2023-11-29xsk: Add option to calculate TX checksum in SWStanislav Fomichev1-0/+6
2023-11-29xsk: Validate xsk_tx_metadata flagsStanislav Fomichev1-0/+4
2023-11-29xsk: Add TX timestamp and TX checksum offload supportStanislav Fomichev1-0/+34
2023-11-29xsk: Support tx_metadata_lenStanislav Fomichev1-1/+11
2023-10-24xsk: Avoid starving the xsk further down the listAlbert Huang1-0/+18
2023-10-17net, bpf: Add a warning if NAPI cb missed xdp_do_flush().Sebastian Andrzej Siewior1-0/+10
2023-10-01net: implement lockless SO_PRIORITYEric Dumazet1-1/+1
2023-09-15xsk: add multi-buffer support for sockets sharing umemTirthendu Sarkar1-1/+1
2023-08-30xsk: Fix xsk_build_skb() error: 'skb' dereferencing possible ERR_PTR()Tirthendu Sarkar1-9/+13
2023-08-10Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+1
2023-08-09xsk: fix refcount underflow in error pathMagnus Karlsson1-0/+1
2023-08-03Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-0/+1
2023-08-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2023-08-03net: move struct netdev_rx_queue out of netdevice.hJakub Kicinski1-0/+1
2023-07-29net: annotate data-races around sk->sk_markEric Dumazet1-1/+1
2023-07-19xsk: support mbuf on ZC RXMaciej Fijalkowski1-1/+25
2023-07-19xsk: add support for AF_XDP multi-buffer on Tx pathTirthendu Sarkar1-28/+92
2023-07-19xsk: introduce wrappers and helpers for supporting multi-buffer in Tx pathTirthendu Sarkar1-20/+54
2023-07-19xsk: add support for AF_XDP multi-buffer on Rx pathTirthendu Sarkar1-23/+87
2023-07-19xsk: move xdp_buff's data length check to xsk_rcv_checkTirthendu Sarkar1-14/+13
2023-07-19xsk: prepare both copy and zero-copy modes to co-existMaciej Fijalkowski1-4/+13
2023-07-19xsk: introduce XSK_USE_SG bind flag for xsk socketTirthendu Sarkar1-2/+3
2023-07-19xsk: prepare 'options' in xdp_desc for multi-buffer useTirthendu Sarkar1-4/+4
2023-07-04xsk: Honor SO_BINDTODEVICE on bindIlya Maximets1-0/+5
2023-06-24sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES)David Howells1-1/+0
2023-03-25xsk: allow remap of fill and/or completion ringsNuno Gonçalves1-3/+6
2023-02-21xsk: add linux/vmalloc.h to xsk.cXuan Zhuo1-0/+1
2023-02-20Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-26/+33
2023-02-20xsk: support use vaddr as ringXuan Zhuo1-7/+2
2023-02-17xsk: check IFF_UP earlier in Tx pathMaciej Fijalkowski1-26/+33
2023-02-15net: no longer support SOCK_REFCNT_DEBUG featureJason Xing1-4/+0
2022-09-22xsk: Inherit need_wakeup flag for shared socketsJalal Mostafa1-2/+2
2022-08-31xsk: Fix backpressure mechanism on TxMaciej Fijalkowski1-11/+11
2022-07-14xsk: Mark napi_id on sendmsg()Maciej Fijalkowski1-1/+4
2022-06-14xsk: Fix generic transmit when completion queue reservation failsCiara Loftus1-7/+9
2022-06-08xsk: Fix handling of invalid descriptors in XSK TX batching APIMaciej Fijalkowski1-2/+3
2022-04-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+14
2022-04-26xsk: Fix possible crash when multiple sockets are createdMaciej Fijalkowski1-0/+13
2022-04-15xsk: Diversify return codes in xsk_rcv_check()Maciej Fijalkowski1-1/+1
2022-04-15xsk: Improve xdp_do_redirect() error codesBjörn Töpel1-1/+1
2022-04-07xsk: Fix l2fwd for copy mode + busy poll comboMaciej Fijalkowski1-1/+1
2022-03-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-19/+50
2022-02-28xsk: Fix race at socket teardownMagnus Karlsson1-19/+50
2022-01-27i40e: xsk: Move tmp desc array from driver to poolMagnus Karlsson1-7/+6
2022-01-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+2
2021-12-17Revert "xsk: Do not sleep in poll() when need_wakeup set"Magnus Karlsson1-2/+2
2021-12-16Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+2
2021-12-14xsk: Do not sleep in poll() when need_wakeup setMagnus Karlsson1-2/+2
2021-11-16net: drop nopreempt requirement on sock_prot_inuse_add()Eric Dumazet1-4/+0
2021-09-28xsk: Optimize for aligned caseMagnus Karlsson1-15/+0
2021-06-29net: sock: introduce sk_error_reportAlexander Aring1-1/+1
2021-06-24xdp: Add proper __rcu annotations to redirect map entriesToke Høiland-Jørgensen1-2/+2
2021-04-23xsk: Align XDP socket batch size with DPDKLi RongQing1-1/+1
2021-02-25xsk: Build skb by page (aka generic zerocopy xmit)Xuan Zhuo1-24/+96
2021-02-25xsk: Respect device's headroom and tailroom on generic xmit pathAlexander Lobakin1-1/+7
2021-01-25xsk: Remove explicit_free parameter from __xsk_rcv()Björn Töpel1-16/+31
2021-01-19xsk: Clear pool even for inactive queuesMaxim Mikityanskiy1-2/+2
2020-12-18xsk: Rollback reservation at NETDEV_TX_BUSYMagnus Karlsson1-0/+3
2020-12-18xsk: Fix race in SKB mode transmit with shared cqMagnus Karlsson1-3/+6
2020-12-17xsk: Fix memory leak for failed bindMagnus Karlsson1-0/+4
2020-12-14Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-2/+2
2020-12-11Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-4/+16
2020-12-08xsk: Validate socket state in xsk_recvmsg, prior touching socket membersBjörn Töpel1-2/+2
2020-12-04Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-4/+110
2020-12-03xsk: Change the tx writeable conditionXuan Zhuo1-3/+13
2020-12-03xsk: Replace datagram_poll by sock_poll_waitXuan Zhuo1-1/+3
2020-12-01xsk: Propagate napi_id to XDP socket Rx pathBjörn Töpel1-0/+1
2020-12-01xsk: Add busy-poll support for {recv,send}msg()Björn Töpel1-0/+24
2020-12-01xsk: Check need wakeup flag in sendmsg()Björn Töpel1-1/+5
2020-12-01xsk: Add support for recvmsg()Björn Töpel1-1/+21
2020-11-27xdp: Remove the functions xsk_map_inc and xsk_map_putZhu Yanjun1-2/+2
2020-11-24net, xsk: Avoid taking multiple skbuff referencesBjörn Töpel1-7/+1
2020-11-20xsk: Fix umem cleanup bug at socket destructMagnus Karlsson1-1/+1
2020-11-17xsk: Introduce batched Tx descriptor interfacesMagnus Karlsson1-0/+57
2020-10-29xsk: Fix possible memory leak at socket closeMagnus Karlsson1-1/+2
2020-10-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-1/+16
2020-09-28xsk: Fix possible crash in socket_release when out-of-memoryMagnus Karlsson1-0/+1
2020-09-16xsk: Do not discard packet when NETDEV_TX_BUSYMagnus Karlsson1-1/+16
2020-09-02xsk: Fix use-after-free in failed shared_umem bindMagnus Karlsson1-0/+1
2020-09-02xsk: Fix possible segfault at xskmap entry insertionMagnus Karlsson1-6/+0
2020-08-31xsk: Add shared umem support between devicesMagnus Karlsson1-7/+4
2020-08-31xsk: Add shared umem support between queue idsMagnus Karlsson1-14/+30
2020-08-31xsk: Move xsk_tx_list and its lock to buffer poolMagnus Karlsson1-9/+6
2020-08-31xsk: Move queue_id, dev and need_wakeup to buffer poolMagnus Karlsson1-21/+13
2020-08-31xsk: Move fill and completion rings to buffer poolMagnus Karlsson1-21/+27
2020-08-31xsk: Create and free buffer pool independently from umemMagnus Karlsson1-10/+64
2020-08-31xsk: i40e: ice: ixgbe: mlx5: Rename xsk zero-copy driver interfacesMagnus Karlsson1-18/+27
2020-07-28xdp: Prevent kernel-infoleak in xsk_getsockopt()Peilin Ye1-1/+1
2020-07-24net: pass a sockptr_t into ->setsockoptChristoph Hellwig1-4/+4
2020-07-13xsk: Add new statisticsCiara Loftus1-5/+31
2020-06-11xdp: Fix xsk_generic_xmit errnoLi RongQing1-3/+1
2020-05-21xsk: Explicitly inline functions and move definitionsBjörn Töpel1-0/+15
2020-05-21xsk: Remove MEM_TYPE_ZERO_COPY and corresponding codeBjörn Töpel1-47/+1
2020-05-21xsk: Introduce AF_XDP buffer allocation APIBjörn Töpel1-93/+54
2020-05-21xsk: Move driver interface to xdp_sock_drv.hMagnus Karlsson1-1/+1
2020-05-04xsk: Change two variable names for increased clarityMagnus Karlsson1-4/+4
2020-04-26xsk: Fix typo in xsk_umem_consume_tx and xsk_generic_xmit commentsTobias Klauser1-2/+2
2020-04-06xsk: Fix out of boundary write in __xsk_rcv_memcpyLi RongQing1-2/+3
2020-02-11xsk: Publish global consumer pointers when NAPI is finishedMagnus Karlsson1-0/+2
2020-01-22xsk, net: Make sock_def_readable() have external linkageBjörn Töpel1-1/+1
2019-12-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-34/+45
2019-12-20xsk: Add function naming comments and reorder functionsMagnus Karlsson1-0/+10
2019-12-20xsk: ixgbe: i40e: ice: mlx5: Xsk_umem_discard_addr to xsk_umem_release_addrMagnus Karlsson1-2/+2
2019-12-20xsk: Change names of validation functionsMagnus Karlsson1-2/+2
2019-12-20xsk: Simplify the consumer ring access functionsMagnus Karlsson1-12/+12
2019-12-20xsk: Standardize naming of producer ring access functionsMagnus Karlsson1-10/+10
2019-12-19xsk: Make xskmap flush_list common for all map instancesBjörn Töpel1-8/+9
2019-12-19xsk: Add rcu_read_lock around the XSK wakeupMaxim Mikityanskiy1-8/+14
2019-11-24xsk: Fix xsk_poll()'s return typeLuc Van Oostenryck1-4/+4
2019-11-02xsk: Restructure/inline XSKMAP lookup/redirect/flushBjörn Töpel1-2/+31
2019-10-03xsk: Fix crash in poll when device does not support ndo_xsk_wakeupMagnus Karlsson1-15/+27
2019-09-24mm: introduce page_size()Matthew Wilcox (Oracle)1-1/+1
2019-09-05xsk: use state member for socket synchronizationBjörn Töpel1-15/+39
2019-09-05xsk: avoid store-tearing when assigning umemBjörn Töpel1-2/+2
2019-09-05xsk: avoid store-tearing when assigning queuesBjörn Töpel1-1/+1
2019-08-31xsk: add support to allow unaligned chunk placementKevin Laatz1-18/+76
2019-08-17xsk: remove AF_XDP socket from map when the socket is releasedBjörn Töpel1-0/+50
2019-08-17xsk: add support for need_wakeup flag in AF_XDP ringsMagnus Karlsson1-19/+127
2019-08-17xsk: replace ndo_xsk_async_xmit with ndo_xsk_wakeupMagnus Karlsson1-1/+2
2019-07-12xdp: fix potential deadlock on socket mutexIlya Maximets1-0/+2
2019-07-12xdp: fix possible cq entry leakIlya Maximets1-7/+4
2019-07-08Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-11/+76
2019-07-09xdp: fix race on generic receive pathIlya Maximets1-9/+22
2019-07-03xdp: fix hang while unregistering device bound to xdp socketIlya Maximets1-11/+76
2019-06-27xsk: Return the whole xdp_desc from xsk_umem_consume_txMaxim Mikityanskiy1-7/+3
2019-06-27xsk: Add getsockopt XDP_OPTIONSMaxim Mikityanskiy1-0/+20
2019-06-27xsk: Add API to check for available entries in FQMaxim Mikityanskiy1-0/+6
2019-03-08xsk: fix to reject invalid flags in xsk_bindBjörn Töpel1-1/+4
2019-02-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+15
2019-02-21Revert "xsk: simplify AF_XDP socket teardown"Björn Töpel1-1/+15
2019-02-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+4
2019-02-10xsk: add missing smp_rmb() in xsk_mmapMagnus Karlsson1-0/+4
2019-01-25xsk: add sock_diag interface for AF_XDPBjörn Töpel1-5/+1
2019-01-25net: xsk: track AF_XDP sockets on a per-netns listBjörn Töpel1-0/+30
2018-12-19xsk: simplify AF_XDP socket teardownBjörn Töpel1-15/+1
2018-10-19Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+2
2018-10-11xsk: do not call synchronize_net() under RCU read lockBjörn Töpel1-0/+2
2018-10-08xsk: proper AF_XDP socket teardown orderingBjörn Töpel1-5/+8
2018-10-05xsk: fix bug when trying to use both copy and zero-copy on one queue idMagnus Karlsson1-7/+0
2018-09-01xsk: i40e: get rid of useless struct xdp_umem_propsMagnus Karlsson1-4/+6
2018-08-30xsk: include XDP meta data in AF_XDP framesBjörn Töpel1-6/+18
2018-07-31net: xsk: don't return frames via the allocator on errorJakub Kicinski1-3/+1
2018-07-13xsk: do not return EMSGSIZE in copy mode for packets larger than MTUMagnus Karlsson1-6/+1
2018-07-13xsk: always return ENOBUFS from sendmsg if there is no TX queueMagnus Karlsson1-3/+2
2018-07-13xsk: do not return EAGAIN from sendmsg when completion queue is fullMagnus Karlsson1-3/+1
2018-07-13xsk: do not return ENXIO from TX copy modeMagnus Karlsson1-3/+1
2018-07-02xsk: fix potential race in SKB TX completion codeMagnus Karlsson1-0/+4
2018-07-02xsk: frame could be completed more than once in SKB pathMagnus Karlsson1-3/+3
2018-06-28Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLLLinus Torvalds1-3/+4
2018-06-12xsk: re-add queue id check for XDP_SKB pathBjörn Töpel1-0/+3
2018-06-08xsk: Fix umem fill/completion queue mmap on 32-bitGeert Uytterhoeven1-1/+1
2018-06-06Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-0/+788
2018-06-05xsk: wire upp Tx zero-copy functionsMagnus Karlsson1-7/+63
2018-06-05xsk: add zero-copy support for RxBjörn Töpel1-20/+76
2018-06-04xsk: new descriptor addressing schemeBjörn Töpel1-13/+17
2018-06-04xsk: proper Rx drop statistics updateBjörn Töpel1-5/+5
2018-06-04xsk: proper fill queue descriptor validationBjörn Töpel1-6/+5
2018-05-22xsk: simplified umem setupBjörn Töpel1-12/+12
2018-05-22xsk: add missing write- and data-dependency barrierBjörn Töpel1-5/+9
2018-05-22xsk: remove explicit ring structure from uapiBjörn Töpel1-0/+29
2018-05-22xsk: proper queue id check at bindMagnus Karlsson1-1/+7
2018-05-22xsk: remove rebind supportBjörn Töpel1-21/+9
2018-05-18xsk: proper '=' alignmentBjörn Töpel1-18/+18
2018-05-18xsk: clean up SPDX headersBjörn Töpel1-9/+0
2018-05-03xsk: statistics supportMagnus Karlsson1-1/+44
2018-05-03xsk: support for TxMagnus Karlsson1-3/+108
2018-05-03xsk: add Tx queue setup and mmap supportMagnus Karlsson1-2/+6
2018-05-03xsk: add umem completion queue support and mmapMagnus Karlsson1-1/+6
2018-05-03bpf: introduce new bpf AF_XDP map type BPF_MAP_TYPE_XSKMAPBjörn Töpel1-0/+5
2018-05-03xsk: add Rx receive functions and poll supportBjörn Töpel1-1/+72
2018-05-03xsk: add support for bind for RxMagnus Karlsson1-1/+123
2018-05-03xsk: add Rx queue setup and mmap supportBjörn Töpel1-9/+32
2018-05-03xsk: add umem fill queue support and mmapMagnus Karlsson1-1/+64
2018-05-03xsk: add user memory registration support sockoptBjörn Töpel1-0/+215