From patchwork Sun Jun 12 08:57:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Damato X-Patchwork-Id: 12878665 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 708FFC43334 for ; Sun, 12 Jun 2022 09:01:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235556AbiFLJBG (ORCPT ); Sun, 12 Jun 2022 05:01:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235429AbiFLJA7 (ORCPT ); Sun, 12 Jun 2022 05:00:59 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7AB351E50 for ; Sun, 12 Jun 2022 02:00:52 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id m39-20020a05600c3b2700b0039c511ebbacso3092217wms.3 for ; Sun, 12 Jun 2022 02:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ELhqEDOqgmC+TbLCt4NyDbvbHR56jry/w5HtXxvrUIM=; b=PaZYXKu8oFHY0LGzLxFo66YYimisvTv48Bj8XCIKfLpjdtwA5eikvThJJwxRW5WgYG m6/1fv09uv8Q9xhYBCq4o2+KLW3MutYdmX/1ljpZoq+2GlpOkiLdQGZWqnuj8+qoVTvB T45fXPVb9A6z8tzB5O+p0Sm1B0o5nToqWufhY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ELhqEDOqgmC+TbLCt4NyDbvbHR56jry/w5HtXxvrUIM=; b=erE8bUyM5jxgHqvvOcZIP8K5l47i2LEf498i2ski3vqZUF+v87ZuCWbot6MHkJGLi5 TTzOS2I596L35Gc9jP4QtrXvSdNEDqTQT81zX9lNXRK446tO29T4ukwl7NxJ11/LCJpR +F3GYwqI23IZ2xnTOWFb/IelTaoXYLbKoMD6FXUHnmXjezJxeF29IBMz8KnXCrlCz4r3 LQwrhv4FGZDEIXJWGHithlWlorq7P81OQsu1T6cYp5WE60pF6ABC5S5yJTje/7fg3eHo L4M6p1m7+EFPXDscRxq2GApTnFXTM3JLXrvRrcS11FICo0LeB6+VAzRQY3lj6y0TGQit BHoQ== X-Gm-Message-State: AOAM533LDakbGonYb/V9TiTpP+GhXdMRCDmWNzDXsTR3fQdqakTrppL2 jB6g/ju4H7MJcjtnXvsQ2kTCQN3hk/RG3w== X-Google-Smtp-Source: ABdhPJzd9bkHYJC56LA9yvbOs3N/OrPbAmtYouTWcxhGPvju+dr0MxD3WT7YPW2C1hZk3nHzKsVgMA== X-Received: by 2002:a05:600c:4a28:b0:39c:4d97:37e2 with SMTP id c40-20020a05600c4a2800b0039c4d9737e2mr8439018wmp.31.1655024451149; Sun, 12 Jun 2022 02:00:51 -0700 (PDT) Received: from localhost.localdomain ([178.130.153.185]) by smtp.gmail.com with ESMTPSA id d34-20020a05600c4c2200b0039c5b4ab1b0sm4798603wmp.48.2022.06.12.02.00.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Jun 2022 02:00:49 -0700 (PDT) From: Joe Damato To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Joe Damato Subject: [RFC,net-next v2 7/8] net: udplite: Support MSG_NTCOPY Date: Sun, 12 Jun 2022 01:57:56 -0700 Message-Id: <1655024280-23827-8-git-send-email-jdamato@fastly.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655024280-23827-1-git-send-email-jdamato@fastly.com> References: <1655024280-23827-1-git-send-email-jdamato@fastly.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC Support non-temporal copies of udp-lite data when applications set the MSG_NTCOPY. Signed-off-by: Joe Damato --- include/net/udplite.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/net/udplite.h b/include/net/udplite.h index a3c5311..000677c5 100644 --- a/include/net/udplite.h +++ b/include/net/udplite.h @@ -21,6 +21,7 @@ static __inline__ int udplite_getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb) { struct msghdr *msg = from; + msg_set_iter_copy_type(msg); return copy_from_iter_full(to, len, &msg->msg_iter) ? 0 : -EFAULT; }