Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1187061iol; Sun, 12 Jun 2022 08:27:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoyT5RMnGMpUyp4tjI3Xju/PdwTT3mHDZW3vIzTzRu17sCLjTbu3PknuOgJuJQ/1hyrtCv X-Received: by 2002:a17:902:efcc:b0:163:f35b:2a99 with SMTP id ja12-20020a170902efcc00b00163f35b2a99mr53128308plb.42.1655047629046; Sun, 12 Jun 2022 08:27:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655047629; cv=none; d=google.com; s=arc-20160816; b=REOVs7wWWQfcpEYCZmTBWJ/fmE9/ocr9blulgt4CYgPKfIg0MxOvsSTAgK0V4Lxaau BqfqU8I6EoDRmqeHZ/oCJfK6OlybOfvn8MeWM6zi+gBDuehrquRSuAtcZIOlidJRe/Xz Lp4G54MabUxzE4J4KDGRNlLmW1G4cfc4OJA0zwGTq4ZtlWzqdpzDgbk47/5D54bK7AGY N44EyZFgds1tQx38NuYJMl9keL2EN3Af9fSgB3z5/d4Iq8OCfkHvvZdcWrlsZAkbVzlD cP/5Kz0my7Mjj8gUYzF5SBIBgcmb6u4p9p3MgotB4m1KN5RL/QL0eZkxIACuyd5ogcNi /BCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=ELhqEDOqgmC+TbLCt4NyDbvbHR56jry/w5HtXxvrUIM=; b=dfURt2An3MWTMsd3R5pmzwUXHYbuLsYDjX5jpZTEapaHxFqtbRvkicWlS+styODeWN J2MxAhB6mRx5rSM08lws724/gJYe7l4eaiFCEuqY9LfSm4IwQjjvlPTSLtwOAWiouK3u iEhYBHkj8IeLn95QuB9vTMjXpOIS+HjweSPqf7JeUScJCWCMCKIBDQJIDLjuItw4xgh+ QjvBpAsmrCesHBrV8YjKjCbB+eR1A4oTHxKU6miNNatjKxoBiwnEzUt3QZmaHI9mBXae j6VFKtj6mm7iAmgdDzbsUhqjfcG7jscseadFgveuuBkz/TdHH5ChqvuNMGZisAjl/DCE QPbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=PaZYXKu8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fastly.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020a056a000ac400b0050d932fc7b4si6799829pfl.185.2022.06.12.08.26.46; Sun, 12 Jun 2022 08:27:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=PaZYXKu8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fastly.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235520AbiFLJBE (ORCPT + 99 others); Sun, 12 Jun 2022 05:01:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235423AbiFLJA7 (ORCPT ); Sun, 12 Jun 2022 05:00:59 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A53D951E4F for ; Sun, 12 Jun 2022 02:00:52 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id m32-20020a05600c3b2000b0039756bb41f2so1602714wms.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=PqdJl+34xZa4j8qhab3ps/7MJZM2V0VYSaLKrgGvW4E0bz/dKPo1e6fSIcW3LXf+kI 5Vqmj38KhAePXtjV4c69xYf2B7VYhoVc5wAT+9tjtSAIhO2AK01dxOVU/MmbYwaNwyJ2 w46MAjZcPtgLB6l5FNwH7tZyJSvw+yVkio18caH7enRJlwwZYYvTzbwNcQiD/ZEKdFJw HOOznIJMvB2IGAp7qy85vx1XokuVSitbLG2KGgWhpb60fxJVpMy/rW+Jg1NUbLyx3V2a iA5E2Oc9HPx34zdQggk6Se/EeHPIsqRz2gGBp7AFB8gMN1al71BkIUORPqydwtUDOcQC uNuQ== X-Gm-Message-State: AOAM532jimV11xLGim3v6Xkd9VM2afiawN7fBsrCKGSGG9iyLd058UBl Afm2jrs5OXIWOz48z0ZY0PBGZQ== 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> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; } -- 2.7.4