Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp387652pxb; Mon, 16 Aug 2021 07:43:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwppBnuW6kPpMFtehwgpMMnS9uiSTLBqd5cajbDcX0IRgPVvBDctANH03x4YwpmhX1YwkuK X-Received: by 2002:a05:6e02:15c8:: with SMTP id q8mr12224778ilu.285.1629125039593; Mon, 16 Aug 2021 07:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629125039; cv=none; d=google.com; s=arc-20160816; b=vueKzHxS3HO35wcDKchx0Rwe1/FxkP5ZHYszLwEQTmq6k7C08fmZCPerh+0bIA06kB g/67RFhMf9+Rnozm8RINAG5tm7Wl0n/VK+SoxfCoNielLDPBuedPQrkOuf1tjQajvkfl 0pTcc8JI6hgs6JSRZ0ysH73i/J+h6kvGsFxZfOXQhaPnpnB2bk1v/hyh1PqsBg9Wy8gU pgBJwpgYOo2RfC5XpKehKl8H/SFaFbgeArPc8NwKeQgaT9LTsmuKzWcKV0JTkgiQ8bxa e+euiuEoJ+ccwgkJvKv/yYbQ8b0JO+R54K4oMH4kYfiArQzpPKQSXDt3IMatkb3nf4Zs JGNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qmlXMatWSYYRVrk+FklMkfhLPVeb/cB811pl9zDJ0Hw=; b=o2GZVg2shb1y3Dd0D0WJPYzogcenm4CiYpCnCcC9j+nmZm50DHJ0GYBab6+cGjY1FL dHOaAygdvLkGI2DeA5fPL94l2nGlYAP8UciKp8BOIz4uX87XtM7HcctJ0epKw7UAZMZ3 wKMrU5No9X1vD4V9Sm2bJej90PfkaCSkjAi58X8n4jLsty/iyB0g2GSeqi7v2d7hQYhe S0rYI9WRJy4kugroOYSd4UuiQjy23ZXBwMYJ9eAEMaNPSoudAeg/oD1QtK3wgFV4Ehv8 Wk+zjTep1GI+lPtXP5SAAL+U+9pyoKqjOfZB1LafmoN+9Nd6DNyp+D9txegHQurC3mke PvVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="viBpZPu/"; 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 ay1si13154267iob.49.2021.08.16.07.43.48; Mon, 16 Aug 2021 07:43:59 -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="viBpZPu/"; 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 S232279AbhHPOnR (ORCPT + 99 others); Mon, 16 Aug 2021 10:43:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230177AbhHPOjw (ORCPT ); Mon, 16 Aug 2021 10:39:52 -0400 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82B77C061764; Mon, 16 Aug 2021 07:39:20 -0700 (PDT) Received: by mail-qt1-x82c.google.com with SMTP id d5so4991947qtd.3; Mon, 16 Aug 2021 07:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qmlXMatWSYYRVrk+FklMkfhLPVeb/cB811pl9zDJ0Hw=; b=viBpZPu/7MsqC1I8Iw17SqiDARudLf+rBYxHhn2vnJBnKGkRs8einnxcmbj5PjVyz3 HD7L6S4cfRGNr/05vLUwz7bvPvdnbsI23AwFLlsTJW088/AdjOjplsJ6JcytAHaloe65 9dfriMgy1r+Xzp4L8S88fnw6AdrClMAsBFsie00AhsLKfrEPXrdDhLrjsc9rZmme+flS OFyGr4vqdi0IX3IoGip3GGzijG2L5v9i+HWygt2V/68b4RapCF0jXnertppJqNtsqSqo a2CqPfrehhZZb2i5nhWDwVGHNod8Ch/OExlXyBt6iisqDkXABlH+GmDHXurXyRocd1B0 +nlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qmlXMatWSYYRVrk+FklMkfhLPVeb/cB811pl9zDJ0Hw=; b=IfeP9llGWKtHBW8cOAOGP3/KxVQVMZOnjOqgwjdM4RlskfGc1eF0VLSBqfdZkxssoM p1i+5P+K0jdFS6O5aVGp2X6ncOaemc7gPxL/r89P2+oepDDaKq9zPb0Vk6/UyD8JhPkl ulM05ChmSSUFb2UqiUbGV5WOVyyRL+ki+Jj7tTqyHNyhqk3qeQXV0MlDxy9LwrKH/l6p Ofbg1vDWU6TCunAHkd0pBdw2AsbVF/d3fQljaIwxMtOUqzZwdRcDk4PxqSAF9OP9oAyB B4aafF2gGJVih/3V2CRRpdNzHeXghzY8Li85vFP0YJJsZyp/ETUWgXHeAxbuXXmlgNK3 of4g== X-Gm-Message-State: AOAM532zws2WmMR/n4FlQWiZFF5TCOZU2oA4BQgCvStuosvU9P3yT7SV K1MxE8c6nVEcy+2GNuCYfK4Y+rcnBkjKGe0+x2c= X-Received: by 2002:ac8:5702:: with SMTP id 2mr13921322qtw.65.1629124759754; Mon, 16 Aug 2021 07:39:19 -0700 (PDT) MIME-Version: 1.0 References: <20210811154557.6935-1-minhquangbui99@gmail.com> In-Reply-To: <20210811154557.6935-1-minhquangbui99@gmail.com> From: Willem de Bruijn Date: Mon, 16 Aug 2021 07:38:40 -0700 Message-ID: Subject: Re: [PATCH v2 1/2] udp: UDP socket send queue repair To: Bui Quang Minh Cc: LKML , Network Development , David Miller , Jakub Kicinski , Hideaki YOSHIFUJI , David Ahern , Willem de Bruijn , Paolo Abeni , Andrei Vagin , alexander@mihalicyn.com, Lese Doru Calin Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 11, 2021 at 8:48 AM 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. [ intended to include in my previous response ] What other related information? Fields like transmit_time and gso_size? This would be another reason to prefer dropping the packet over trying to restore it incompletely.