Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp141529iob; Thu, 12 May 2022 21:07:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt2WANK6Y6Aa4cdhqSKElxUlxPGH0Ryoj/namjdiZ6atpyJ7Oe1oBnKtA5PskNrLQxq6nn X-Received: by 2002:a05:6402:5113:b0:427:f443:f63e with SMTP id m19-20020a056402511300b00427f443f63emr38984948edd.317.1652414833068; Thu, 12 May 2022 21:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652414833; cv=none; d=google.com; s=arc-20160816; b=G0bD/ZI1sZOsx/2Iv9gZ+fejCFE/mLx+IGW2hm/3mqFjk5NjtFxx8Wg+KxNCsI09e9 io8DHYeNRHLk5EcROoZ435NIe3rUnh+W5Dy5ZXqryW71PG6emeMqLQRsN+9ADrKT19+8 klWGW8EZfd39gHbe8crdzHpj64oCA9WPtolVWopx5oOR5TciJ6Iw9OIVg6HyMrB6+hT0 CO55/JHCkA3KfQBZII3YpGHHKJflBpyq+NBuL+WMl6UVIN/DbLdAM112HQxJw6QHRGCA M/8dERm5Yeq1B+mDxFKmzw5xii4++jKo5OOg0ha880fxDs3Nlv7hWY0Cffohcezaz/KO 7zAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dQ6Kj1AFx+WOgmL0iPWurV5hXCaWyWM8z6CScgnZ/mE=; b=NnPTSeDy/QgohiK4p1gum4p/DqLP6FZldyUFDiG2TQdHssc7KKos3oSu46iOMGYtO6 3Nue+pEk4A1b+J1fxBELzq4HQo1X0YvsHhLbMZepMOKiYfJT9OoKQX0Gj3miA+7Sy0O5 yiYRZFLdH8+hDmqPe76OMHoB5LxAFiih+/iHJjqFJ8x5H+9FVddCtO3tinObhMSZ9XRh NEGg9BN2sHLwb3Ml+1u5W9ZXpeHJcnxjEjeAZWnA4KIAmLiUZLnfStlI9XXl378QxHM8 YR9BKKpEyV/2/qXN9QcjeTnBYmb9QqgCUag2Aku/k9egAFCqsad0o31WKD4VXYjE9nKp edXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=eZlrMjgN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l18-20020a056402255200b004259e7818b8si1112632edb.328.2022.05.12.21.06.47; Thu, 12 May 2022 21:07:13 -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=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=eZlrMjgN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353361AbiELLdy (ORCPT + 99 others); Thu, 12 May 2022 07:33:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353256AbiELLdZ (ORCPT ); Thu, 12 May 2022 07:33:25 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 850A21C9AF1 for ; Thu, 12 May 2022 04:33:23 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id l19so6092476ljb.7 for ; Thu, 12 May 2022 04:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dQ6Kj1AFx+WOgmL0iPWurV5hXCaWyWM8z6CScgnZ/mE=; b=eZlrMjgNhGomXxclaICAouypvp3lRfwA6aZfhe3AuMITDC5aWokIMqIolhVdtaZYd2 8NkrnkmRYFE86hKFaKF3lR5XNcvz5vRIqWhpY7UjzJ/mRrdMw+kXRu1GxHv10+l/grGb eYFVeRSPr0I/DORddBVbHRUdOebbrl2/EbqnfMeS2fLZbbyBLTu7lyPhSM71VKxO7p6E 8CgT4Mv+1vL2Es14NninGcjg/EPWQF6UwwbzBPbNrUr0zvPgDoNdT2tknD9NQiY/eh9P Qdco9bi/vP/OBeQ+JDoSE+az1KTEBX8/LIkySJJCbfkibbj7YZuoDqCgwI0m1P8nAOEZ JFvg== 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:mime-version:content-transfer-encoding; bh=dQ6Kj1AFx+WOgmL0iPWurV5hXCaWyWM8z6CScgnZ/mE=; b=uICJzbsaS/MTFDcCtYUmP2Gk/Hc0Lh3jxiSSwf1Vf2g25s95wth8uVJShwDQLTvp9/ rkHODWxvsNBaOQucENA9QPw6EbBs9NFU2wxK13Q3J7+bm0YviWENb1hAGb+YMSHyRedK 1xleIy52s2Drb45IX2rol34yMEfxOQYama0JsouBn/lGH+JDsQRnGH3lhgykE9ENtDCx gsbjPTaO3ON6qZFLBckpF4/A671cUiwW9K/sqZSng662aL3KO61531vkQjED1fzwdanZ NDkbaLAady3ZxAvLTD/OeSQ9Y3wXQlzO/T3/KHjPRk2ggioAQm6XTW2KyxGNs/WKguJv X+GQ== X-Gm-Message-State: AOAM5326lnBY24j0gvL7L4GObqpLJ66gt0cX7t9RYkqQUyDQydpVQtXn LXU0SyjZhe48JXS4o0gbEtgmEg== X-Received: by 2002:a2e:8902:0:b0:24f:1446:3101 with SMTP id d2-20020a2e8902000000b0024f14463101mr19979362lji.266.1652355201900; Thu, 12 May 2022 04:33:21 -0700 (PDT) Received: from localhost.localdomain (host-188-190-49-235.la.net.ua. [188.190.49.235]) by smtp.gmail.com with ESMTPSA id r29-20020ac25a5d000000b0047255d211a6sm741758lfn.213.2022.05.12.04.33.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 04:33:21 -0700 (PDT) From: Andrew Melnychenko To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, mst@redhat.com, jasowang@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Cc: yan@daynix.com, yuri.benditovich@daynix.com Subject: [RFC PATCH v2 3/5] uapi/linux/virtio_net.h: Added USO types. Date: Thu, 12 May 2022 14:23:45 +0300 Message-Id: <20220512112347.18717-4-andrew@daynix.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220512112347.18717-1-andrew@daynix.com> References: <20220512112347.18717-1-andrew@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Added new GSO type for USO: VIRTIO_NET_HDR_GSO_UDP_L4. Feature VIRTIO_NET_F_HOST_USO allows to enable NETIF_F_GSO_UDP_L4. Separated VIRTIO_NET_F_GUEST_USO4 & VIRTIO_NET_F_GUEST_USO6 features required for Windows guests. Signed-off-by: Andrew Melnychenko --- include/uapi/linux/virtio_net.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h index 3f55a4215f11..c654feb1ed9b 100644 --- a/include/uapi/linux/virtio_net.h +++ b/include/uapi/linux/virtio_net.h @@ -56,6 +56,9 @@ #define VIRTIO_NET_F_MQ 22 /* Device supports Receive Flow * Steering */ #define VIRTIO_NET_F_CTRL_MAC_ADDR 23 /* Set MAC address */ +#define VIRTIO_NET_F_GUEST_USO4 54 /* Guest can handle USOv4 in. */ +#define VIRTIO_NET_F_GUEST_USO6 55 /* Guest can handle USOv6 in. */ +#define VIRTIO_NET_F_HOST_USO 56 /* Host can handle USO in. */ #define VIRTIO_NET_F_HASH_REPORT 57 /* Supports hash report */ #define VIRTIO_NET_F_RSS 60 /* Supports RSS RX steering */ @@ -130,6 +133,7 @@ struct virtio_net_hdr_v1 { #define VIRTIO_NET_HDR_GSO_TCPV4 1 /* GSO frame, IPv4 TCP (TSO) */ #define VIRTIO_NET_HDR_GSO_UDP 3 /* GSO frame, IPv4 UDP (UFO) */ #define VIRTIO_NET_HDR_GSO_TCPV6 4 /* GSO frame, IPv6 TCP */ +#define VIRTIO_NET_HDR_GSO_UDP_L4 5 /* GSO frame, IPv4& IPv6 UDP (USO) */ #define VIRTIO_NET_HDR_GSO_ECN 0x80 /* TCP has ECN set */ __u8 gso_type; __virtio16 hdr_len; /* Ethernet + IP + tcp/udp hdrs */ -- 2.35.1