Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4587008pxt; Wed, 11 Aug 2021 09:15:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNzMEIqC7gzprAN+ireIJTDomh4jqA6x2Z6vQbGeM+oMlnHHhNnoG5a1vNGaSg/buvSfRH X-Received: by 2002:a02:c6d5:: with SMTP id r21mr32566740jan.71.1628698544253; Wed, 11 Aug 2021 09:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628698544; cv=none; d=google.com; s=arc-20160816; b=D4LqoKaE8A1Y/yT1BrhDgbKxxEqUEtCt0HRy1/gEGsaAp7yT2GYVapduIdZUSHI2Og Apxi8GDEckddzHQZv0RyAm04tMqDEs4bAwq/HaWVmOgCyEfFOymIb1gm2KQQtzknBd0w Nkos55zUG9nudIQrDAdiFTY4PJ1c6sppZ6grEr08pJHQwxclneTvstEKBPm/Xojl3ZO+ HXiKj8SIMaV8D2/aUq2257j/JdHyx4QvbMt1DT87llNsug9I8jJgJEyd7aiv1qS0UEIC 5YYGbIuVY/RXaG59U+uimhbFUbWWlQ2h4b9HkI26OYc1lTn6smmeIju5SitqBfIHSXWR 7j0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=xRSonHUB76cwySV9QVwkKSX6+w6/+JDvdoHOcSKZR4M=; b=DAiufq3eArgu0UnT9Upq/rpQS70WNv5ceOd1usgeAzkYeeuMq4AXV2TWrixi11A3wL NIOEwq1v1oyilyY+ZnartrwzZlQMsFT6R29CUoT0pMXj8+17b4gzYLfcQ01eyIyKROqZ IzayhxcLOUaILTzyVERMUO4v7zNZI0GhLjf8Rr6M5jruJQAR+fYlgNZJlukb3Ivj0mtF /y14KkI/F+b6aHMUk3wkn2JPoSna5BK0OGjy7XDZUTM7H5p2LK6e+QOggIbBTh/JShDb aJWCiY05CGoIaN/kTjUB3FM0CAZhhRbwT9UkCkgsLp3FfETID1S7MueEjbKM/j+GChoa S8vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F0cociQN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si12675207ile.129.2021.08.11.09.15.29; Wed, 11 Aug 2021 09:15:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F0cociQN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229733AbhHKQPC (ORCPT + 99 others); Wed, 11 Aug 2021 12:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbhHKQPC (ORCPT ); Wed, 11 Aug 2021 12:15:02 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BDEDC061765; Wed, 11 Aug 2021 09:14:38 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id b13so3858085wrs.3; Wed, 11 Aug 2021 09:14:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xRSonHUB76cwySV9QVwkKSX6+w6/+JDvdoHOcSKZR4M=; b=F0cociQNYrT7puu4c1/C+wfpMCP80ApBT/f0BZp+HQ4erk9nDnPgwmnMqFVstS9Z77 FLqQfEhgLlD2uI8hmdLKWSqyUwr7/Ll1y7dxRRha074BCWKapCEzkDWDYP6yo33m6Q69 KR52Sz+nfZi8ZPiQd/Ox8PTdKzpgHAQMNIiRxS4hbWuFUCpkQOSuEn4a4UnZk92dj62i 1ru3PzA5PGU7ZsW1XxBZRT7QtcLNDflKVX4whbSDxSWMm0/ay0n/in42KgA4fgS8ekNy EcMTRHzK2UuqSlwJKi0rMgjAi198tsds7lVOyuYRTDfVkRH+rolmv76PuYBQRdvuS4nx FW9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=xRSonHUB76cwySV9QVwkKSX6+w6/+JDvdoHOcSKZR4M=; b=Nb0QjhAabFXHVterZJUvcJr7FgVhlomeg3SWUAaVtNA72Ji8UnVfQXIT7PRBOgFWHv 2V5TwJJ/KZEPt5CdOZkPnJGkP4uKtiudNsrKGKtk38gY9Jz7y8oM1ERcdGF8TYsANs4G jv698ViuxTGCbwAOnW28qFZE7vY2uc6WAx+oYmQkAw/0sK0YLkojovPoLjPx0LTJGUtX 44UaJYzSCyzGMSGUDkKReO72fwlBgRZGO5g8Ex6RgliTrHFvzEeuvtiZwTWmnzCDiuXv bI7u/qpyr7L+OdHEAZCwtFgXsmll3JtjXZ4qfg0Bzvd0E+nICMvIOQ2TXvt0JaSn0W0D 4c2A== X-Gm-Message-State: AOAM530R/H7/+2c1DRtkZC4pWsq7efcd6t1Eytnav0nU/TMdxInmLbUC f2zBvOAl0vXqXeczM9SemMc= X-Received: by 2002:a5d:6451:: with SMTP id d17mr20741206wrw.154.1628698477050; Wed, 11 Aug 2021 09:14:37 -0700 (PDT) Received: from [10.0.0.18] ([37.165.41.250]) by smtp.gmail.com with ESMTPSA id l2sm14152724wme.28.2021.08.11.09.14.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Aug 2021 09:14:36 -0700 (PDT) Subject: Re: [PATCH v2 1/2] udp: UDP socket send queue repair To: Bui Quang Minh , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, yoshfuji@linux-ipv6.org, dsahern@kernel.org, willemb@google.com, pabeni@redhat.com, avagin@gmail.com, alexander@mihalicyn.com, lesedorucalin01@gmail.com References: <20210811154557.6935-1-minhquangbui99@gmail.com> From: Eric Dumazet Message-ID: <721a2e32-c930-ad6b-5055-631b502ed11b@gmail.com> Date: Wed, 11 Aug 2021 18:14:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210811154557.6935-1-minhquangbui99@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/11/21 5:45 PM, Bui Quang Minh wrote: > In this patch, I implement UDP_REPAIR sockoption and a new path in > udp_recvmsg for dumping the corked packet in UDP socket's send queue. > > A userspace program can use recvmsg syscall to get the packet's data and > the msg_name information of the packet. Currently, other related > information in inet_cork that are set in cmsg are not dumped. > > While working on this, I was aware of Lese Doru Calin's patch and got some > ideas from it. What is the use case for this feature, adding a test in UDP fast path ? CORKed UDP is hardly used nowadays. IMO, TCP_REPAIR hijacking standard system calls was a design error, we should have added new system calls.