Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp541914iob; Fri, 13 May 2022 07:17:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6kSJ1+3nESU1ErnjpZdcmEuaMXkGnfvTRNhtUra/W5wwegHIq0+ZARqqJ3MNzCleq7NHp X-Received: by 2002:a05:6402:354d:b0:428:19be:2447 with SMTP id f13-20020a056402354d00b0042819be2447mr39654100edd.308.1652451442550; Fri, 13 May 2022 07:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652451442; cv=none; d=google.com; s=arc-20160816; b=y+Hyofc+nMwqxz/ZGT4uIT2yVJWy2wTsk/QOgyF03K3RaSUgigBDQDFbUyA5Yit5f/ mo9vBwI9+BRyuDn/OCbZh5lqPEpANsLDqVSxb9R6r3rs16L/ilvBRtR44ICWPhRsnAmn l74g0JUuQUQKi16NoOmr18q87CXc3nzjQuT1pDLVSpy8CtTog095MO+no1RMJvpLsC7D 7Sy3CWC0zeiACEKjT119s+PmQc5gV5naOnnQbPL/k7NVEra1fPhAnZN07ZNqROBrMS3p ryw1TfCBiR79rfu5XAtDhlvaldZHU1m6zppihVXYBjMMCxZk1yoXP1jhsyB6TkSUAnsW 3/xA== 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=poaAl/LWMtSjpF9E3ArKo5BaGizAmiyDHMdbPQU58wM=; b=DSxjKdex+HgKJeJjb6BXCbU58201ysOo2feVMYTRKv6d/CCm/lJxK/kE8Y8nLFQJrc TEgbRCt9igiL7vDr86xTeJS2RWis4NeXohPzOJNt/vCgazY2dkYrGSuPBirv1hi3hui1 I2zh1fiCLiAuZAiopK9UOSq0XfFZAAZqH1wcbBc88wPlWD+zxmPUXDYKIEBnRlKmpkyN lUA1YgYtnFfccBW/ZJBBDj7FhwI7ql4w1KGKZ/wCxFgg1C4wNe/slIy6Jqlv4VHIxNTz 9XxtVKyK1nh/ArQ1YDITiS+0k9o+eI0bruhYb6wXSM98KmR1vtdbxdHOMaFUC2fV6GB0 mDIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=L0BFpVLJ; 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 dy28-20020a05640231fc00b00425d4551781si1747079edb.434.2022.05.13.07.16.56; Fri, 13 May 2022 07:17:22 -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=L0BFpVLJ; 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 S1353262AbiELLd1 (ORCPT + 99 others); Thu, 12 May 2022 07:33:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353230AbiELLdY (ORCPT ); Thu, 12 May 2022 07:33:24 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EBC61CE633 for ; Thu, 12 May 2022 04:33:21 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id o22so5207466ljp.8 for ; Thu, 12 May 2022 04:33:21 -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=poaAl/LWMtSjpF9E3ArKo5BaGizAmiyDHMdbPQU58wM=; b=L0BFpVLJQqlT0zt4b7FVLFd+SSf6LkTvIZONJ+ldc+OUcKRc4j/x60BAYklyj/+lMc CKZM+K1fF2jHLZUKhOEAHrdOVXtJy/71Z6j5BZLP19lHovNzo8VyrLuDe+oRiUerrKJT kGkAPi9eO0/bb7UnFYrT4as3ZAfrwqKBIjzfbbLHHUWLww4uTiQ8AUqNkgzgFZZuzDZH AVQ13nVULJHMSZYiLGoA6KclaPqR39FmHZvxbid1YuOLOF3AsJ1CIyySOmSNGAI5lm99 x2Bnz9i/LNHo1qMPg0HGpNqIkDdwOYwXpBHu8XCP/lagjhocE8jHM40QiYnRR842wQo3 9oOQ== 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=poaAl/LWMtSjpF9E3ArKo5BaGizAmiyDHMdbPQU58wM=; b=JwhOBFU+Agu5gcQl+FpDwfg9URXU5v3fa2ck5MSZDV8R9BL36OZhRmUHEcgm7O/8G+ 5gpZF62c+kMlrepAG7AFAMONTNWHcmzPZQoKrPY4DhfIyb8SOo9RQJBYDk04/6y0cDdk jKWoP55wxpw+zhAwiB9AMGKql0QApkJQtEuTqKY0vy6cOOB7KqdjWPs33Zc8HsqUbUXT QHexTAILJK+2qOUETMAEYPubyDgJ8qizx7ubggJpLksjg9gv3kOm2b+cKUC/aDd/L9gC Wbd59NFSkEEVc2VKhfPrxtuiBVebQYiA1qCSRgFrKhkC6ZiSIyf0HRqsKOZH2kYrVPHS s5yg== X-Gm-Message-State: AOAM531HSaTn0/WdO0Opz2O7MlnONnLJnpWtD3s5Gl99HN8wRrntrZgd Xi7Eu8HVLH3AtedQcgeAaTcfpQ== X-Received: by 2002:a2e:b712:0:b0:24f:150e:1a71 with SMTP id j18-20020a2eb712000000b0024f150e1a71mr20147165ljo.240.1652355199481; Thu, 12 May 2022 04:33:19 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 04:33:19 -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 1/5] uapi/linux/if_tun.h: Added new offload types for USO4/6. Date: Thu, 12 May 2022 14:23:43 +0300 Message-Id: <20220512112347.18717-2-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 2 additional offlloads for USO(IPv4 & IPv6). Separate offloads are required for Windows VM guests, g.e. Windows may set USO rx only for IPv4. Signed-off-by: Andrew Melnychenko --- include/uapi/linux/if_tun.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/if_tun.h b/include/uapi/linux/if_tun.h index 454ae31b93c7..e147dcb46d5c 100644 --- a/include/uapi/linux/if_tun.h +++ b/include/uapi/linux/if_tun.h @@ -88,6 +88,8 @@ #define TUN_F_TSO6 0x04 /* I can handle TSO for IPv6 packets */ #define TUN_F_TSO_ECN 0x08 /* I can handle TSO with ECN bits. */ #define TUN_F_UFO 0x10 /* I can handle UFO packets */ +#define TUN_F_USO4 0x20 /* I can handle USO for IPv4 packets */ +#define TUN_F_USO6 0x40 /* I can handle USO for IPv6 packets */ /* Protocol info prepended to the packets (when IFF_NO_PI is not set) */ #define TUN_PKT_STRIP 0x0001 -- 2.35.1