aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
AgeCommit message (Expand)AuthorFilesLines
2024-04-23net: fix sk_memory_allocated_{add|sub} vs softirqsEric Dumazet1-18/+20
2024-03-25tcp: properly terminate timers for kernel socketsEric Dumazet1-0/+7
2024-03-07net: introduce include/net/rps.hEric Dumazet1-35/+0
2024-02-28net: make SK_MEMORY_PCPU_RESERV tunableAdam Li1-2/+3
2024-02-20net: reorganize "struct sock" fieldsEric Dumazet1-47/+61
2024-01-26Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-25/+0
2024-01-23tcp: Move skb_steal_sock() to request_sock.hKuniyuki Iwashima1-25/+0
2024-01-21udp: fix busy pollingEric Dumazet1-1/+17
2023-12-29net: sock: remove excess structure-member documentationJonathan Corbet1-2/+0
2023-12-26net: remove SOCK_DEBUG macroDenis Kirjanov1-13/+0
2023-12-22tcp: Remove dead code and fields for bhash2.Kuniyuki Iwashima1-4/+0
2023-12-22tcp: Link sk and twsk to tb2->owners using skc_bind_node.Kuniyuki Iwashima1-10/+0
2023-12-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netPaolo Abeni1-0/+5
2023-12-15net: Namespace-ify sysctl_optmem_maxEric Dumazet1-1/+0
2023-12-13bpf: syzkaller found null ptr deref in unix_bpf proto addJohn Fastabend1-0/+5
2023-11-01Merge tag 'for-6.7/io_uring-sockopt-2023-10-30' of git://git.kernel.dk/linuxLinus Torvalds1-2/+4
2023-10-19net/socket: Break down __sys_getsockoptBreno Leitao1-2/+2
2023-10-19Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-6/+4
2023-10-19net/socket: Break down __sys_setsockoptBreno Leitao1-0/+2
2023-10-13tcp: allow again tcp_disconnect() when threads are waitingPaolo Abeni1-6/+4
2023-10-01net: annotate data-races around sk->sk_dst_pending_confirmEric Dumazet1-3/+3
2023-10-01net: annotate data-races around sk->sk_tx_queue_mappingEric Dumazet1-4/+16
2023-10-01net: constify sk_dst_get() and __sk_dst_get() argumentEric Dumazet1-2/+2
2023-09-15ipv6: lockless IPV6_MULTICAST_LOOP implementationEric Dumazet1-1/+1
2023-09-12net: sock_release_ownership() cleanupEric Dumazet1-5/+4
2023-09-01net: annotate data-races around sk->sk_tsflagsEric Dumazet1-7/+10
2023-09-01net: annotate data-races around sk->sk_forward_allocEric Dumazet1-3/+9
2023-08-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+4
2023-08-18sock: annotate data-races around prot->memory_pressureEric Dumazet1-3/+4
2023-08-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+6
2023-08-17sock: Fix misuse of sk_under_memory_pressure()Abel Wu1-0/+6
2023-07-25bpf, net: Support SO_REUSEPORT sockets with bpf_sk_assignLorenz Bauer1-2/+5
2023-07-24ipv6: remove hard coded limitation on ipv6_pinfoEric Dumazet1-0/+1
2023-06-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+1
2023-06-27netlink: Add __sock_i_ino() for __netlink_diag_dump().Kuniyuki Iwashima1-0/+1
2023-06-24sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES)David Howells1-6/+0
2023-06-15net: ioctl: Use kernel memory on protocol ioctl callbacksBreno Leitao1-1/+4
2023-06-08splice, net: Add a splice_eof op to file-ops and socket-opsDavid Howells1-0/+1
2023-06-07rfs: annotate lockless accesses to sk->sk_rxhashEric Dumazet1-5/+13
2023-05-29tcp: deny tcp_disconnect() when threads are waitingEric Dumazet1-0/+4
2023-05-09net: Fix load-tearing on sk->sk_stamp in sock_recv_cmsgs().Kuniyuki Iwashima1-1/+1
2023-04-19net: skbuff: hide wifi_acked when CONFIG_WIRELESS not setJakub Kicinski1-1/+1
2023-03-28net: dst: Switch to rcuref_t reference countingThomas Gleixner1-1/+1
2023-02-17Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-0/+13
2023-02-15net: no longer support SOCK_REFCNT_DEBUG featureJason Xing1-28/+0
2023-02-10dccp/tcp: Avoid negative sk_forward_alloc by ipv6_pinfo.pktoptions.Kuniyuki Iwashima1-0/+13
2023-02-06net: add sock_init_data_uid()Pietro Borrello1-1/+6
2022-12-19net: simplify sk_page_fragBenjamin Coddington1-7/+2
2022-12-19net: Introduce sk_use_task_frag in struct sock.Guillaume Nault1-2/+9
2022-12-08net_tstamp: add SOF_TIMESTAMPING_OPT_ID_TCPWillem de Bruijn1-3/+3
2022-11-17Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2022-11-16l2tp: Serialize access to sk_user_data with sk_callback_lockJakub Sitnicki1-1/+1
2022-11-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+7
2022-10-28net: remove SOCK_SUPPORT_ZC from sockmapPavel Begunkov1-0/+7
2022-10-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2022-10-24net-memcg: avoid stalls when under memory pressureJakub Kicinski1-1/+1
2022-10-24net: remove useless parameter of __sock_cmsg_sendxu xin1-1/+1
2022-10-11treewide: use get_random_u32() when possibleJason A. Donenfeld1-1/+1
2022-09-26net: Remove unused inline function sk_nulls_node_init()Gaosheng Cui1-5/+0
2022-09-06Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextPaolo Abeni1-0/+9
2022-09-02bpf: Change bpf_getsockopt(SOL_SOCKET) to reuse sk_getsockopt()Martin KaFai Lau1-0/+2
2022-08-24net: Add a bhash2 table hashed by port and addressJoanne Koong1-0/+14
2022-08-18bpf: Change bpf_setsockopt(SOL_SOCKET) to reuse sk_setsockopt()Martin KaFai Lau1-0/+2
2022-08-18bpf: net: Consider has_current_bpf_ctx() when testing capable() in sk_setsock...Martin KaFai Lau1-0/+2
2022-08-18bpf: net: Avoid sk_setsockopt() taking sk lock when called from bpfMartin KaFai Lau1-0/+3
2022-08-17net: Fix suspicious RCU usage in bpf_sk_reuseport_detach()David Howells1-0/+25
2022-08-10net: fix refcount bug in sk_psock_get (2)Hawkins Jiawei1-20/+48
2022-07-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-4/+4
2022-07-25net: Fix data-races around sysctl_[rw]mem(_offset)?.Kuniyuki Iwashima1-4/+4
2022-07-14Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2022-07-08net: Fix data-races around sysctl_mem.Kuniyuki Iwashima1-1/+1
2022-07-01net: remove SK_RECLAIM_THRESHOLD and SK_RECLAIM_CHUNKPaolo Abeni1-5/+0
2022-06-24net: helper function skb_len_addRichard Gobert1-3/+1
2022-06-16Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-14/+0
2022-06-16Revert "net: Add a second bind table hashed by port and address"Joanne Koong1-14/+0
2022-06-13tcp: sk_forced_mem_schedule() optimizationEric Dumazet1-2/+1
2022-06-10net: keep sk->sk_forward_alloc as small as possibleEric Dumazet1-27/+2
2022-06-10net: fix sk_wmem_schedule() and sk_rmem_schedule() errorsEric Dumazet1-4/+8
2022-06-10net: implement per-cpu reserves for memory_allocatedEric Dumazet1-9/+29
2022-06-10net: add per_cpu_fw_alloc field to struct protoEric Dumazet1-0/+1
2022-06-10net: remove SK_MEM_QUANTUM and SK_MEM_QUANTUM_SHIFTEric Dumazet1-5/+3
2022-06-10Revert "net: set SK_MEM_QUANTUM to 4096"Eric Dumazet1-13/+3
2022-06-08net: constify some inline functions in sock.hPeter Lafreniere1-3/+3
2022-05-20net: Add a second bind table hashed by port and addressJoanne Koong1-0/+14
2022-05-16net: annotate races around sk->sk_bound_dev_ifEric Dumazet1-2/+3
2022-05-13inet: add READ_ONCE(sk->sk_bound_dev_if) in INET_MATCH()Eric Dumazet1-3/+0
2022-04-30net: inline sock_alloc_send_skbPavel Begunkov1-2/+8
2022-04-28net: SO_RCVMARK socket option for SO_MARK with recvmsg()Erin MacNeil1-8/+10
2022-04-26net: generalize skb freeing deferral to per-cpu listsEric Dumazet1-2/+0
2022-04-12net: remove noblock parameter from recvmsg() entitiesOliver Hartkopp1-2/+1
2022-04-11net: sock: introduce sock_queue_rcv_skb_reason()Menglong Dong1-1/+8
2022-02-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+2
2022-02-18net-timestamp: convert sk->sk_tskey to atomic_tEric Dumazet1-2/+2
2022-01-31txhash: Add socket option to control TX hash rethink behaviorAkhmat Karakotov1-9/+3
2022-01-31txhash: Make rethinking txhash behavior configurable via sysctlAkhmat Karakotov1-13/+21
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-1/+1
2021-12-29net: Don't include filter.h from net/sock.hJakub Kicinski1-1/+1
2021-12-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2021-12-20inet: fully convert sk->sk_rx_dst to RCU rulesEric Dumazet1-1/+1
2021-12-10sock: Use sock_owned_by_user_nocheck() instead of sk_lock.owned.Kuniyuki Iwashima1-11/+12
2021-12-10net: add netns refcount tracker to struct sockEric Dumazet1-0/+2
2021-12-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-7/+23
2021-12-01net: avoid uninit-value from tcp_conn_requestEric Dumazet1-2/+15
2021-11-29tcp: fix page frag corruption on page faultPaolo Abeni1-5/+8
2021-11-23neigh: introduce neigh_confirm() helper functionYajun Deng1-4/+1
2021-11-18tcp: add missing htmldocs for skb->ll_node and sk->defer_listEric Dumazet1-0/+1
2021-11-16net: drop nopreempt requirement on sock_prot_inuse_add()Eric Dumazet1-2/+2
2021-11-16net: merge net->core.prot_inuse and net->core.sock_inuseEric Dumazet1-1/+2
2021-11-16net: make sock_inuse_add() availableEric Dumazet1-0/+10
2021-11-16net: inline sock_prot_inuse_add()Eric Dumazet1-3/+11
2021-11-16net: move early demux fields close to sk_refcntEric Dumazet1-3/+5
2021-11-16tcp: defer skb freeing after socket lock is releasedEric Dumazet1-0/+3
2021-11-16tcp: add RETPOLINE mitigation to sk_backlog_rcvEric Dumazet1-1/+7
2021-11-16net: forward_alloc_get depends on CONFIG_MPTCPEric Dumazet1-4/+7
2021-11-16net: shrink struct sock by 8 bytesEric Dumazet1-1/+1
2021-11-16net: remove sk_route_nocapsEric Dumazet1-6/+5
2021-11-16net: remove sk_route_forced_capsEric Dumazet1-3/+0
2021-11-16net: use sk_is_tcp() in more placesEric Dumazet1-0/+5
2021-11-01tcp: rename sk_wmem_free_skbTalal Ahmad1-7/+0
2021-10-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+7
2021-10-28net: cleanup __sk_stream_memory_free()Eric Dumazet1-8/+2
2021-10-27net: introduce sk_forward_alloc_get()Paolo Abeni1-0/+11
2021-10-27tcp: define macros for a couple reclaim thresholdsPaolo Abeni1-2/+7
2021-10-26net: Rename ->stream_memory_read to ->sock_is_readableCong Wang1-1/+7
2021-10-26tcp: rename sk_stream_alloc_skbEric Dumazet1-3/+0
2021-10-25net: annotate accesses to sk->sk_rx_queue_mappingEric Dumazet1-3/+7
2021-10-25net: avoid dirtying sk->sk_rx_queue_mappingEric Dumazet1-4/+2
2021-10-25ipv6: move inet6_sk(sk)->rx_dst_cookie to sk->sk_rx_dst_cookieEric Dumazet1-0/+2
2021-10-25tcp: move inet->rx_dst_ifindex to sk->sk_rx_dst_ifindexEric Dumazet1-0/+3
2021-10-15tcp: switch orphan_count to bare per-cpu countersEric Dumazet1-1/+1
2021-10-08vsock: Enable y2038 safe timeval for timeoutRichard Palethorpe1-0/+4
2021-10-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+1
2021-10-01net: add kerneldoc comment for sk_peer_lockEric Dumazet1-0/+1
2021-09-30Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+32
2021-09-30af_unix: fix races in sk_peer_pid and sk_peer_cred accessesEric Dumazet1-0/+2
2021-09-30tcp: adjust sndbuf according to sk_reserved_memWei Wang1-0/+1
2021-09-30net: add new socket option SO_RESERVE_MEMWei Wang1-5/+39
2021-09-30net: introduce and use lock_sock_fast_nested()Paolo Abeni1-1/+30
2021-09-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+1
2021-09-23tcp: remove sk_{tr}x_skb_cacheEric Dumazet1-19/+0
2021-09-19net: core: Correct the sock::sk_lock.owned lockdep annotationsThomas Gleixner1-0/+1
2021-08-26sock: remove one redundant SKB_FRAG_PAGE_ORDER macroYunsheng Lin1-0/+1
2021-08-18net-memcg: pass in gfp_t mask to mem_cgroup_charge_skmem()Wei Wang1-0/+5
2021-08-04sock: allow reading and changing sk_userlocks with setsockoptPavel Tikhomirov1-2/+1
2021-07-29skbuff: allow 'slow_gro' for skb carring sock referencePaolo Abeni1-0/+9
2021-07-01net: sock: extend SO_TIMESTAMPING for PHC bindingYangbo Lu1-2/+6
2021-06-29net: sock: introduce sk_error_reportAlexander Aring1-0/+2
2021-06-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-4/+13
2021-06-10inet: annotate date races around sk->sk_txhashEric Dumazet1-3/+7
2021-06-10net: annotate data race in sock_error()Eric Dumazet1-1/+6
2021-06-04sock: expose so_timestamping options for mptcpFlorian Westphal1-0/+2
2021-06-04sock: expose so_timestamp options for mptcpFlorian Westphal1-0/+1
2021-05-12net: really orphan skbs tied to closing skPaolo Abeni1-1/+3
2021-04-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-1/+4
2021-04-12skmsg: Pass psock pointer to ->psock_update_sk_prot()Cong Wang1-1/+4
2021-04-09Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+14
2021-04-01sock: Introduce sk->sk_prot->psock_update_sk_prot()Cong Wang1-0/+3
2021-03-31Revert "net: correct sk_acceptq_is_full()"Eric Dumazet1-1/+5
2021-03-30net: let skb_orphan_partial wake-up waiters.Paolo Abeni1-0/+9
2021-03-12net: correct sk_acceptq_is_full()liuyacan1-1/+1
2021-02-16Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-0/+2
2021-02-11net/sock: Add kernel config SOCK_RX_QUEUE_MAPPINGTariq Toukan1-6/+6
2021-02-03tcp: use a smaller percpu_counter batch size for sk_allocWei Wang1-2/+6
2021-01-20bpf: Remove extra lock_sock for TCP_ZEROCOPY_RECEIVEStanislav Fomichev1-0/+2
2021-01-19tcp: fix TCP socket rehash stats mis-accountingYuchung Cheng1-5/+12
2020-12-15Merge tag 'net-next-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-4/+24
2020-12-04Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-0/+6
2020-11-30mptcp: open code mptcp variant for lock_sockPaolo Abeni1-0/+1
2020-12-01net: Add SO_BUSY_POLL_BUDGET socket optionBjörn Töpel1-0/+2
2020-12-01net: Introduce preferred busy-pollingBjörn Töpel1-0/+4
2020-11-20net: stream: fix TCP references when INET is not enabledRandy Dunlap1-0/+5
2020-11-20net: add annotation for sock_{lock,unlock}_fastPaolo Abeni1-3/+7
2020-11-14tcp: avoid indirect call to tcp_stream_memory_free()Eric Dumazet1-2/+6
2020-11-02net: Un-hide lockdep_sock_is_held() for !LOCKDEPJakub Kicinski1-2/+0
2020-09-24mptcp: add sk_stop_timer_sync helperGeliang Tang1-0/+2
2020-09-14tcp: remove SOCK_QUEUE_SHRUNKEric Dumazet1-2/+0
2020-09-01Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-2/+2
2020-08-31net: clean up codestyleMiaohe Lin1-1/+1
2020-08-25bpf: Renames in preparation for bpf_local_storageKP Singh1-2/+2
2020-08-06Merge tag 'dlm-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland...Linus Torvalds1-0/+1
2020-08-06net: sock: add sock_set_markAlexander Aring1-0/+1
2020-08-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-nextLinus Torvalds1-17/+13
2020-08-04Merge tag 'seccomp-v5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+4
2020-07-24net: pass a sockptr_t into ->setsockoptChristoph Hellwig1-2/+2
2020-07-24net: switch sock_set_timeout to sockptr_tChristoph Hellwig1-1/+2
2020-07-19net: make ->{get,set}sockopt in proto_ops optionalChristoph Hellwig1-2/+0
2020-07-19net/ipv6: remove compat_ipv6_{get,set}sockoptChristoph Hellwig1-8/+0
2020-07-19net: remove compat_sock_common_{get,set}sockoptChristoph Hellwig1-4/+0
2020-07-13net/compat: Add missing sock updates for SCM_RIGHTSKees Cook1-0/+4
2020-07-11Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-1/+2
2020-07-09bpf: net: Avoid incorrect bpf_sk_reuseport_detach callMartin KaFai Lau1-1/+2
2020-07-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-0/+9
2020-06-24sock: Move sock_valbool_flag to headerDmitry Yakunin1-0/+9
2020-06-23net: Do not clear the sock TX queue in sk_set_socket()Tariq Toukan1-1/+0
2020-06-01net: Make locking in sock_bindtoindex optionalFerenc Fejes1-1/+1
2020-05-29net: add a new bind_add methodChristoph Hellwig1-1/+5
2020-05-28net: add sock_set_reuseportChristoph Hellwig1-0/+1
2020-05-28net: add sock_set_rcvbufChristoph Hellwig1-0/+1
2020-05-28net: add sock_set_keepaliveChristoph Hellwig1-0/+1