aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-04net: Convert proto callbacks from sockaddr to sockaddr_unsizedKees Cook1-2/+4
2025-10-16udp: do not use skb_release_head_state() before skb_attempt_defer_free()Eric Dumazet1-2/+0
2025-09-23udp: remove busylock and add per NUMA queuesEric Dumazet1-46/+71
2025-09-19net: ipv4: make udp_v4_early_demux explicitly return drop reasonAntoine Tenart1-6/+6
2025-09-18udp: use skb_attempt_defer_free()Eric Dumazet1-0/+7
2025-09-18udp: make busylock per socketEric Dumazet1-18/+2
2025-09-18udp: add udp_drops_inc() helperEric Dumazet1-6/+6
2025-09-18udp: update sk_rmem_alloc before busylock acquisitionEric Dumazet1-2/+5
2025-09-18udp: refine __udp_enqueue_schedule_skb() testEric Dumazet1-2/+2
2025-09-09ipv4: udp: fix typos in commentsAlok Tiwari1-3/+3
2025-08-28net: add sk_drops_read(), sk_drops_inc() and sk_drops_reset() helpersEric Dumazet1-7/+7
2025-07-18net: track pfmemalloc drops via SKB_DROP_REASON_PFMEMALLOCJesper Dangaard Brouer1-4/+2
2025-07-02udp: move udp_memory_allocated into net_aligned_dataEric Dumazet1-3/+1
2025-06-23net: remove sock_i_uid()Eric Dumazet1-8/+8
2025-06-23net: annotate races around sk->sk_uidEric Dumazet1-1/+2
2025-05-16net: rfs: add sock_rps_delete_flow() helperEric Dumazet1-0/+2
2025-05-02bpf: udp: Avoid socket skips and repeats during iterationJordan Rife1-17/+44
2025-05-02bpf: udp: Use bpf_udp_iter_batch_item for bpf_udp_iter_state batch itemsJordan Rife1-8/+12
2025-05-02bpf: udp: Get rid of st_bucket_doneJordan Rife1-8/+8
2025-05-02bpf: udp: Make sure iter->batch always contains a full bucket snapshotJordan Rife1-26/+55
2025-05-02bpf: udp: Make mem flags configurable through bpf_iter_udp_realloc_batchJordan Rife1-5/+6
2025-04-14udp: properly deal with xfrm encap and ADDRFORMPaolo Abeni1-5/+26
2025-04-08net: Drop unused @sk of __skb_try_recv_from_queue()Michal Luczaj1-4/+4
2025-04-08udp_tunnel: create a fastpath GRO lookup.Paolo Abeni1-1/+12
2025-04-02udp: Fix memory accounting leak.Kuniyuki Iwashima1-9/+7
2025-04-02udp: Fix multiple wraparounds of sk->sk_rmem_alloc.Kuniyuki Iwashima1-9/+17
2025-03-25Revert "udp_tunnel: GRO optimizations"Jakub Kicinski1-12/+1
2025-03-18udp_tunnel: create a fastpath GRO lookup.Paolo Abeni1-1/+12
2025-03-08udp: expand SKB_DROP_REASON_UDP_CSUM useEric Dumazet1-3/+3
2025-02-18ipv4: remove get_rttosWillem de Bruijn1-3/+3
2025-02-14udp: use EXPORT_IPV6_MOD[_GPL]()Eric Dumazet1-32/+31
2025-02-03udp: gso: do not drop small packets when PMTU reducesYan Zhai1-2/+2
2025-01-16Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-19/+27
2025-01-14udp: Make rehash4 independent in udp_lib_rehash()Philo Lu1-19/+27
2024-12-23udp: Deal with race between UDP socket address change and rehashStefano Brivio1-0/+56
2024-12-03Revert "udp: avoid calling sock_def_readable() if possible"Fernando Fernandez Mancera1-11/+3
2024-11-18ipv6/udp: Add 4-tuple hash for connected socketPhilo Lu1-1/+1
2024-11-18ipv4/udp: Add 4-tuple hash for connected socketPhilo Lu1-3/+194
2024-11-18net/udp: Add 4-tuple hash list basisPhilo Lu1-2/+4
2024-11-18net/udp: Add a new struct for hash2 slotPhilo Lu1-21/+23
2024-10-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netPaolo Abeni1-1/+3
2024-10-15udp: Compute L4 checksum as usual when not segmenting the skbJakub Sitnicki1-1/+3
2024-10-09ipv4: Convert ip_mc_validate_source() to dscp_t.Guillaume Nault1-2/+2
2024-08-22ipv4: udp: Unmask upper DSCP bits during early demuxIdo Schimmel1-1/+2
2024-08-05udp: constify 'struct net' parameter of socket lookupsEric Dumazet1-4/+4
2024-07-11Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+3
2024-07-11udp: Set SOCK_RCU_FREE earlier in udp_lib_get_port().Kuniyuki Iwashima1-1/+3
2024-06-28udp: Allow GSO transmit from devices with no checksum offloadJakub Sitnicki1-2/+1
2024-06-19udp: use sk_skb_reason_drop to free rx packetsYan Zhai1-5/+5
2024-06-06net: use unrcu_pointer() helperEric Dumazet1-1/+1
2024-05-06Merge tag 'ipsec-next-2024-05-03' of git://git.kernel.org/pub/scm/linux/kerne...Jakub Kicinski1-2/+0
2024-05-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+2
2024-05-02net: gro: fix udp bad offset in socket lookup by adding {inner_}network_offse...Richard Gobert1-1/+2
2024-04-30inet: introduce dst_rtable() helperEric Dumazet1-1/+1
2024-04-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+3
2024-04-19udp: preserve the connected status if only UDP cmsgYick Xie1-2/+3
2024-04-18udpencap: Remove Obsolete UDP_ENCAP_ESPINUDP_NON_IKE SupportAntony Antony1-2/+0
2024-04-15udp: Avoid call to compute_score on multiple sitesGabriel Krisman Bertazi1-5/+16
2024-04-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+7
2024-03-29net: add sk_wake_async_rcu() helperEric Dumazet1-1/+1
2024-03-29udp: avoid calling sock_def_readable() if possibleEric Dumazet1-3/+11
2024-03-29udp: relax atomic operation on sk->sk_rmem_allocEric Dumazet1-6/+1
2024-03-29udp: annotate data-race in __udp_enqueue_schedule_skb()Eric Dumazet1-5/+6
2024-03-29net: udp: add IP/port data to the tracepoint udp/udp_fail_queue_rcv_skbBalazs Scheidler1-1/+1
2024-03-29udp: do not accept non-tunnel GSO skbs landing in a tunnelAntoine Tenart1-0/+7
2024-03-11udp: no longer touch sk->sk_refcnt in early demuxEric Dumazet1-2/+3
2024-03-11udp: fix incorrect parameter validation in the udp_lib_getsockopt() functionGavrilov Ilia1-2/+2
2024-03-07inet: move inet_ehash_secret and udp_ehash_secret into net_hotdataEric Dumazet1-2/+0
2024-02-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-5/+1
2024-02-21udp: add local "peek offset enabled" flagPaolo Abeni1-1/+1
2024-02-21net: implement lockless setsockopt(SO_PEEK_OFF)Eric Dumazet1-6/+1
2024-01-26ipmr: fix kernel panic when forwarding mcast packetsNicolas Dichtel1-1/+1
2024-01-13bpf: Avoid iter->offset making backward progress in bpf_iter_udpMartin KaFai Lau1-11/+10
2024-01-13bpf: iter_udp: Retry with a larger batch size without going back to the previ...Martin KaFai Lau1-1/+0
2024-01-13udp: annotate data-races around up->pendingEric Dumazet1-6/+6
2023-10-30Merge tag 'ipsec-next-2023-10-28' of git://git.kernel.org/pub/scm/linux/kerne...Jakub Kicinski1-0/+16
2023-10-16Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-3/+6
2023-10-11bpf: Propagate modified uaddrlen from cgroup sockaddr programsDaan De Meyer1-3/+6
2023-10-06xfrm: Support GRO for IPv6 ESP in UDP encapsulationSteffen Klassert1-0/+2
2023-10-06xfrm: Support GRO for IPv4 ESP in UDP encapsulationSteffen Klassert1-0/+14
2023-10-01inet: implement lockless getsockopt(IP_MULTICAST_IF)Eric Dumazet1-2/+2
2023-10-01inet: implement lockless getsockopt(IP_UNICAST_IF)Eric Dumazet1-5/+7
2023-10-01inet: implement lockless IP_MTU_DISCOVEREric Dumazet1-1/+1
2023-09-14udplite: fix various data-racesEric Dumazet1-10/+11
2023-09-14udp: annotate data-races around udp->encap_typeEric Dumazet1-4/+5
2023-09-14udp: lockless UDP_ENCAP_L2TPINUDP / UDP_GROEric Dumazet1-7/+3
2023-09-14udp: move udp->accept_udp_{l4|fraglist} to udp->udp_flagsEric Dumazet1-1/+1
2023-09-14udp: add missing WRITE_ONCE() around up->encap_rcvEric Dumazet1-2/+4
2023-09-14udp: move udp->gro_enabled to udp->udp_flagsEric Dumazet1-3/+3
2023-09-14udp: move udp->no_check6_rx to udp->udp_flagsEric Dumazet1-2/+2
2023-09-14udp: move udp->no_check6_tx to udp->udp_flagsEric Dumazet1-2/+2
2023-09-14udp: introduce udp->udp_flagsEric Dumazet1-6/+6
2023-09-01net: annotate data-races around sk->sk_forward_allocEric Dumazet1-3/+3
2023-08-16inet: move inet->recverr to inet->inet_flagsEric Dumazet1-2/+3
2023-08-16inet: introduce inet->inet_flagsEric Dumazet1-1/+1
2023-08-03Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-52/+36
2023-08-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+6
2023-07-29net: gro: fix misuse of CB in udp socket lookupRichard Gobert1-2/+6
2023-07-25bpf, net: Support SO_REUSEPORT sockets with bpf_sk_assignLorenz Bauer1-2/+6
2023-07-25net: remove duplicate sk_lookup helpersLorenz Bauer1-27/+5
2023-07-25net: remove duplicate reuseport_lookup functionsLorenz Bauer1-21/+13
2023-07-25udp: re-score reuseport groups when connected sockets are presentLorenz Bauer1-5/+15
2023-07-19udp: use indirect call wrapper for data ready()Paolo Abeni1-1/+1
2023-06-24sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES)David Howells1-15/+0
2023-06-15net: ioctl: Use kernel memory on protocol ioctl callbacksBreno Leitao1-7/+5
2023-06-10net: move gso declarations and functions to their own filesEric Dumazet1-0/+1
2023-06-08ipv4, ipv6: Use splice_eof() to flushDavid Howells1-0/+16
2023-05-26Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-50/+241
2023-05-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-5/+2
2023-05-24udp: Stop using RTO_ONLINK.Guillaume Nault1-11/+6
2023-05-23udp: Convert udp_sendpage() to use MSG_SPLICE_PAGESDavid Howells1-45/+6
2023-05-23bpf, sockmap: Pass skb ownership through read_skbJohn Fastabend1-5/+2
2023-05-19bpf: Add bpf_sock_destroy kfuncAditi Ghag1-3/+5
2023-05-19bpf: udp: Implement batching for sockets iteratorAditi Ghag1-6/+199
2023-05-19udp: seq_file: Remove bpf_seq_afinfo from udp_iter_stateAditi Ghag1-20/+7
2023-05-19bpf: udp: Encapsulate logic to get udp tableAditi Ghag1-23/+12
2023-05-19udp: seq_file: Helper function to match socket attributesAditi Ghag1-7/+27
2023-03-17udp: constify __udp_is_mcast_sock() socket argumentEric Dumazet1-2/+2
2023-03-09udp: introduce __sk_mem_schedule() usageJason Xing1-11/+16
2023-01-25inet: Add IP_LOCAL_PORT_RANGE socket optionJakub Sitnicki1-1/+1
2022-11-21net: Return errno in sk->sk_prot->get_port().Kuniyuki Iwashima1-1/+1
2022-11-16udp: Introduce optional per-netns hash table.Kuniyuki Iwashima1-6/+95
2022-11-16udp: Access &udp_table via net.Kuniyuki Iwashima1-10/+13
2022-11-16udp: Set NULL to udp_seq_afinfo.udp_table.Kuniyuki Iwashima1-8/+24
2022-11-16udp: Set NULL to sk->sk_prot->h.udp_table.Kuniyuki Iwashima1-4/+11
2022-11-16udp: Clean up some functions.Kuniyuki Iwashima1-16/+23
2022-11-08net: Change the udp encap_err_rcv to allow use of {ip,ipv6}_icmp_error()David Howells1-1/+2
2022-10-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+1
2022-10-24udp: track the forward memory release threshold in an hot cachelinePaolo Abeni1-3/+15
2022-10-23Merge tag 'io_uring-6.1-2022-10-22' of git://git.kernel.dk/linuxLinus Torvalds1-0/+1
2022-10-22net: flag sockets supporting msghdr originated zerocopyPavel Begunkov1-0/+1
2022-10-20Merge tag 'net-6.1-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/netd...Linus Torvalds1-1/+1
2022-10-18udp: Update reuse->has_conns under reuseport_lock.Kuniyuki Iwashima1-1/+1
2022-10-16Merge tag 'random-6.1-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-1/+1
2022-10-12tcp/udp: Call inet6_destroy_sock() in IPv6 sk->sk_destruct().Kuniyuki Iwashima1-3/+6
2022-10-11treewide: use get_random_u32() when possibleJason A. Donenfeld1-1/+1
2022-09-26udp: Refactor udp_read_skb()Peilin Ye1-29/+17
2022-09-22udp: Use WARN_ON_ONCE() in udp_read_skb()Peilin Ye1-1/+1
2022-09-01rxrpc: Fix ICMP/ICMP6 error handlingDavid Howells1-0/+2
2022-08-01udp: Remove redundant __udp_sysctl_init() call from udp_init().Kuniyuki Iwashima1-7/+1
2022-06-20skmsg: Get rid of skb_clone()Cong Wang1-0/+1
2022-06-20net: Introduce a new proto_ops ->read_skb()Cong Wang1-6/+4
2022-06-10net: add per_cpu_fw_alloc field to struct protoEric Dumazet1-0/+4
2022-06-10net: remove SK_MEM_QUANTUM and SK_MEM_QUANTUM_SHIFTEric Dumazet1-5/+5
2022-05-16inet: rename INET_MATCH()Eric Dumazet1-1/+1
2022-05-13inet: add READ_ONCE(sk->sk_bound_dev_if) in INET_MATCH()Eric Dumazet1-2/+1
2022-04-28net: SO_RCVMARK socket option for SO_MARK with recvmsg()Erin MacNeil1-1/+1
2022-04-12net: remove noblock parameter from recvmsg() entitiesOliver Hartkopp1-6/+5
2022-02-07net: udp: use kfree_skb_reason() in __udp_queue_rcv_skb()Menglong Dong1-3/+7
2022-02-07net: udp: use kfree_skb_reason() in udp_queue_rcv_one_skb()Menglong Dong1-3/+9
2022-01-22proc: remove PDE_DATA() completelyMuchun Song1-3/+3
2022-01-09net: skb: use kfree_skb_reason() in __udp4_lib_rcv()Menglong Dong1-2/+8
2022-01-06net: bpf: Handle return value of BPF_CGROUP_RUN_PROG_INET{4,6}_POST_BIND()Menglong Dong1-0/+1
2021-12-31Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-0/+1
2021-12-30Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2021-12-27net: udp: fix alignment problem in udp4_seq_show()yangxingwu1-1/+1
2021-12-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+3
2021-12-20inet: fully convert sk->sk_rx_dst to RCU rulesEric Dumazet1-3/+3
2021-12-16add missing bpf-cgroup.h includesJakub Kicinski1-0/+1
2021-12-09Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2021-12-09udp: using datalen to cap max gso segmentsJianguo Wu1-1/+1
2021-11-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+11
2021-11-16net: cache align tcp_memory_allocated, tcp_sockets_allocatedEric Dumazet1-1/+1
2021-11-16udp: Validate checksum in udp_read_sock()Cong Wang1-0/+11
2021-11-15Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-4/+4
2021-11-10bpf: Add ingress_ifindex to bpf_sk_lookupMark Pashmfouroush1-4/+4
2021-11-06include/linux/mm.h: move nr_free_buffer_pages from swap.h to mm.hMianhan Liu1-1/+0
2021-10-26net: Implement ->sock_is_readable() for UDP and AF_UNIXCong Wang1-0/+3
2021-10-07net: prefer socket bound to interface when not in VRFMike Manning1-1/+2
2021-09-28net: udp: annotate data race around udp_sk(sk)->corkflagEric Dumazet1-5/+5
2021-08-23bpf: Migrate cgroup_bpf to internal cgroup_bpf_attach_type enumDave Marchevsky1-1/+1
2021-07-21udp: check encap socket in __udp_lib_errVadim Fedorenko1-6/+19
2021-07-01udp: annotate data races around unix_sk(sk)->gso_sizeEric Dumazet1-3/+3
2021-06-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+2
2021-06-29net: sock: introduce sk_error_reportAlexander Aring1-2/+2
2021-06-21udp: Fix a memory leak in udp_read_sock()Cong Wang1-0/+2
2021-06-09udp: fix race between close() and udp_abort()Paolo Abeni1-0/+10
2021-04-09Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+4
2021-04-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-0/+32
2021-04-01net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...);Norman Maurer1-0/+4
2021-04-01udp: Implement ->read_sock() for sockmapCong Wang1-0/+29
2021-04-01sock: Introduce sk->sk_prot->psock_update_sk_prot()Cong Wang1-0/+3
2021-03-30udp: never accept GSO_FRAGLIST packetsPaolo Abeni1-0/+3
2021-03-30udp: fixup csum for GSO receive slow pathPaolo Abeni1-0/+2
2021-02-16Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-4/+3
2021-02-04udp: call udp_encap_enable for v6 sockets when enabling encapXin Long1-0/+6
2021-01-20bpf: Split cgroup_bpf_enabled per attach typeStanislav Fomichev1-4/+3
2021-01-19udp: mask TOS bits in udp_v4_early_demux()Guillaume Nault1-1/+2
2020-12-16Merge tag 'selinux-pr-20201214' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+1
2020-12-11Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2020-12-07udp: fix the proto value passed to ip_protocol_deliver_rcu for the segmentsXin Long1-1/+1
2020-11-23lsm,selinux: pass flowi_common instead of flowi to the LSM hooksPaul Moore1-1/+1
2020-11-14inet: unexport udp{4|6}_lib_lookup_skb()Eric Dumazet1-1/+0
2020-11-10inet: udp{4|6}_lib_lookup_skb() skb argument is constEric Dumazet1-1/+1
2020-11-09net: udp: remove redundant initialization in udp_send_skbMenglong Dong1-1/+1
2020-11-09net: udp: introduce UDP_MIB_MEMERRORS for udp_memMenglong Dong1-0/+3
2020-10-30udp: check udp sock encap_type in __udp_lib_errXin Long1-1/+1
2020-08-24net: ipv4: delete repeated wordsRandy Dunlap1-1/+1
2020-07-31udp, bpf: Ignore connections in reuseport group after BPF sk lookupJakub Sitnicki1-1/+1
2020-07-25bpf: Refactor to provide aux info to bpf_iter_init_seq_priv_tYonghong Song1-2/+2