Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7540732pxb; Thu, 18 Feb 2021 12:54:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyL0nuIoSCNMGY0wzkDsNUuHhtBeoW2msKtIsjnP9ulV5m9LRJdUlvyFz+3loSRXP5YulSS X-Received: by 2002:a17:906:c444:: with SMTP id ck4mr5911927ejb.156.1613681697879; Thu, 18 Feb 2021 12:54:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613681697; cv=none; d=google.com; s=arc-20160816; b=wN1fJtlXmmGjXhS7wtDj5GPwRwxHBd4dHul2GvoBVAm9A+utH8BxBJm/uLQzGO6Avz K4cULtRIjcYXXXsYHCmCvWpXR7QalwLu/9rvKYyxZ2SdYXrsfBD8Ff+KTaTc2a6UM3x1 1Cj8YhyNdNk1l567v47NXSjdPS7ni5IaLk+hdsHl0zfXyNRH973QwCL2oN7LcLrKe0mf mq4tjZeVMz52MhArw+F3NhXqyvCBsLFrNAzUV3r6gfX/It7tVFGrDEx76IfCp9HBch0F VvyWdQ51nX4TF2BM9G5cH6CVs15fHKZe/vEXoh/HoUoxITRp0vSnKX1x97mmu2xQB0qy i7fA== 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=nvb2yx8DAQSWWcjoTwgm5AP3LHJtzlTi3X02uTTAjO0=; b=ttNNl7qafsoo9YBsJjIRNM61KUUfaoQxES75fvyVay6L26dvr+cyjlsPchJewpZzkk cEt0/eLnZGvy8hDEjETOkWM6LhN6pF2fJWp5MapfhcDK/ZyVLEENpeqdluOJDOUsrIb2 eG+dAVVnPoezqlJNuQTst1w061gFQhF6GF9wGMO6WnUBdsARLmf0lKLFC8ZS/48B3Sxc sr65B1mL29M3vrRI+4o6G67CHnmmg0Z2GhKxEfWvzhqjoKrYPh3oHmGTGpONozjmcBtb UqZMsaZjTuzYnhKkKCwbgljUPgwuvPQ36Rxge0REK+rzrhq0ZuSclhVm71CkVZ2IuItx ATdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=bjUASJEJ; 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 gb20si4187920ejc.183.2021.02.18.12.54.31; Thu, 18 Feb 2021 12:54:57 -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=bjUASJEJ; 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 S230489AbhBRUvt (ORCPT + 99 others); Thu, 18 Feb 2021 15:51:49 -0500 Received: from mail1.protonmail.ch ([185.70.40.18]:54149 "EHLO mail1.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230172AbhBRUvG (ORCPT ); Thu, 18 Feb 2021 15:51:06 -0500 Date: Thu, 18 Feb 2021 20:50:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1613681418; bh=nvb2yx8DAQSWWcjoTwgm5AP3LHJtzlTi3X02uTTAjO0=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=bjUASJEJZpVOK3U8eOaxIx7AQETLm4KBLHSNpWpoE+Q2dy76YRTXZis9tFDicFGUG YqD+gKmNSKojjy1YVZou7MpSnrzgxtyJLttJnYwHwOiQ7r50/pGUZfByj41FdhoKWT QakuOv57clNV7tUMsBd+0vaRlFKOtD0SZKXe3OTm/UFfcEVVWWe1SkjMKNUC3GmptP 9TDLJiZicwLzZpT+DXJH8jEf52j9vz+miTl+PRG3GozSTSp3WuBrOD+IpFLoRY1sGh iXaaGX113Xplqxtu6r9KVQUJgr6n4BeHtvjcGZFp0Ez1HsjE8HCUDm5qYms/FzlJc9 s632M29CivQyw== To: Daniel Borkmann , Magnus Karlsson From: Alexander Lobakin Cc: "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Jonathan Lemon , Alexei Starovoitov , =?utf-8?Q?Bj=C3=B6rn_T=C3=B6pel?= , 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 v8 bpf-next 3/5] virtio-net: support IFF_TX_SKB_NO_LINEAR Message-ID: <20210218204908.5455-4-alobakin@pm.me> In-Reply-To: <20210218204908.5455-1-alobakin@pm.me> References: <20210218204908.5455-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 Acked-by: John Fastabend --- 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; =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; -- 2.30.1