Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp37028pxb; Wed, 20 Jan 2021 00:08:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfHAWHADhtH/HhPaaw1n0Ja/7AULoJnLQKhGvB6Dhvw/xskNY4rsQiIZCz4Al351BxhkQZ X-Received: by 2002:a17:906:c793:: with SMTP id cw19mr5227481ejb.246.1611130115639; Wed, 20 Jan 2021 00:08:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611130115; cv=none; d=google.com; s=arc-20160816; b=EhOfx0BnUHqo2tzb5JhCPgsvJCQn8MuvyqLUVmyaXaZU7vPpM3TU83geU3iBomoeqf 2h5aJWnK5N2tfl3ADFwQlbMje4Ff2Sm6FKi6GaOsnEqxikt7if4EdmywJ5Z9cVs8LxzU E0yxyw2Hrxd7OMdNbkCzRSjhNOpykQbeIdGVFqkoQmv3N5C28CNacbxcSLhAPSrKBFW3 eiHpnBmOvHi+6EsEnL4Qa5WnUML0Sj9/HbJGm/fsdvObtPRy0LBYCZI+tk+OWNrzhiYE RvzlmAqxa4LIpzyT86ulzPOdb8qkYvq0qCbRTsfRyioiXvLNv1YuEE6iedKAFFKXMcct wriQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6UrxbpNYHnK4DEP6WSgA1c696nQ5LZj2MHb845FTR0o=; b=KT4M6TYIpdMcDT7DxwxoRq/aStGY+iU91gPxqAe/sdDzAQU3vcJK9pYgKqGc8BO6wx uMtly4dANWpVln4DUw0vlD7wS19z65M8D5SH54b6ol3Ldt2DhxGbIFrD5Hdv8YXrp1AD v+c+JHdAyHMpnr3BrqKdMq462yHS0+5NNssZenBQ7+ETIXrc9iohwyowdlwKfpWDPn2+ J9UnVtEQP2FNej2r7YETDrUj/sTmznKxgQ3ZEzjkh9hhH1XAktz6xoTbuG2moMA0C3oV VQUi8iazDPEt03Yk3jJDdETdDrS+3+kxG2GorrVr7cKFiJlEp40pWnOTSrl2T+r0EPnm K/fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="JfaiPu/T"; 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 c11si531558edy.313.2021.01.20.00.08.12; Wed, 20 Jan 2021 00:08:35 -0800 (PST) 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="JfaiPu/T"; 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 S1730182AbhATIEy (ORCPT + 99 others); Wed, 20 Jan 2021 03:04:54 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:44012 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729882AbhATH7I (ORCPT ); Wed, 20 Jan 2021 02:59:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611129462; 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: in-reply-to:in-reply-to:references:references; bh=6UrxbpNYHnK4DEP6WSgA1c696nQ5LZj2MHb845FTR0o=; b=JfaiPu/Ton8/Of7IxLmCwZ1eB5RJt5u+/eW7JyxyVxouHCDfLt/KUxbVLI1lLaY69C9jNa rU1Q43WsLRQ+oavZ004yx50VUrtCIdOga3zxZSwbyF27P/ijYaimQeNbYe8ZhAvV+YRJBG v1wEptLCLXXmM7Y09vynoewdnbsLfBU= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-152-Dc10x5oSNyayWwptRQqWGg-1; Wed, 20 Jan 2021 02:57:40 -0500 X-MC-Unique: Dc10x5oSNyayWwptRQqWGg-1 Received: by mail-wr1-f71.google.com with SMTP id x12so92096wrw.21 for ; Tue, 19 Jan 2021 23:57:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6UrxbpNYHnK4DEP6WSgA1c696nQ5LZj2MHb845FTR0o=; b=GLTGzuG4PYlvt43wtIZZeGCaZ+7h51qGqaMfGA76rvhLVhKhmVJ201WTcecd5q2GY0 tsMVjSd7TZqQTV6YcZZkVi9ay+wh+GtT7rXS3INM56D8q8WjT5cetjsUBE9n05fHD6gp roVoCKyZ2qUAXlz91DWOXugluy6WOs6gTJW/aYswSFPhA8IMwO3FD19r5X5ziWt/sfZL 6UJqKX/1fzt0Hpyb0cPEEjAA9zY+RjqPPoweSXV5R3VN+hV3+ERzzZSLMQfMNifCO6QP eQQZlCeFZqqAajKFWsWCzZy/QYdrrviZUJ+ZVq5KSC3iS7Qpzq8ElPi14bEPtzmTiTOk BX/A== X-Gm-Message-State: AOAM530IyFePbtpD7AG81IWJOpWBpYnrSDLFJEDX/m5fepzGDtJqixYJ nkFg1NPwXUfYDqjunyzH9lalc1omdEmVS0CWi5RKof1uNvIPBT63gXfi3eFgpR83IYpBi98Npyn XLtAlG+FFPTnjb2exNpGzKVtX X-Received: by 2002:a1c:a784:: with SMTP id q126mr3058486wme.52.1611129459057; Tue, 19 Jan 2021 23:57:39 -0800 (PST) X-Received: by 2002:a1c:a784:: with SMTP id q126mr3058476wme.52.1611129458879; Tue, 19 Jan 2021 23:57:38 -0800 (PST) Received: from redhat.com (bzq-79-177-39-148.red.bezeqint.net. [79.177.39.148]) by smtp.gmail.com with ESMTPSA id k9sm2510093wma.17.2021.01.19.23.57.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jan 2021 23:57:38 -0800 (PST) Date: Wed, 20 Jan 2021 02:57:34 -0500 From: "Michael S. Tsirkin" To: Xuan Zhuo Cc: Alexander Lobakin , Jason Wang , "David S. Miller" , Jakub Kicinski , bjorn.topel@intel.com, Magnus Karlsson , Jonathan Lemon , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , virtualization@lists.linux-foundation.org, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 2/3] virtio-net: support IFF_TX_SKB_NO_LINEAR Message-ID: <20210120025729-mutt-send-email-mst@kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 03:49:10PM +0800, Xuan Zhuo wrote: > Virtio net supports the case where the skb linear space is empty, so add > priv_flags. > > Signed-off-by: Xuan Zhuo Acked-by: Michael S. Tsirkin > --- > drivers/net/virtio_net.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > index ba8e637..f2ff6c3 100644 > --- a/drivers/net/virtio_net.c > +++ b/drivers/net/virtio_net.c > @@ -2972,7 +2972,8 @@ static int virtnet_probe(struct virtio_device *vdev) > return -ENOMEM; > > /* Set up network device as normal. */ > - dev->priv_flags |= IFF_UNICAST_FLT | IFF_LIVE_ADDR_CHANGE; > + dev->priv_flags |= IFF_UNICAST_FLT | IFF_LIVE_ADDR_CHANGE | > + IFF_TX_SKB_NO_LINEAR; > dev->netdev_ops = &virtnet_netdev; > dev->features = NETIF_F_HIGHDMA; > > -- > 1.8.3.1