From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA151C2D0F4 for ; Wed, 8 Apr 2020 21:27:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A6FE92075E for ; Wed, 8 Apr 2020 21:27:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729613AbgDHV1x convert rfc822-to-8bit (ORCPT ); Wed, 8 Apr 2020 17:27:53 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:52912 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728187AbgDHV1w (ORCPT ); Wed, 8 Apr 2020 17:27:52 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 12647127D24BE; Wed, 8 Apr 2020 14:27:52 -0700 (PDT) Date: Wed, 08 Apr 2020 14:27:49 -0700 (PDT) Message-Id: <20200408.142749.1712309028781080294.davem@davemloft.net> To: lesedorucalin01@gmail.com Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org Subject: Re: [PATCH] net: UDP repair mode for retrieving the send queue of corked UDP socket From: David Miller In-Reply-To: <20200408205954.GA15086@white> References: <20200408205954.GA15086@white> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-2 Content-Transfer-Encoding: 8BIT X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 08 Apr 2020 14:27:52 -0700 (PDT) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Leșe Doru Călin Date: Wed, 8 Apr 2020 23:59:54 +0300 > Hello everyone! > > In this year's edition of GSoC, there is a project idea for CRIU to add support > for checkpoint/restore of cork-ed UDP sockets. But to add it, the kernel API needs > to be extended. > This is what this patch does. It adds UDP "repair mode" for UDP sockets in a similar > approach to the TCP "repair mode", but only the send queue is necessary to be retrieved. > So the patch extends the recv and setsockopt syscalls. Using UDP_REPAIR option in > setsockopt, caller can set the socket in repair mode. If it is setted, the > recv/recvfrom/recvmsg will receive the write queue and the destination of the data. > As in the TCP mode, to change the repair mode requires the CAP_NET_ADMIN capability > and to receive data the caller is obliged to use the MSG_PEEK flag. > > Best regards, > Lese Doru > > Signed-off-by: Lese Doru Calin Why do I feel like I've seen this patch several times before?