Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5632619pxb; Tue, 16 Feb 2021 03:46:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvWBb34TzDlAKFAPy9nXLhvs/03/fae8xz92uslmmgyMdBrWaoqXwH5DqE9uN63vsgUT78 X-Received: by 2002:aa7:ccd4:: with SMTP id y20mr9250787edt.94.1613476012119; Tue, 16 Feb 2021 03:46:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613476012; cv=none; d=google.com; s=arc-20160816; b=ddh3VRBhHpRqVzOIVyo6R4oyWgXL8VYmyIspTfTUc3hMI45OmXHFtUgm2quDfDDZI9 FyvLlfDEKXWbAjH9/Af6EsqWEZTQs4/u4WMiPsOXJymIXU2yQwuUYhc6v8fkUbtUCX2S olzOWrWDrB3HPg2S80nDxfoQKcd9fQfrl+sEiVQ7uXvnl2WW3FD791+wd/jhxJHCXT56 jurCpbN+7TIHHC4NTe9OE3sltfUCGLfVxk0LwzHjXRRA+nMQ6aI/xcZS14+OopyENj5i CCf0DBZeUqb7BRl0WcTkeYtjMyNpSXrbaDlIui0IBdpLj2WPDgcoCD7hIVHDpETyIcHM ezTg== 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=xralHWq10yad+3ZzRtCdfg8UjsOR01nAwDxpY12p3411bmleEG4yZcEZWFVuNZAYGi aXp4qPJvQmw+ZJ1PEciv75D/CQCh1NxoycnYwZ00eZumIxMPC4zXxVWJKy2LqYzw3EhJ NFKGKee2e4zLzGfGPF627T0yyy5xdAcOMhoBONyrdqLImvDlCzNYWUGYmIGow/mQLGwa u+K+bUQ6Zqw8SHGijKugkVtrhgJZmSU8T8bCuMvO5hWywYs9CLT2v7b7K8/21obNrHkJ SVzpXj+dEOxcGMHDaXcQdpT6ETtlDvCmIywY8NwkVEZHUC2fMub2hQfGu5ZcV4j93AoT O31Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=kRikEzuj; 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 f23si14263886edw.418.2021.02.16.03.46.29; Tue, 16 Feb 2021 03:46:52 -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=kRikEzuj; 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 S230388AbhBPLpn (ORCPT + 99 others); Tue, 16 Feb 2021 06:45:43 -0500 Received: from mail-40136.protonmail.ch ([185.70.40.136]:63855 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230395AbhBPLjp (ORCPT ); Tue, 16 Feb 2021 06:39:45 -0500 Date: Tue, 16 Feb 2021 11:38:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1613475543; bh=lgg1wNkMT8XQOATCoVN+lIKDRAuSPLux4jRMr6UVN+I=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=kRikEzujlWdzrBVi4Dx0Xz5LhZzxIrb5LfYMfBGlM5nTOW+bUs+21MuBqmX1zmk9O jm2kJpBabl+dn67ZNrH+cl/gi7YEqL5rKup+LasdzlRtxirxiXAfMs8DS7O0a5iW1V 5zCxNBYgRj5sFRHxlenLBuldFWrGUsUfonFGIq3Kr1t4wy8KFV+1hVplUAGp6fbBAe p8dTqvXcRrhtnL8vmgWcShRBP02VdkhSp8RWPd4yEnfoMC0N7BFSAqLUdOnldqgTfN HVMlWjoc16wpi7PrapZZdZa0JCY43hfpuCqRGH7JaSgxH+Zf3AxtPhuxjlK8iI9hMG imErVytrMh7zA== 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 v4 bpf-next 4/6] virtio-net: support IFF_TX_SKB_NO_LINEAR Message-ID: <20210216113740.62041-5-alobakin@pm.me> In-Reply-To: <20210216113740.62041-1-alobakin@pm.me> References: <20210216113740.62041-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