Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp28669pxb; Tue, 19 Jan 2021 23:53:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKmKi3hWNrkjwbYlOzyPONrlmrX8DA5OdMG1Dnak80ie76F+2IfcEGkw39IICVRDusC31I X-Received: by 2002:a50:fb04:: with SMTP id d4mr3011793edq.315.1611129183581; Tue, 19 Jan 2021 23:53:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611129183; cv=none; d=google.com; s=arc-20160816; b=cHtD2Wphgnlhdo5vDJJe1gm9ZCBRoyrts8VTPmXEMDls8nwivO4a4eMrt+7b/J9m+x Lt81BSfT1loPf0o+UvbitfYxrDmlW6ZH7/hGSSt6aelYO9FEDgRh7eKh4VKwxb85jW7V NvTb2XK20e8yslAOZgk9rLZZ2CSUqRLGaaU3RkoxaYGtCE6LUc0EObl7G3TKX/9FmEuY VKhyn8YcNRoO5WEpKJtbc+FfaAKo6tQeg4dZ/HbqZr3J/aMrIqFOcs9eOVtDf6A2Tx4z +ms55AcCM8EIFhFT8E1nD7s7ZIszUaSxteQgVYU11xc5PhmrhMk8Js0LGVtMY3Qw3yQ6 y6JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:cc:to:from; bh=QL+kxeu6GaGYsjJsRHU13fqgOKYvmIGEYQhhs9YuF+Q=; b=Wc2uA2XD9POpwTjSB9IoRdhHT4wYhZzE+VeXmFDl/SfiNOnhZGhf9ukVhRUoy0bamt Yi7iiA95QmhekzvrBhfHTVLJGcXmn4oKmo6H4u7VgXGx+g1Koe88D7FIszAMiOUG+AJv P1dzBgyMlavDXGfo43T9RE4DdWp7Ec5lnJZrnsb8gs22HSlaYNBgzMsdNPXBmt4FkbTP dlQ5gZR3wb6pEZS0+R3qZ2mK+ir/duvYka9E3oNa0ywJDI/1FiSzjnNKj+WS8bBOeQSO SKHOd4QDyWtmNmZUhFGoL9Cu1tNs2Y9/9q6b/yFs1Ep+tTkS5tVKsN7ZNLuXqUbAYtSb LfOw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs44si451345ejc.391.2021.01.19.23.52.40; Tue, 19 Jan 2021 23:53:03 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728855AbhATHvq (ORCPT + 99 others); Wed, 20 Jan 2021 02:51:46 -0500 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:45826 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729214AbhATHuB (ORCPT ); Wed, 20 Jan 2021 02:50:01 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R981e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=xuanzhuo@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0UMJCsM0_1611128950; Received: from localhost(mailfrom:xuanzhuo@linux.alibaba.com fp:SMTPD_---0UMJCsM0_1611128950) by smtp.aliyun-inc.com(127.0.0.1); Wed, 20 Jan 2021 15:49:10 +0800 From: Xuan Zhuo To: Alexander Lobakin Cc: "Michael S. Tsirkin" , 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: [PATCH net-next v2 2/3] virtio-net: support IFF_TX_SKB_NO_LINEAR Date: Wed, 20 Jan 2021 15:49:10 +0800 Message-Id: X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <20210119142726.4970-1-alobakin@pm.me> References: <20210119142726.4970-1-alobakin@pm.me> In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Virtio net supports the case where the skb linear space is empty, so add priv_flags. Signed-off-by: Xuan Zhuo --- 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