Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3801300pxj; Tue, 11 May 2021 12:08:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrjkkXJp0DP6lb1kKPdouvyx6ljSoNBRkRS1avl6TNeZrYp7ndlUezqJMKYBiTlNf1kna+ X-Received: by 2002:a50:ab06:: with SMTP id s6mr29644726edc.100.1620760130673; Tue, 11 May 2021 12:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620760130; cv=none; d=google.com; s=arc-20160816; b=wKFngSYxPftERnyNLgrsAyEKQO+15jcf1eZGaJmmbLtro4gK1PAmJDgUvOmbB5hL5R yNiO8dFqd2vV25cgdoxBxpsrq61oUD1/hjxnX5c6vmCSH72eZTaYtbdx7jZI1ogyYgJB Z2Ij+Z4rd8/tsLBy0taJ3f3zqNHRG1dWb9G6kLjJMzbA09aSee9t1JVY8BoXurm2iNq9 iHe8v32Lgt0MQ7PTknOJ/7zy/9rLkKIuEzB5Z7nrIjyQRoE9oO/3+sPjn5nRkOLNQTvT Hz5olei8JDJKlvgjrUudra8fvpmePC6TtPcHiyZdh9Vq2EXEEO/uLowpEGbOpzD4qRur Vdzg== 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=Z+2tFNovZUcDgEPPmQYv2lYlE9Duihn50lxuJ1yOCWQ=; b=p1tH3iF23WMJuPOLnG0735qCr9XqXydCiPugGcmIXLUpaz4WNVHNP84SMkID7KLuX1 wxKiGf1RRhYPDu2hOUq0UfvHUsPrt6s2LRk0hh11Ij228EEOAmc3Bpho/Ssnpf0iqADt vEvf2dC0APU2NeXk09JqpMK+ePXlFeGJ8SmMjybZlwvKknHtp7bQ/i1a+YplqnsX4+8O 1FP3fMoj8OYmgjfWcQV47iQXd3zdtnd7SLr42h+yO/8WSG7INyoRkMkAKA+V8jgSi+XZ g38to+WZlNn6nUlv4xc1B24DRajeOkriZKAElMrcJ1duodb1TBUQkGfPVCrWQOJTyodi rA3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@daynix-com.20150623.gappssmtp.com header.s=20150623 header.b=PIXgT4XG; 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 j16si21657347edj.357.2021.05.11.12.08.27; Tue, 11 May 2021 12:08:50 -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=PIXgT4XG; 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 S232180AbhEKTIJ (ORCPT + 99 others); Tue, 11 May 2021 15:08:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231896AbhEKTIJ (ORCPT ); Tue, 11 May 2021 15:08:09 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70577C06174A for ; Tue, 11 May 2021 12:07:02 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id i81so20012969oif.6 for ; Tue, 11 May 2021 12:07:02 -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=Z+2tFNovZUcDgEPPmQYv2lYlE9Duihn50lxuJ1yOCWQ=; b=PIXgT4XG2X+/uIY36jt05vZQkE2YO+G0mpeL+fHV2dF/yYj5lBYYKPtKL5PzdK3MCU nnBXHvQ6pSfmOGpcgm7v8V1NNO9/IRr9s9D5DBAIelqnemp7oDG+l+8KwSM/bQ9Z0laz nuLcOzhi+8D+I2Ts04EHFsbdXOH6WH1HC9mVZhauXT1HhTLTAHRIxGc6m8w/j7Z4TK9W Votlfrv2HeXCMrVYE1XBO583Lok6h58fQ3fh8FHqgc++TtxzBMs1yHCijG3fehF5/vpK F55TNfhN2iSknoEIF/EpFnhCB3eRUY2OCO5J7GzPaZsnCIrMlDLfe53+d4OPEYkR01Ys S+gQ== 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=Z+2tFNovZUcDgEPPmQYv2lYlE9Duihn50lxuJ1yOCWQ=; b=Y0LsLIoXp3X6AX3NamJbN13zoaI5AK8diBGp2gTiFsxpSZstD5cQeiylhy649TGZRU eUoTRj9wzI6xcJerAQRyDfiz+Jc68Gb0w1zIVTZqQmg/zVE/4LGW/mhjI7hzlhSPg7iR T8pujIB61xSdn+HBu4fIjR5ZYQ7sz/OhwNZ4xCAagHr5qMobyzJdXfUybAvTxe3HM23U M878x2t5A78yXeNs9jR2UI9zHgoYb4bqVvFyrtTIkcucBfrCvkmPjysgOEsNjq12rm64 dPHz/Do7NS3bislCPsYX1T37/qyyIgTFmx2Q8qvqboYhUGqMIvoXSSVXCs9GUg+RYIL+ zftQ== X-Gm-Message-State: AOAM530XiatGCzbefBiBfAj9g3NSr6EmLjeP7ZyLMOWGO/Ldpm68JLGS KrBuXQE6raejgSloNpt8FH6Sf54w9iTvIQdR3mEddA== X-Received: by 2002:aca:4887:: with SMTP id v129mr22547971oia.137.1620760021914; Tue, 11 May 2021 12:07:01 -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 22:06:50 +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 11:33 AM Yuri Benditovich wrote: > > 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, = unsigned 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 bette= r > > 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. > I'll add this feature to the tap.c also (AFAIU this will enable the USO for macvtap). Please correct me if I'm mistaken. > > > > Thanks > > > > > > > } > > > > > > /* This gives the user a way to test for new features in future= by > >