Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3321710pxj; Tue, 11 May 2021 01:37:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyr2sra1qxV66w3izWoPlWy4Hv6Di65I2Hh2nbBIBNOGJcU9Kvc8mdDwJguoOvxhSTtSHCs X-Received: by 2002:aa7:cdd8:: with SMTP id h24mr34595281edw.276.1620722261319; Tue, 11 May 2021 01:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620722261; cv=none; d=google.com; s=arc-20160816; b=dsfiEPG5skmkNi3aNK3hRAR/KhdW9Nf9zbjmsQSLEv3EoHnycDnIIM/yEiXcZcdFVQ lWrE6Xec+gWQCdLWbfE6x7lILzSzRPiz2g4MbYPu0XYtjH4iaX+jHs4tOAHRdGKAFMYI FtxDDTzfLwgsy40ZS3najWkoB0esIdODI1jOaGOZdrcwbIyjdz4IRUSRZLQiOy/cdtG0 kaxkY9vaB4Hbe7lmr5QtkWZlTDSB1ApBa0h6DNj2R8dlUvNVWbQV9p4H569HVpviD9Im zpzmBzQWDB0zpXNch/IeFdHWbkk9/wKkzfH6myufGJqNDkruqB2izmlnARe9uv9LVxN1 YC/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wgdPV/AcewZdrV8IdLTwGyLrFumxsFWQvFFQfDf0wVQ=; b=lq9q/3LVwgX3SuoyUUvaXH+E8OhrchiuVY6UctINZbXiMdNxOlmbNraMR5M4PBoVIJ ayru5/Xj72h8EhDV0EALYeYqpG9CHCK6MRRYwbXMsHHKizfYXKTbWvKShGvX+KaiPykK 2r/rhWj5m/tdaNknhnU7PgBXjGReWSClb9s4WaPB2nddLM/AqYcUTYul/a9FpKLGCLS3 ZU8NHf8yYyz8uIfk6ZIO62teV3R/HRg/k6y2PjlUkpRW3L31kLUewwnGCuhVIzF2H5Fj FzElwB82ZAosPqJBRCgVyfsI07XxX6qA5v6QK0XzkyyQmfD11qewvnL/Ps+mFuxQPvsM u8YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@daynix-com.20150623.gappssmtp.com header.s=20150623 header.b=0ZapcwAC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gv37si15610365ejc.229.2021.05.11.01.37.16; Tue, 11 May 2021 01:37:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@daynix-com.20150623.gappssmtp.com header.s=20150623 header.b=0ZapcwAC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230073AbhEKIfW (ORCPT + 99 others); Tue, 11 May 2021 04:35:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230316AbhEKIfU (ORCPT ); Tue, 11 May 2021 04:35:20 -0400 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 696F9C061574 for ; Tue, 11 May 2021 01:34:12 -0700 (PDT) Received: by mail-ot1-x336.google.com with SMTP id u25-20020a0568302319b02902ac3d54c25eso16887739ote.1 for ; Tue, 11 May 2021 01:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=wgdPV/AcewZdrV8IdLTwGyLrFumxsFWQvFFQfDf0wVQ=; b=0ZapcwACbS75HaNUVIMJA2nF3TdzK7yHK93AEsDFWQj8EPz+9cmwgw80lvA1lgAEcQ uz/w0p69/JLKKlrFul/W9WeNdp8+jOwBZg2fofcQkFW61UPtzJvJ6gvbq69u/kBAquis kkgdUMlLxWCwi3BvPFR7IUQn9zq0xmg0bVmILplyvwK/wfPbwPqlmjJeWI9Eko1doGGi FQWXi7kHsmCKdsmfuA+BBVIHnQXevwiPUdnh+rcK2HqBBC387AtQ519eZkHJ0SsnceXB Yd3siNFoRrVgjmFLca5F43CEhd/Qe8uE1M9/C1PkehqGJTLCCUm2OQX0W3w6auokH3Nm CFxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=wgdPV/AcewZdrV8IdLTwGyLrFumxsFWQvFFQfDf0wVQ=; b=RfvMUGBYaJ6VYyzf9cQEs9BXXORPyn+5vKzzSdPHNd/pC5nlAzbH3DazhDv54eN1Y5 f1OlcUmOZ45IbTa6bfwNpM5q4rQg1WArIQpomESWEBX4hGC/Jy2cgFYpSujZoQY5IFf4 vA1pZxNF4jpJViSWJ0RsQrXhxYKmh894+hGjS5VX9VqzyfKztQhKIbNQ19F7D9CPKJLL 2/x9CXaW/9phTRualQ3n2VH1IskIBJzxe5tZxWgW2McRZdSVvCZwjaXAwxvhajLG/OeD TEzwn5f1o+XcVzt3Qezf0z0WAWZUVmG/5Ebsn0u5ijsUK73pX50+Z5q+BPXe/f+heN+P +veQ== X-Gm-Message-State: AOAM533XfyZsFBl8ZAyu3iDohzI8M5tygHu0rfV+jj7dXD/g5w9EZqZX zmbSNO+P+8OAz+8cFJVs/tG0S9rU6veqi/Fev+Uujw== X-Received: by 2002:a05:6830:4103:: with SMTP id w3mr20719290ott.27.1620722051869; Tue, 11 May 2021 01:34:11 -0700 (PDT) MIME-Version: 1.0 References: <20210511044253.469034-1-yuri.benditovich@daynix.com> <20210511044253.469034-5-yuri.benditovich@daynix.com> In-Reply-To: From: Yuri Benditovich Date: Tue, 11 May 2021 11:33:59 +0300 Message-ID: Subject: Re: [PATCH 4/4] tun: indicate support for USO feature To: Jason Wang Cc: "David S. Miller" , Jakub Kicinski , "Michael S . Tsirkin" , Network Development , LKML , virtualization@lists.linux-foundation.org, Yan Vugenfirer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 11, 2021 at 9:50 AM Jason Wang wrote: > > > =E5=9C=A8 2021/5/11 =E4=B8=8B=E5=8D=8812:42, Yuri Benditovich =E5=86=99= =E9=81=93: > > 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, un= signed long arg) > > arg &=3D ~(TUN_F_TSO4|TUN_F_TSO6); > > } > > > > - arg &=3D ~TUN_F_UFO; > > + arg &=3D ~(TUN_F_UFO|TUN_F_USO); > > > It looks to me kernel doesn't use "USO", so TUN_F_UDP_GSO_L4 is a better > name for this No problem, I can change it in v2 and I guess we should toggle NETIF_F_UDP_GSO_l4 here? No, we do not, because this indicates only the fact that the guest can send large UDP packets and have them splitted to UDP segments. > > And how about macvtap? We will check how to do that for macvtap. We will send a separate patch for macvtap or ask for advice. > > Thanks > > > > } > > > > /* This gives the user a way to test for new features in future b= y >