aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
AgeCommit message (Expand)AuthorFilesLines
2025-09-29Revert "net: group sk_backlog and sk_receive_queue"Eric Dumazet1-1/+1
2025-09-23tcp: Update bind bucket state on port releaseJakub Sitnicki1-0/+4
2025-09-22net: move sk->sk_err_soft and sk->sk_sndbufEric Dumazet1-2/+2
2025-09-22net: move sk_uid and sk_protocol to sock_read_txEric Dumazet1-3/+3
2025-09-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+3
2025-09-18net: clear sk->sk_ino in sk_set_socket(sk, NULL)Eric Dumazet1-2/+3
2025-09-18Merge branch 'add-basic-psp-encryption-for-tcp-connections'Paolo Abeni1-22/+4
2025-09-18net: move sk_validate_xmit_skb() to net/core/dev.cDaniel Zahka1-22/+0
2025-09-18net: modify core data structures for PSP datapath supportJakub Kicinski1-0/+4
2025-09-18udp: add udp_drops_inc() helperEric Dumazet1-1/+1
2025-09-18net: group sk_backlog and sk_receive_queueEric Dumazet1-1/+1
2025-09-14net: use NUMA drop counters for softnet_data.droppedEric Dumazet1-25/+12
2025-09-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-4/+13
2025-09-03net: lockless sock_i_ino()Eric Dumazet1-4/+13
2025-09-01tcp: Remove sk->sk_prot->orphan_count.Kuniyuki Iwashima1-2/+0
2025-08-28net: add sk->sk_drop_countersEric Dumazet1-1/+31
2025-08-28net: add sk_drops_skbadd() helperEric Dumazet1-3/+8
2025-08-28net: add sk_drops_read(), sk_drops_inc() and sk_drops_reset() helpersEric Dumazet1-1/+16
2025-08-20net: set net.core.rmem_max and net.core.wmem_max to 4 MBEric Dumazet1-2/+2
2025-08-19net: Define sk_memcg under CONFIG_MEMCG.Kuniyuki Iwashima1-0/+2
2025-08-19net-memcg: Pass struct sock to mem_cgroup_sk_under_memory_pressure().Kuniyuki Iwashima1-0/+22
2025-08-19net-memcg: Introduce mem_cgroup_sk_enabled().Kuniyuki Iwashima1-0/+10
2025-08-19net-memcg: Introduce mem_cgroup_from_sk().Kuniyuki Iwashima1-0/+12
2025-07-14tcp: add const to tcp_try_rmem_schedule() and sk_rmem_schedule() skbEric Dumazet1-1/+1
2025-06-23net: make sk->sk_rcvtimeo locklessEric Dumazet1-1/+1
2025-06-23net: make sk->sk_sndtimeo locklessEric Dumazet1-1/+1
2025-06-23net: remove sock_i_uid()Eric Dumazet1-2/+0
2025-06-23net: annotate races around sk->sk_uidEric Dumazet1-2/+10
2025-06-17Merge branch 'io_uring-cmd-for-tx-timestamps'Jakub Kicinski1-0/+4
2025-06-17net: timestamp: add helper returning skb's tx tstampPavel Begunkov1-0/+4
2025-06-12Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+5
2025-06-10net: Fix TOCTOU issue in sk_is_readable()Michal Luczaj1-2/+5
2025-06-10net: remove unused sock_enable_timestampsWillem de Bruijn1-1/+0
2025-05-23af_unix: Introduce SO_PASSRIGHTS.Kuniyuki Iwashima1-1/+3
2025-05-23af_unix: Move SOCK_PASS{CRED,PIDFD,SEC} to struct sock.Kuniyuki Iwashima1-1/+15
2025-05-23net: Restrict SO_PASS{CRED,PIDFD,SEC} to AF_{UNIX,NETLINK,BLUETOOTH}.Kuniyuki Iwashima1-1/+13
2025-05-22Merge tag 'wireless-next-2025-05-22' of https://git.kernel.org/pub/scm/linux/...Jakub Kicinski1-0/+6
2025-05-21wifi: check if socket flags are validBert Karwatzki1-0/+6
2025-05-13net: devmem: Implement TX pathMina Almasry1-0/+1
2025-05-06Merge tag 'wireless-next-2025-05-06' of https://git.kernel.org/pub/scm/linux/...Jakub Kicinski1-2/+0
2025-04-23wifi: free SKBTX_WIFI_STATUS skb tx_flags flagJohannes Berg1-2/+0
2025-04-17net: Delete the outer () duplicated of macro SOCK_SKB_CB_OFFSET definitionZijun Hu1-2/+2
2025-04-11net: Unexport shared functions for DCCP.Kuniyuki Iwashima1-1/+0
2025-04-09net: Fix null-ptr-deref by sock_lock_init_class_and_name() and rmmod.Kuniyuki Iwashima1-2/+38
2025-03-03sock: add sock_kmemdup helperGeliang Tang1-0/+2
2025-02-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+1
2025-02-21net: better track kernel sockets lifetimeEric Dumazet1-0/+1
2025-02-21Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-0/+10
2025-02-20bpf: Prepare the sock_ops ctx and call bpf prog for TX timestampingJason Xing1-0/+7
2025-02-20bpf: Add networking timestamping support to bpf_get/setsockopt()Jason Xing1-0/+3
2025-02-19net: dismiss sk_forward_alloc_get()Paolo Abeni1-13/+0
2025-02-18net: initialize mark in sockcm_initWillem de Bruijn1-0/+1
2025-02-12net: avoid unconditionally touching sk_tsflags on RXPaolo Abeni1-4/+5
2025-01-16Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-10/+7
2025-01-10Merge branch 'vfs-6.14.poll' into vfs.fixesChristian Brauner1-10/+7
2025-01-10sock_poll_wait: kill the no longer necessary barrier after poll_wait()Oleg Nesterov1-10/+7
2025-01-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+8
2024-12-20tcp_bpf: Charge receive socket buffer in bpf_tcp_ingress()Cong Wang1-2/+8
2024-12-16sock: Introduce SO_RCVPRIORITY socket optionAnna Emese Nyiri1-1/+3
2024-12-16sock: support SO_PRIORITY cmsgAnna Emese Nyiri1-1/+3
2024-10-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netPaolo Abeni1-0/+5
2024-10-18Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpfLinus Torvalds1-0/+5
2024-10-17bpf, sockmap: SK_DROP on attempted redirects of unsupported af_vsockMichal Luczaj1-0/+5
2024-10-14net: add skb_set_owner_edemux() helperEric Dumazet1-0/+9
2024-10-14net_sched: sch_fq: prepare for TIME_WAIT socketsEric Dumazet1-0/+10
2024-10-10Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+2
2024-10-08net-timestamp: namespacify the sysctl_tstamp_allow_dataJason Xing1-2/+0
2024-10-04net: Fix an unsafe loop on the listAnastasia Kovaleva1-0/+2
2024-10-04net_tstamp: add SCM_TS_OPT_ID for RAW socketsVadim Fedorenko1-9/+18
2024-10-04net_tstamp: add SCM_TS_OPT_ID to provide OPT_ID in control messageVadim Fedorenko1-0/+7
2024-09-11tcp: RX path for devmem TCPMina Almasry1-0/+2
2024-08-26net: Correct spelling in headersSimon Horman1-2/+2
2024-06-24net/ipv4: Use nested-BH locking for ipv4_tcp_sk.Sebastian Andrzej Siewior1-0/+5
2024-06-06net: use unrcu_pointer() helperEric Dumazet1-1/+1
2024-05-29net: fix __dst_negative_advice() raceEric Dumazet1-10/+3
2024-05-13net: pass back whether socket was empty post acceptJens Axboe1-0/+1
2024-05-13net: change proto and proto_ops accept typeJens Axboe1-3/+9
2024-04-30net: add <net/proto_memory.h>Eric Dumazet1-78/+0
2024-04-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-18/+20
2024-04-23net: fix sk_memory_allocated_{add|sub} vs softirqsEric Dumazet1-18/+20
2024-04-06net: skbuff: generalize the skb->decrypted bitJakub Kicinski1-3/+1
2024-03-29net: add sk_wake_async_rcu() helperEric Dumazet1-0/+6
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