[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <eb8c4984-f0cc-74ee-537f-fc60deaaaa73@redhat.com>
Date: Tue, 11 May 2021 14:50:01 +0800
From: Jason Wang <jasowang@...hat.com>
To: Yuri Benditovich <yuri.benditovich@...nix.com>,
davem@...emloft.net, kuba@...nel.org, mst@...hat.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
virtualization@...ts.linux-foundation.org
Cc: yan@...nix.com
Subject: Re: [PATCH 4/4] tun: indicate support for USO feature
在 2021/5/11 下午12:42, Yuri Benditovich 写道:
> Signed-off-by: Yuri Benditovich <yuri.benditovich@...nix.com>
> ---
> 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
Powered by blists - more mailing lists