From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7169A15A4 for ; Thu, 16 May 2024 02:38:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715827134; cv=none; b=cMQZ/pFxRimbIPpQofxnAWm9Ls96scx0XY1umi3sux0OlwquzTwPQ+424KTuDwOaVSbdynz8g3R+6iahILTWlRJO1tHOFRmyNyM/R5ILkIxJYXdIL5EvktqrH5aQEt1cw71y4oL1x3dUTzsbcfRr0hh8fCnfIRzsrGAc+3PWAXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715827134; c=relaxed/simple; bh=O0qatsONYd9VR8mWX4/rx8ERRwhr1IC13TezxLYKNao=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:Content-Type; b=ItKRGrP4IZdCOXdJhSxaAh8rhJphSSLBaSWeyqe1USa7fZEaaDlBixsoGNrhhLHQtc0bEqBVWt3F7lw04rQ/XoHtZPSeJbHBwRyKC0fxj1S/5n5xwsOdn9inkvOpxw4R9vIRKYppIDZ3mp6gFnGOop73ewvvj2jK9s0tOq6yNwg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=O2pAWbeM; arc=none smtp.client-ip=209.85.161.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="O2pAWbeM" Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-5b2dd35212fso593960eaf.3 for ; Wed, 15 May 2024 19:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1715827131; x=1716431931; darn=vger.kernel.org; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=K+SuRTZse4lz6//skPKIvTsSLuGULSSe5dVLzTLbORA=; b=O2pAWbeMfQSUtc58CzDWmgihRncctf/gzPaxVn/b9G0342b14E0QxL0/QIyE9DS4MK gZpGTrzye8zV1UNQPTW5GDpNizgXX4XMAug7Bt183dpfsbQMGUhzVRynNwQpi0Nv57oe kDmYkFO7jguDkvMXHFCvY5fZnjCAJVEyP8F9qrip3w/CkYt+2HgXqxyIYXiFX9uwYIma Exy5iNgFMdwX1KMrN+OgNU2b7EsFDNdPGXdMY9S3j9Kmn/A5hG9eVktrNO4x7OCcko8f QFmSUpfg3J19jkDdjvwZMyiI62K/eMxvjyx+s0hSs2UnavbW7J+2jzFfBhC/zjtZ7gZM jDHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715827131; x=1716431931; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=K+SuRTZse4lz6//skPKIvTsSLuGULSSe5dVLzTLbORA=; b=ejaGDSNsOHznKYHE2c0u4Xo5aRDf83CeeIIxRhPsrBnwTR5dUWS12ELWlUbVWPPU/x ggoeV5i5VSwPF9pqtIVY8sOb3/mDJhd/DQmIE9ZL9rpEdDsB9BNDwMShs2bn05P/XYWA Ctxw4SM1lwtyOd2Ibiv+c2WrPKRTc3zMDztao8Q3XOdF4ROB2J7fe/ogK99ZIJoJvgmn Vm7gJLhJjfW8tn0st3kMB5hoSs/om8I3xP95SduLKmrwSau4as7Wma/DW+eN7anzHnCv JTRW0IgabDQtsjw1BP/O/WXs/QuzJUL0g5cp8bO/v8R8gqMfUn46u77Vxm3vHzif/iVs HPvA== X-Gm-Message-State: AOJu0YyF4380tZf8boDMlYSiyPe1KRdEQWWpbNjZjYem7LTI74GgcXU5 ZjLYjY2B+W2vBv+mKM2qRzDenqFCxVgJP8Ec5yt6DlGJX4re0/Xi29rGVdNGyTCpBmYzzzi+5D8 J X-Google-Smtp-Source: AGHT+IH36yKo1Q1FVbTBqRDfsTnRQXt9/O+mR4szSehvGMKI5EeiK+2eGs8/x1VSf8tCZIAVoAlCDg== X-Received: by 2002:a4a:de14:0:b0:5aa:3e4f:f01e with SMTP id 006d021491bc7-5b28193cc74mr18702902eaf.1.1715827131390; Wed, 15 May 2024 19:38:51 -0700 (PDT) Received: from [192.168.1.150] ([198.8.77.194]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f4d2ade2besm12213380b3a.98.2024.05.15.19.38.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 May 2024 19:38:50 -0700 (PDT) Message-ID: <8c707a5f-2e33-4f5a-99a0-89a194625bcc@kernel.dk> Date: Wed, 15 May 2024 20:38:49 -0600 Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Jens Axboe Subject: [GIT PULL] Enable IORING_CQE_F_SOCK_NONEMPTY for accept requests To: Linus Torvalds Cc: io-uring , Jakub Kicinski , netdev Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Linus, This one was deferred, as it both depended on the net branch and the io_uring changes for 6.10. Sending it now as both have landed. This adds support for IORING_CQE_F_SOCK_NONEMPTY for io_uring accept requests. This is very similar to previous work that enabled the same hint for doing receives on sockets. By far the majority of the work here is refactoring to enable the networking side to pass back whether or not the socket had more pending requests after accepting the current one, the last patch just wires it up for io_uring. Not only does this enable applications to know whether there are more connections to accept right now, it also enables smarter logic for io_uring multishot accept on whether to retry immediately or wait for a poll trigger. Please pull! The following changes since commit cddd2dc6390b90e62cec2768424d1d90f6d04161: Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue (2024-05-10 19:33:52 -0700) are available in the Git repository at: git://git.kernel.dk/linux.git tags/net-accept-more-20240515 for you to fetch changes up to ac287da2e0ea5be2523222981efec86f0ca977cd: io_uring/net: wire up IORING_CQE_F_SOCK_NONEMPTY for accept (2024-05-13 18:19:23 -0600) ---------------------------------------------------------------- net-accept-more-20240515 ---------------------------------------------------------------- Jens Axboe (6): Merge branch 'for-6.10/io_uring' into net-accept-more Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next into net-accept-more net: change proto and proto_ops accept type net: have do_accept() take a struct proto_accept_arg argument net: pass back whether socket was empty post accept io_uring/net: wire up IORING_CQE_F_SOCK_NONEMPTY for accept crypto/af_alg.c | 11 ++++++----- crypto/algif_hash.c | 10 +++++----- drivers/xen/pvcalls-back.c | 6 +++++- fs/ocfs2/cluster/tcp.c | 5 ++++- include/crypto/if_alg.h | 3 ++- include/linux/net.h | 4 +++- include/linux/socket.h | 3 ++- include/net/inet_common.h | 4 ++-- include/net/inet_connection_sock.h | 2 +- include/net/sock.h | 13 ++++++++++--- io_uring/net.c | 26 ++++++++++++++++++++------ net/atm/svc.c | 8 ++++---- net/ax25/af_ax25.c | 6 +++--- net/bluetooth/iso.c | 4 ++-- net/bluetooth/l2cap_sock.c | 4 ++-- net/bluetooth/rfcomm/sock.c | 6 +++--- net/bluetooth/sco.c | 4 ++-- net/core/sock.c | 4 ++-- net/ipv4/af_inet.c | 10 +++++----- net/ipv4/inet_connection_sock.c | 7 ++++--- net/iucv/af_iucv.c | 4 ++-- net/llc/af_llc.c | 7 +++---- net/mptcp/protocol.c | 11 +++++------ net/netrom/af_netrom.c | 6 +++--- net/nfc/llcp_sock.c | 4 ++-- net/phonet/pep.c | 12 ++++++------ net/phonet/socket.c | 7 +++---- net/rds/tcp_listen.c | 6 +++++- net/rose/af_rose.c | 6 +++--- net/sctp/socket.c | 8 ++++---- net/smc/af_smc.c | 6 +++--- net/socket.c | 15 ++++++++++----- net/tipc/socket.c | 13 +++++-------- net/unix/af_unix.c | 21 ++++++++++----------- net/vmw_vsock/af_vsock.c | 6 +++--- net/x25/af_x25.c | 4 ++-- 36 files changed, 156 insertions(+), 120 deletions(-) -- Jens Axboe