From patchwork Tue May 11 04:42:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuri Benditovich X-Patchwork-Id: 12249783 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 X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 53BB0C433ED for ; Tue, 11 May 2021 04:43:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3813D61921 for ; Tue, 11 May 2021 04:43:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230323AbhEKEok (ORCPT ); Tue, 11 May 2021 00:44:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230216AbhEKEoc (ORCPT ); Tue, 11 May 2021 00:44:32 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5B2FC06175F for ; Mon, 10 May 2021 21:43:22 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id l24-20020a7bc4580000b029014ac3b80020so448352wmi.1 for ; Mon, 10 May 2021 21:43:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wwaKQDmQQxJQV6OXbMRvBq98650xZ8vtis+SN2tPPHc=; b=cUN8rJ9cxcb5J6kh+EpJHFwm6r407tanaasfSpuHrGBM+kNjPeuj+uFStN0RAyeYO2 G7ZGTP5X4SVe+KtQutvXBZDfqcDiuskFS3LGFUH2BRfM9lRvRLN0hKenJODEmwH3MYSx cauxYNlkBpoVwDHMP7d9Kn04PWpufgsktbdx+tXD2qVh7s1mG7xpm4WItZHcC2CXAly/ UVWK36bjkh2N+7p+DJfuraSMYBSlv+TZLPEXdCcUBZyVhgbCrtnEmTD+CkVLh5ZbYhWI BmZhfvJ0CkntkYidpQZApE2hWLUZMQ0OSV70dYLDAgnLX+fGTMG6C36Mxba+O8TpQFqJ XEog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wwaKQDmQQxJQV6OXbMRvBq98650xZ8vtis+SN2tPPHc=; b=mbtrrrEtXOyDtzEylVJQcsM8/EZW/T4uzyiPGHDeaOaLV3hYyHqI9ac9XX1zbcZ23m xSmacjniIvKfcT4EnQ30K7G+W28K+8sxPMz0jikRDLZTD0ubzpnERwR3w4h/u0HJuQEN 8QBjxxqQq8kV43JaK1nTC3YRco6+WEzWdqq8zIrmIbVc7ELV6j4CieEAByOck/9jZ3RF mVUNXJGn01Lsg9cQUjsHOcmkZmJdhXbCGQ6Vn6UQrCvFv76YlhCXCcsW+xX4YkSziBq1 Id0S1AKg7aYTbfw69+ustJ7YqKDR4Wfhe4P0l7zFPFI0q4GE64Ej3JTm5F2GTccsC2NT 4+8Q== X-Gm-Message-State: AOAM5333Q1WJK6pdIcubabTicppGY8NP77ZO5q9Ztx7jilcrqF7JZEX5 uLDuI7ZmCr6WuUzbylaLWwD1Qg== X-Google-Smtp-Source: ABdhPJwHj435BmybraousVJN/rIUlLcWFmieWSwFi/CAKzS4FDUSyjNRR06B441/KbZuzZumpB1OVw== X-Received: by 2002:a1c:1b49:: with SMTP id b70mr30552226wmb.147.1620708201504; Mon, 10 May 2021 21:43:21 -0700 (PDT) Received: from f1.Home (bzq-79-180-42-161.red.bezeqint.net. [79.180.42.161]) by smtp.gmail.com with ESMTPSA id a9sm22360520wmj.1.2021.05.10.21.43.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 21:43:21 -0700 (PDT) From: Yuri Benditovich To: davem@davemloft.net, kuba@kernel.org, mst@redhat.com, jasowang@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Cc: yan@daynix.com Subject: [PATCH 1/4] virtio-net: add definitions for host USO feature Date: Tue, 11 May 2021 07:42:50 +0300 Message-Id: <20210511044253.469034-2-yuri.benditovich@daynix.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210511044253.469034-1-yuri.benditovich@daynix.com> References: <20210511044253.469034-1-yuri.benditovich@daynix.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Define feature bit and GSO type according to the VIRTIO specification. Signed-off-by: Yuri Benditovich --- include/uapi/linux/virtio_net.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h index 3f55a4215f11..a556ac735d7f 100644 --- a/include/uapi/linux/virtio_net.h +++ b/include/uapi/linux/virtio_net.h @@ -57,6 +57,7 @@ * Steering */ #define VIRTIO_NET_F_CTRL_MAC_ADDR 23 /* Set MAC address */ +#define VIRTIO_NET_F_HOST_USO 56 /* Host can handle USO packets */ #define VIRTIO_NET_F_HASH_REPORT 57 /* Supports hash report */ #define VIRTIO_NET_F_RSS 60 /* Supports RSS RX steering */ #define VIRTIO_NET_F_RSC_EXT 61 /* extended coalescing info */ @@ -130,6 +131,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 UDP (USO) */ #define VIRTIO_NET_HDR_GSO_ECN 0x80 /* TCP has ECN set */ __u8 gso_type; __virtio16 hdr_len; /* Ethernet + IP + tcp/udp hdrs */ From patchwork Tue May 11 04:42:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuri Benditovich X-Patchwork-Id: 12249781 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 X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 140CCC433ED for ; Tue, 11 May 2021 04:43:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E57806191D for ; Tue, 11 May 2021 04:43:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230267AbhEKEof (ORCPT ); Tue, 11 May 2021 00:44:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230188AbhEKEob (ORCPT ); Tue, 11 May 2021 00:44:31 -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 2A658C0613ED for ; Mon, 10 May 2021 21:43:25 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id o26-20020a1c4d1a0000b0290146e1feccdaso501910wmh.0 for ; Mon, 10 May 2021 21:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=C9XpXxYtaOMpWOUjJ4wuUSOsoeZftgUi9oWw6L6+6PY=; b=i8N263f+uXxe91WLuxJx5RvGTcU+LOlIZILGfgaQzBDs6R/OaZ26o9Jduve+32BvM0 SBW5jvdKVYeAZmZN2gJYZTbusqcxDTTC15Lpii1SMDeN7urjfzM0n4B6AIEXRELudkAm ONRljjTtiItJ/VZma2gKCNrnXZ4b4XK0kHPXfxOYFa5/HwbafB07Xt0fVqX7vfPtpn9d fMPog8BUQcwL0WZCqE/LfaVSMRv8ythODRvoqifUAjufxR7YfIiFvybGHoR/pVpoGsAj zjKpR1k5AeoLdOJ3xV/+lVo6WQMDN+ca4vpe7dLYnfXjH5BFwWj+7ZyGtcbGLngURzZD Vi9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=C9XpXxYtaOMpWOUjJ4wuUSOsoeZftgUi9oWw6L6+6PY=; b=AEtWv1KrYNofJwGNY9DUxHTl5nykzp/EVjuLH7aEk7FIPHPybtAk8zzdxrU2Y16eJB FOdiqLWIQ/+cRJbaRv5JBt0ISA/jN6EmDXy0Kr4Seu6T1J33kr9MM3R7HlYv85Cpn/rg ibVwc6jFKn3fQcUGYHUzhUN26CF1c+Ii/t3B3xVyZzy9D77pARjf/cl/LTLHX78APrvG 2N9dOWyR0/OJTuAJfwujJL/YJiPF87xaOswKUXoyPjhcfCmRmy9l/AnE1jCP+C/+LDjc TlWkT5fB6sEHiYoQOoeBeCgh20+Ii989siTMyuxoeZ0INs4mZzWiofxTuw9vuQ68qDmZ A/uw== X-Gm-Message-State: AOAM530rL4/9OfuoH72SQTmGeIHelgpm5lKX4YXW6Hmd6Q2ZMV+xQ6w0 NlzYTT4URVRNN0e6RdyYVwXEfw== X-Google-Smtp-Source: ABdhPJyQk9PXGY/kEfZFu3FcsyaZ0+l7hvZVvgX/jf5mBiF4QiF5aERcUZgxITkN4JxfM3z5J6nLRg== X-Received: by 2002:a1c:4d17:: with SMTP id o23mr3023530wmh.102.1620708202793; Mon, 10 May 2021 21:43:22 -0700 (PDT) Received: from f1.Home (bzq-79-180-42-161.red.bezeqint.net. [79.180.42.161]) by smtp.gmail.com with ESMTPSA id a9sm22360520wmj.1.2021.05.10.21.43.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 21:43:22 -0700 (PDT) From: Yuri Benditovich To: davem@davemloft.net, kuba@kernel.org, mst@redhat.com, jasowang@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Cc: yan@daynix.com Subject: [PATCH 2/4] virtio-net: add support of UDP segmentation (USO) on the host Date: Tue, 11 May 2021 07:42:51 +0300 Message-Id: <20210511044253.469034-3-yuri.benditovich@daynix.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210511044253.469034-1-yuri.benditovich@daynix.com> References: <20210511044253.469034-1-yuri.benditovich@daynix.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Large UDP packet provided by the guest with GSO type set to VIRTIO_NET_HDR_GSO_UDP_L4 will be divided to several UDP packets according to the gso_size field. Signed-off-by: Yuri Benditovich --- include/linux/virtio_net.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/virtio_net.h b/include/linux/virtio_net.h index b465f8f3e554..4ecf9a1ca912 100644 --- a/include/linux/virtio_net.h +++ b/include/linux/virtio_net.h @@ -51,6 +51,11 @@ static inline int virtio_net_hdr_to_skb(struct sk_buff *skb, ip_proto = IPPROTO_UDP; thlen = sizeof(struct udphdr); break; + case VIRTIO_NET_HDR_GSO_UDP_L4: + gso_type = SKB_GSO_UDP_L4; + ip_proto = IPPROTO_UDP; + thlen = sizeof(struct udphdr); + break; default: return -EINVAL; } From patchwork Tue May 11 04:42:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuri Benditovich X-Patchwork-Id: 12249785 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 X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 2A82AC43600 for ; Tue, 11 May 2021 04:43:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D9C46191D for ; Tue, 11 May 2021 04:43:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230367AbhEKEop (ORCPT ); Tue, 11 May 2021 00:44:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbhEKEoc (ORCPT ); Tue, 11 May 2021 00:44:32 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69D64C06138B for ; Mon, 10 May 2021 21:43:25 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso430860wmh.4 for ; Mon, 10 May 2021 21:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5pOfhSU30/+74TWykEgYzzcECzknBZN+gG9Fp9jV4LM=; b=nh8fG27gkiOXB9Nd6Ql5AKT5b4yZ4SDOzi0e2MCZrznnSTBwvbi3UvjCMFYtvSaa5e T5aL7BE9xtRQRhLITeB3qJFmGhMcI2W79nl6PLA8YvU4Mhhm1zyShXvMLKwy62DHATZL deNH+G75y8mvkk3t3ZPupo6Mop+VgxQ1XhVfVkLLJ6lonX3bRpoevXYxsuFmxrfwQWNC 9V/KziU2Eu967HWhLsQJq/0+fpFxuiw3xvw7fZo5uiMybxBVxXT2SxRxDVKSGKstA2jh OhohXmo5shuPLwlqD7ikkEvUQiQjGWXdUEAqvLWNSoHSAYPK/hzkqwIiwmg4gmZFxMaq pF8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5pOfhSU30/+74TWykEgYzzcECzknBZN+gG9Fp9jV4LM=; b=UxIXwVD/Bvk40n/dIc2bETDzctyHlxxurEKkWtnwmmKdWMJClexVAKcT1G0fHhlkm0 IT0SFlKfgO32A4JJdfy1jch4QSK4+x6eTK54+Hci/nNOG1y4lP1UJsATKtvgVLEZ6VXs y7DdOnHBtbj1oifefUbZz+24jful5GAEcU3OpfMpTNuv26p0JKOkFYAufbwRmpTUeXF+ 8kireHICufkjsEElE+KR/nC09ju9rqpigrSMP7fyYezVrdBXu2tO28E1w2r/NV23v7C6 idt25NCHQnPTHy2zoLIOGreIN33HVcMjWsQRY5y9aqSP7/o70fM9kZtS60FdeB8YJdy+ nZ5w== X-Gm-Message-State: AOAM533T9yHpUGyZoKIBAcu7kV4VSgOjp7pz8ecLtxtXj1mljf97mcVM FjACtbWumo5cadUlvPUbcnzZmg== X-Google-Smtp-Source: ABdhPJxz2fUN2Ek72KoGClY3cxAT8P1LdAZMCqfO5EoKr2QEdfTvTaJ0vok4Mb2bs3QB8c0H7KV+3A== X-Received: by 2002:a1c:7dd1:: with SMTP id y200mr2960343wmc.81.1620708204150; Mon, 10 May 2021 21:43:24 -0700 (PDT) Received: from f1.Home (bzq-79-180-42-161.red.bezeqint.net. [79.180.42.161]) by smtp.gmail.com with ESMTPSA id a9sm22360520wmj.1.2021.05.10.21.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 21:43:23 -0700 (PDT) From: Yuri Benditovich To: davem@davemloft.net, kuba@kernel.org, mst@redhat.com, jasowang@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Cc: yan@daynix.com Subject: [PATCH 3/4] tun: define feature bit for USO support Date: Tue, 11 May 2021 07:42:52 +0300 Message-Id: <20210511044253.469034-4-yuri.benditovich@daynix.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210511044253.469034-1-yuri.benditovich@daynix.com> References: <20210511044253.469034-1-yuri.benditovich@daynix.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org User mode software can probe this bit to check whether the USO feature is supported by TUN/TAP device. Signed-off-by: Yuri Benditovich --- include/uapi/linux/if_tun.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/if_tun.h b/include/uapi/linux/if_tun.h index 454ae31b93c7..24f246920dd5 100644 --- a/include/uapi/linux/if_tun.h +++ b/include/uapi/linux/if_tun.h @@ -88,6 +88,7 @@ #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_USO 0x20 /* I can handle USO packets */ /* Protocol info prepended to the packets (when IFF_NO_PI is not set) */ #define TUN_PKT_STRIP 0x0001 From patchwork Tue May 11 04:42:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuri Benditovich X-Patchwork-Id: 12249787 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 X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 9E68BC433ED for ; Tue, 11 May 2021 04:43:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8155C6191F for ; Tue, 11 May 2021 04:43:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230334AbhEKEor (ORCPT ); Tue, 11 May 2021 00:44:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230185AbhEKEoc (ORCPT ); Tue, 11 May 2021 00:44:32 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADD9FC061760 for ; Mon, 10 May 2021 21:43:26 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 82-20020a1c01550000b0290142562ff7c9so472551wmb.3 for ; Mon, 10 May 2021 21:43:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bsCvJr4vTwPoE7/DTp7x7jVKKhNxBO/CRiZz1em8k+w=; b=JSBkBA/fZRmJSu3Y9xq3akl7ED6Tvpe7AvXz1yQrByhsaur23klSnr6Gyq5VVkOF/P ehiDxkgCwHbnHX/mXBNSZtuuk7bsIIRGAiQ4j3jut6l8HNUKQNHAopo2HuU2VL5zei60 JWVu8C+wV0DiXbMmrKqq77WXG2qN+YjSeDXpu87UOw8Uk9c2CBK5DaS+yiamWcO4kRFR eWmoNtLNlfEI/s1QDxveZYkjyxgFod5GgIjU4xSpwEEoUEKLpYx2FaOMj94DXNvUUu4Y MuzNETQ0sy/X7KcHezWttVz3VxYGEu9aQaUaC9vgboklMJdAAEP3UHyzzWyc75VQnZ2B 1WXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bsCvJr4vTwPoE7/DTp7x7jVKKhNxBO/CRiZz1em8k+w=; b=N7P/8DJNm160GbUBaPhnsf+0FnWA7d0KzTEIm0nG72j3mbgm7B5wPCEBq3S6KUrv4r sv68iqcdehLgzNpOk+hy1gIkMhMuq3MtquyfuVuISYVpPzFeBAI1Vl8zVGF7Q0gBWrVq KCEEE8Iq38OOHLcrm463XErENbntJ9vwXc4GpNwYlFZghK25ImgeCU1xXdDz5gbzqQ4i CbrTD9FPBnemeiPFIF1ZkZAykTjX90sv7QqHe3DtoFKdoaGl9I0Wh5z0r/QuaMhRsNdh Uh/Q5mWw1jEfEcC90Y/uPiHlh7zJPIba6Go/hUN1PxZ6KYY6xLxmmjk8FV5w4HUEucUR eqHg== X-Gm-Message-State: AOAM533E+fdkIh75xhtkUBiMDkuIIK/wbhUSSRaZgunJNNWyH8Rvx/uz XYod+vWjtADo0/IRnrAZTiRl0A== X-Google-Smtp-Source: ABdhPJzxeGzw+4yEOHbL5HDKHJ+qupAsDGcMzwF55Eut8wUC/I5FZbSmyp0K0X27fWEs54GfArqysw== X-Received: by 2002:a1c:545c:: with SMTP id p28mr3073820wmi.118.1620708205432; Mon, 10 May 2021 21:43:25 -0700 (PDT) Received: from f1.Home (bzq-79-180-42-161.red.bezeqint.net. [79.180.42.161]) by smtp.gmail.com with ESMTPSA id a9sm22360520wmj.1.2021.05.10.21.43.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 21:43:25 -0700 (PDT) From: Yuri Benditovich To: davem@davemloft.net, kuba@kernel.org, mst@redhat.com, jasowang@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Cc: yan@daynix.com Subject: [PATCH 4/4] tun: indicate support for USO feature Date: Tue, 11 May 2021 07:42:53 +0300 Message-Id: <20210511044253.469034-5-yuri.benditovich@daynix.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210511044253.469034-1-yuri.benditovich@daynix.com> References: <20210511044253.469034-1-yuri.benditovich@daynix.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Signed-off-by: Yuri Benditovich --- drivers/net/tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 84f832806313..a35054f9d941 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -2812,7 +2812,7 @@ static int set_offload(struct tun_struct *tun, unsigned long arg) arg &= ~(TUN_F_TSO4|TUN_F_TSO6); } - arg &= ~TUN_F_UFO; + arg &= ~(TUN_F_UFO|TUN_F_USO); } /* This gives the user a way to test for new features in future by