aboutsummaryrefslogtreecommitdiffstats
path: root/net/xdp/xsk.c
AgeCommit message (Expand)AuthorFilesLines
2026-06-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-4/+7
2026-06-03xsk: cache csum_start/csum_offset to fix TOCTOU in xsk_skb_metadata()Jason Xing1-4/+7
2026-05-22xdp: convert to getsockopt_iterBreno Leitao1-13/+11
2026-05-05xsk: fix u64 descriptor address truncation on 32-bit architecturesJason Xing1-32/+56
2026-05-05xsk: fix xsk_addrs slab leak on multi-buffer error pathJason Xing1-2/+2
2026-05-05xsk: avoid skb leak in XDP_TX_METADATA caseJason Xing1-1/+3
2026-05-05xsk: prevent CQ desync when freeing half-built skbs in xsk_build_skb()Jason Xing1-3/+2
2026-05-05xsk: fix use-after-free of xs->skb in xsk_build_skb() free_err pathJason Xing1-1/+1
2026-05-05xsk: handle NULL dereference of the skb without frags issueJason Xing1-3/+8
2026-05-05xsk: free the skb when hitting the upper bound MAX_SKB_FRAGSJason Xing1-1/+4
2026-04-14Merge tag 'net-next-7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-11/+79
2026-04-14Merge tag 'bpf-next-7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf...Linus Torvalds1-3/+15
2026-04-09net: remove the netif_get_rx_queue_lease_locked() helpersJakub Kicinski1-28/+49
2026-04-09Merge branch 'netkit-support-for-io_uring-zero-copy-and-af_xdp'Jakub Kicinski1-14/+61
2026-04-09xsk: Proxy pool management for leased queuesDaniel Borkmann1-12/+35
2026-04-09xsk: Extend xsk_rcv_check validationDaniel Borkmann1-3/+26
2026-04-06xsk: respect tailroom for ZC setupsMaciej Fijalkowski1-2/+2
2026-03-17xsk: use __xsk_rcv_zc_safe for ZC multi-buffer Rx processingMaciej Fijalkowski1-2/+2
2026-03-08Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf 7.0-rc3Alexei Starovoitov1-10/+16
2026-02-28xsk: Fix zero-copy AF_XDP fragment dropNikhil P. Rao1-9/+15
2026-02-28xsk: Fix fragment node deletion to prevent buffer leakNikhil P. Rao1-1/+1
2026-02-24xsk: avoid double checking against rx queue being fullMaciej Fijalkowski1-1/+13
2026-01-20Revert "Merge branch 'netkit-support-for-io_uring-zero-copy-and-af_xdp'"Jakub Kicinski1-62/+17
2026-01-20xsk: Proxy pool management for leased queuesDaniel Borkmann1-13/+35
2026-01-20xsk: Extend xsk_rcv_check validationDaniel Borkmann1-3/+26
2026-01-20net: Implement netdev_nl_queue_create_doitDaniel Borkmann1-1/+1
2026-01-15xsk: move cq_cached_prod_lock to avoid touching a cacheline in sending pathJason Xing1-4/+4
2026-01-15xsk: advance cq/fq check when shared umem is usedJason Xing1-0/+7
2025-11-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-55/+88
2025-11-25xsk: avoid data corruption on cq descriptor numberFernando Fernandez Mancera1-55/+88
2025-11-11xsk: add indirect call for xsk_destruct_skbJason Xing1-1/+2
2025-11-04net: Convert proto_ops bind() callbacks to use sockaddr_unsizedKees Cook1-1/+1
2025-11-04xsk: use a smaller new lock for shared pool caseJason Xing1-9/+6
2025-09-26xsk: wrap generic metadata handling onto separate functionMaciej Fijalkowski1-39/+53
2025-09-26xsk: remove @first_frag from xsk_build_skb()Maciej Fijalkowski1-5/+3
2025-09-26xsk: avoid overwriting skb fields for multi-buffer trafficMaciej Fijalkowski1-8/+9
2025-09-09xsk: Fix immature cq descriptor productionMaciej Fijalkowski1-14/+99
2025-07-10net: xsk: introduce XDP_MAX_TX_SKB_BUDGET setsockoptJason Xing1-2/+19
2025-07-08net: xsk: update tx queue consumer immediately after transmissionJason Xing1-7/+10
2025-05-21xsk: Bring back busy polling support in XDP_COPYSamiullah Khawaja1-1/+1
2025-04-24xsk: Fix race condition in AF_XDP generic RX pathe.kubanski1-3/+3
2025-04-02xsk: Fix __xsk_generic_xmit() error code when cq is fullWang Liang1-1/+4
2025-03-08net: move misc netdev_lock flavors to a separate headerJakub Kicinski1-0/+1
2025-03-06net: hold netdev instance lock during ndo_bpfStanislav Fomichev1-0/+3
2025-02-21Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-0/+3
2025-02-20xsk: Add launch time hardware offload support to XDP Tx metadataSong Yoong Siang1-0/+3
2025-02-17net: use napi_id_valid helperStefano Jordhani1-1/+1
2025-01-10xsk: Bring back busy polling supportStanislav Fomichev1-5/+9
2024-11-19Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netPaolo Abeni1-5/+6
2024-11-15xsk: Free skb when TX metadata options are invalidFelix Maurer1-5/+6
2024-10-14xsk: Use xsk_buff_pool directly for cq functionsMaciej Fijalkowski1-16/+16
2024-10-14xsk: Get rid of xdp_buff_xsk::orig_addrMaciej Fijalkowski1-1/+1
2024-10-14xsk: s/free_list_node/list_node/Maciej Fijalkowski1-2/+2
2024-10-14xsk: Get rid of xdp_buff_xsk::xskb_list_nodeMaciej Fijalkowski1-2/+2
2024-07-30xsk: Try to make xdp_umem_reg extension a bit more future-proofStanislav Fomichev1-11/+12
2024-07-02net: Move flush list retrieval to where it is used.Sebastian Andrzej Siewior1-2/+4
2024-07-02net: Optimize xdp_do_flush() with bpf_net_context infos.Sebastian Andrzej Siewior1-12/+1
2024-06-24net: Move per-CPU flush-lists to bpf_net_context on PREEMPT_RT.Sebastian Andrzej Siewior1-8/+4
2024-06-05Revert "xsk: Support redirect to any socket bound to the same umem"Magnus Karlsson1-4/+1
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-17/+125
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