Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5745054pxb; Tue, 16 Feb 2021 06:40:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwv7fSRWY71e3AsZEPfQs0j28U51IWGqTsIeFuRGldCBBflX+fSBvJ5YzleP8wcBt8Frt9p X-Received: by 2002:a17:906:17d7:: with SMTP id u23mr20872074eje.390.1613486429841; Tue, 16 Feb 2021 06:40:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613486429; cv=none; d=google.com; s=arc-20160816; b=M75/U/hXqFN9SKhA0lMkhBdan1fnQt9bR2ycpUMxqT7SbmLju0dZ5CNScdst/yyGJJ UTxtl9MHjL7DvU+UUNnZEgVLsvoDTXuo18e2NfAKd6Q8qPufFGtUAKO9CDT3z61Ligaa r5TXLe87aeVVhyvaFgMeDtoB44b5COlWluSwO2vrTtbOYJ8K5dowxIPSEQE3MZkM4aSW dB5cgIa9QWao1JOEBOWGkoy7y4pAXq10cdwOleFCaP1LxukzLudV95qQ34QcgjKNSlYn QFmP0x2wgnYC20QhGzjbpjuFzHvEpOkyH8w8OqtXmfsiSdvfDr+IIcqAnv9xplN3sTWb t/iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=lgg1wNkMT8XQOATCoVN+lIKDRAuSPLux4jRMr6UVN+I=; b=vy0WClT1z2Sqxjtz8ZrQoXZsklwZY0X+P5Vq8oNrGBg4bJMFPfuMWIWc49unC1dPcJ QZQ/tTXt7Tgoi7KcisZin6c7Ei/gRmkDLkISelwqXr+UvFXGFH9c+tiUufMPtGhfOvvg lc+x4dNvgC8xTiO/UHQZ5KV/nOHNz/SH2np9U5qh5aoI5JwvIJJxgDgWWdCQphq4JH0t o7YTrS8kuIpt2IAjlkhIc2QWgCDmDVv+Z88HNUfEaw+ZUldP0V58nVxsj+i3PmJb4vkj 6pMOl8+r3+L9IKpcpNPBuRVP9OnX1PikCBrmVVyz/U4P+70xzyN2bAHZOCsT0Qt/kjDE uNQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=n3+ZZewh; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb10si13982739ejc.75.2021.02.16.06.40.05; Tue, 16 Feb 2021 06:40:29 -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=@pm.me header.s=protonmail header.b=n3+ZZewh; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230473AbhBPOhs (ORCPT + 99 others); Tue, 16 Feb 2021 09:37:48 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:53165 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230336AbhBPOfc (ORCPT ); Tue, 16 Feb 2021 09:35:32 -0500 Date: Tue, 16 Feb 2021 14:34:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1613486083; bh=lgg1wNkMT8XQOATCoVN+lIKDRAuSPLux4jRMr6UVN+I=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=n3+ZZewhVF2gv5WzYKrGyZ+FQUQzcddVc+ZixijiqEj+LEY0b4hinVo/gu/NhpJk7 zU1ytXnLhMiX5Tz1y9wIb5PsYIla6Can2VQF0f5dFvx402pJ0qghGQY3JYGSR/eYJf HYkzCdeknwMSK9qEd7YqZAcVuaS9vZU/4GRlriSxVV/z+TYUswblA4y/QBM9A6iq43 nUFRZg1XYSya/me4EPkjUX4xj/n4McwQYrLztj+Eb47NTZwaN8yVI4Yk0fXtdHG3PW mYTGLZBD7x7ytCiVEOrwA1cB/MS2Hwn2mYfOX60y3rIpbyCweP71Mz2ZMe7FN/Jkd2 O7HIwMR/z0zpg== To: Magnus Karlsson , =?utf-8?Q?Bj=C3=B6rn_T=C3=B6pel?= From: Alexander Lobakin Cc: "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Jonathan Lemon , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Paolo Abeni , Eric Dumazet , Xuan Zhuo , Dust Li , Alexander Lobakin , virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH v5 bpf-next 4/6] virtio-net: support IFF_TX_SKB_NO_LINEAR Message-ID: <20210216143333.5861-5-alobakin@pm.me> In-Reply-To: <20210216143333.5861-1-alobakin@pm.me> References: <20210216143333.5861-1-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xuan Zhuo 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 Signed-off-by: Alexander Lobakin --- 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 ba8e63792549..f2ff6c3906c1 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) =09=09return -ENOMEM; =20 =09/* Set up network device as normal. */ -=09dev->priv_flags |=3D IFF_UNICAST_FLT | IFF_LIVE_ADDR_CHANGE; +=09dev->priv_flags |=3D IFF_UNICAST_FLT | IFF_LIVE_ADDR_CHANGE | +=09=09=09 IFF_TX_SKB_NO_LINEAR; =09dev->netdev_ops =3D &virtnet_netdev; =09dev->features =3D NETIF_F_HIGHDMA; =20 --=20 2.30.1