From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by teainside.org (Postfix) with ESMTPS id 5E8167EC75 for ; Sat, 29 Jan 2022 18:32:29 +0000 (UTC) Received: by mail-pj1-f45.google.com with SMTP id g15-20020a17090a67cf00b001b7d5b6bedaso372803pjm.4 for ; Sat, 29 Jan 2022 10:32:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+Q0KskOzHfXu0Med3x+V7QCm7Q4Z553C4/0me3aW7mM=; b=PyeWIc5TRRxFI1vhQKBrAv1n/IUAoAJEtx5ABNsc+IeQRLe8LvNOiJE7iDG5TpHlDz e2pnqUzk0YbcF0a7w+Hq22g/UOvFG7aACf/uJFnR6RFPKUrL5avOC8poOem4ymzWK/++ V5Fga3PRvyEespje2r0u83wrey9lCRe6q27MrbLz4Mtf3WL71LJMi0WEBuueAKgy/Nr2 Ecr1nxz77Do+XqBK/jKKDJdb65UEnQr4VFwwcp+T5u+dSpUNuAXETH7aIqzNLA+e+LF1 TXMHNAx7LuPOICGjbMgJ+4nQ1owAGE+x6w588UJsbzEq7OYOnbhtVILQn5zio/kovZeo p0Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+Q0KskOzHfXu0Med3x+V7QCm7Q4Z553C4/0me3aW7mM=; b=tldbPCTz+CwOTP1yH7AfR1D9gzPpUm11yphWlcKrxVyaGV+pNt0Tdum8tCehVqDWRM nowycBL7tTUaef07waQ3G4IPWa03xcN7UK5wzH+Yha9s1nAyJU68H6uTWwu8PGRSTjrH HNKXPQ9leLfCuGwrEeTj8SU2q6WAnsaygl7yHGJKrPwvMF5w78+CWf4eltlmJZJlkN9y 6KCmd3fEB/VyPeseInnHeNyxV0QWCiwpsnkucZ3QL3j1w77fEvTnjwf45xEqzHgVifgm fmoTMUDUPkOUKwLUjEGfwhlWpHG7CJqpCJNjDW0D9v4kePRB8rQq1C23yk8V31B942zZ 1I5w== X-Gm-Message-State: AOAM533kBB8z/67OjaEXxXeozIGUTeeDg8m4hChUVIRfcp2PdujClrZw srAdWI3I7Mt7Z8I5ae63n+LgJw== X-Google-Smtp-Source: ABdhPJxg+z6WXi1V50x2y7mGuytMCIsoNwXmTfAyHAMt33DbYNDyy93MOV4HPSGOJ0sT04FXCi01bg== X-Received: by 2002:a17:90b:3148:: with SMTP id ip8mr16282950pjb.106.1643481148667; Sat, 29 Jan 2022 10:32:28 -0800 (PST) Received: from [192.168.1.116] ([66.219.217.159]) by smtp.gmail.com with ESMTPSA id x18sm12922996pfc.123.2022.01.29.10.32.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 Jan 2022 10:32:28 -0800 (PST) Subject: Re: [PATCH for-5.18 v1 0/3] Add `sendto(2)` and `recvfrom(2)` support To: Ammar Faizi Cc: io-uring Mailing List , netdev Mailing List , GNU/Weeb Mailing List , Tea Inside Mailing List , Linux Kernel Mailing List , Pavel Begunkov , "David S. Miller" , Jakub Kicinski , Nugra , Praveen Kumar , Alviro Iskandar Setiawan References: <20220129125021.15223-1-ammarfaizi2@gnuweeb.org> From: Jens Axboe Message-ID: <98d4f268-5945-69a7-cec7-bccfcdedde1c@kernel.dk> Date: Sat, 29 Jan 2022 11:32:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20220129125021.15223-1-ammarfaizi2@gnuweeb.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: On 1/29/22 5:50 AM, Ammar Faizi wrote: > Hello, > > This patchset adds sendto(2) and recvfrom(2) support for io_uring. It > also addresses an issue in the liburing GitHub repository [1]. > > ## Motivations: > > 1) By using `sendto()` and `recvfrom()` we can make the submission > simpler compared to always using `sendmsg()` and `recvmsg()` from > the userspace. Especially for UDP socket. > > 2) There is a historical patch that tried to add the same > functionality, but did not end up being applied. [2] As far as I can tell, the only win from sendto/recvfrom is that we can handle async offload a bit cheaper compared to sendmsg/recvmsg. Is this enough to warrant adding them separately? I don't know, which is why this has been somewhat stalled for a while. Maybe you have done some testing and have numbers (or other reasons) to back up the submission? There's not a whole lot of justification in this patchset. -- Jens Axboe