Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3260537pxj; Mon, 10 May 2021 23:53:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjvPxDov9aWKF+qQeCn4+83qRYgsnp5gd4nyIhASn9AIk3QwF1+nOtGC58vOiiKksXkoYz X-Received: by 2002:a17:906:2ed0:: with SMTP id s16mr4621532eji.543.1620716023174; Mon, 10 May 2021 23:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620716023; cv=none; d=google.com; s=arc-20160816; b=WtwdKSBwVwPAJoRy8IeT/Wrh4OZ4aWuWPwCME7trKtuxbi4V39ieELu6lQFYhdjMNG XYw3YQOa56t8YaF3e6JvbcivrBGUWjX+7iu2hZSTw37bCrw3xcqVm8ZXlpNWUk10MPj4 JPTcD6ORIt6APSq7vyxJDzHyVsFCKbyjug8An2PpHCPrMYhnIdAI820KdUcMfqtPu3XX 91N7d63lCbFX11FqZaBhD1/njmNwD4bPbw4HKyf1BMFzEGOnCwEmm5N8nNOs53XeooAY jYHm2OIErqEqmiuQE52JG353hvzMoYn673d/iDTNGF8HdhUCGr21rF1OIayzJx4pfLN/ qp/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=umA1WrHOFiVlBbjKzKntHglDQdg2BgS3oCexgpceoV4=; b=XZUyXX2C2YQydOoz/RbIBV2d4Ramtn4woMYE7g7R3j0aDiEcRxN5W6Ng/2e0Q+PA/2 +8D5l2b0ZFeqVRSqV+TBdxhxnMqtMF2B11qYeWU9Q4EHzNJtJsOQUiwby5TJhjTISbr1 kUfs9CjNkMRFaBPqziNQPD3tt/Qh7jLybUUkAcFs/lp3Hcif+TlxRfsRsyvG7g0cyeDo 95+AW6lRp6aQ6NjgtOTpfBy6PTIAQuJ7HIaSXa6wJ5d4yYO1lXZpxcMEDP8M0rjwxE7K 8tIKUyAbPRvIZTPag98C8D7V+1g1maFTQt1WO7UxSJ7zRZrg7QyGXzEqiw7H1yDm6W3o +v4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=C3hZ1C9Z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd5si12118558ejc.395.2021.05.10.23.53.19; Mon, 10 May 2021 23:53:43 -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=@redhat.com header.s=mimecast20190719 header.b=C3hZ1C9Z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230406AbhEKGvV (ORCPT + 99 others); Tue, 11 May 2021 02:51:21 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:26254 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbhEKGvU (ORCPT ); Tue, 11 May 2021 02:51:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620715814; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=umA1WrHOFiVlBbjKzKntHglDQdg2BgS3oCexgpceoV4=; b=C3hZ1C9ZulrWTPUKToIwD6r37MfnNgVc4uCAa4DH0Yenaq2lqYqGxSdTOZ0DjNp7iYuqUR p3OigLjZUlG2K1Pm+gVHZMXqRPODIyoydNZlERGKSkhrEKg234Mo7nfTJyNjV4DdqTR1+c DeojI2FANWxh6RK9dl+eHvv0pC4gvoQ= Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-548-KRntNO8cMueaNrSayMngAQ-1; Tue, 11 May 2021 02:50:11 -0400 X-MC-Unique: KRntNO8cMueaNrSayMngAQ-1 Received: by mail-pl1-f197.google.com with SMTP id n18-20020a170902d0d2b02900ed5de16a2dso7132709pln.13 for ; Mon, 10 May 2021 23:50:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=umA1WrHOFiVlBbjKzKntHglDQdg2BgS3oCexgpceoV4=; b=GcFox3kBf981sHfNDWh/nyxat7+qMQ+1bhF1iZNTxUanUxE2th/6tTrAl3t6f1Z8sV mOssA2K3dbDvGW9vIEhZtNu1wAX6ZhmW7JGZgnpd7QKmaSEANMu4G0BkxaedmZwovTH4 FhFKZH0CvsaccFSDJ5oGPI4FWfM8Jr8vafSTzeRsxyNdbKA/WlFWL8s0KHh4nuPRHev3 HYWxlFeH4GznBVzGhDkdAPKurBxXRiVXQMs834ROGhRhIZ2TcKgEsG4GimIyA3XX9I0q 56pIdP+Fudf9vqzCa6alawE5HXLpum1WFsx71yXV4Zm0aBJSmCgFShJxdjY/prCxITNe f4xQ== X-Gm-Message-State: AOAM532sXzJZLu+y6vQTqZp0nMaKcCN74x6p5mY1Bp9VSowulkvAWzT1 teWNe5DpffhASis7co/413rSBumkiiWmj9hvXAEskizygU0hEumAtY+Y39odpn/yA6skY0ajdlL DSpi7l314gDqzP6d4KbDPUHxf X-Received: by 2002:a17:90b:184:: with SMTP id t4mr3416779pjs.223.1620715810243; Mon, 10 May 2021 23:50:10 -0700 (PDT) X-Received: by 2002:a17:90b:184:: with SMTP id t4mr3416761pjs.223.1620715810062; Mon, 10 May 2021 23:50:10 -0700 (PDT) Received: from wangxiaodeMacBook-Air.local ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id j16sm13601256pgh.69.2021.05.10.23.50.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 May 2021 23:50:09 -0700 (PDT) Subject: Re: [PATCH 4/4] tun: indicate support for USO feature To: Yuri Benditovich , davem@davemloft.net, kuba@kernel.org, mst@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Cc: yan@daynix.com References: <20210511044253.469034-1-yuri.benditovich@daynix.com> <20210511044253.469034-5-yuri.benditovich@daynix.com> From: Jason Wang Message-ID: Date: Tue, 11 May 2021 14:50:01 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210511044253.469034-5-yuri.benditovich@daynix.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2021/5/11 ????12:42, Yuri Benditovich ะด??: > 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); It looks to me kernel doesn't use "USO", so TUN_F_UDP_GSO_L4 is a better name for this and I guess we should toggle NETIF_F_UDP_GSO_l4 here? And how about macvtap? Thanks > } > > /* This gives the user a way to test for new features in future by