🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22068

Re: linux-next: semantic conflict between the net and net-next trees

#22068
From: Antonio Quartulli
Date: Tue, 24 Nov 2026 20:18
48 lines
10687 bytes
Hi Sasha,

On 24/11/2026 15:56, Sasha Levin wrote:
> Hi Mark,
> 
> The current net tree has a semantic conflict with the net-next tree
> that breaks the build:
> 
>    drivers/net/tun.c:1881:11: error: no member named 'ops' in 'struct ubuf_info'
> 
> 3896ae4adf5f ("tun: complete the zerocopy buffer of packets consumed by
> XDP") in the net tree calls uarg->ops->complete() in tun_get_user(), and
> ecca9bb2c855 ("net: skbuff: replace ubuf_info ops ptr with type id") in
> the net-next tree removes ubuf_info::ops. The fix uses
> net_zcopy_complete(), as ecca9bb2c855 does for the same call later in
> tun_get_user():
> 
> diff --git a/drivers/net/tun.c b/drivers/net/tun.c
> --- a/drivers/net/tun.c
> +++ b/drivers/net/tun.c
> @@ -1875,11 +1875,8 @@ static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile,
>   			goto drop;
>   		if (!skb) {
>   			/* consumed by XDP, after copying */
> -			if (msg_control) {
> -				struct ubuf_info *uarg = msg_control;
> -
> -				uarg->ops->complete(NULL, uarg, false);
> -			}
> +			if (msg_control)
> +				net_zcopy_complete(NULL, msg_control, false);
>   			return total_len;


The resolution looks good to me and it's the one I noted below the ---
of my patch to net.
I build-tested net-next's tun.c with the fix and this resolution.

Thanks,


-- 
Antonio Quartulli

CEO and Co-Founder
Mandelbit Srl
https://www.mandelbit.com
Technical Details
Message-ID: <6dfdda89-8fb4-4a5e-992c-c59aae18f37c@mandelbit.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370732-linux-kernel-netdev=dewy.ru
References: <20261124145649.3656145-1-sashal@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370732-linux-kernel-netdev=dewy.ru
From: antonio@mandelbit.com (Antonio Quartulli)
Newsgroups: linux.kernel.netdev
Subject: Re: linux-next: semantic conflict between the net and net-next trees
Date: Tue, 24 Nov 2026 21:18:24 +0100
Organization: Usenet Network
Message-ID: <6dfdda89-8fb4-4a5e-992c-c59aae18f37c@mandelbit.com>
References: <20261124145649.3656145-1-sashal@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="30383"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:5PUJmjPvosynPuToPvSkAdr1x/0= sha256:HR7Th780iGw6xEn9VgNhoJvLTCviAgUunVKWMehUdXU=
	sha1:GxEH+fiyomvE+NjJEum68+Qnurs= sha256:CYcaarzfw+1CX2fAwhe6sGXTkDtuAM2psQUtgyVolqU=
Content-Language: en-US
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 49ED8125E2D; Tue, 24 Nov 2026 23:18:56 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=mandelbit.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id tWUX4kVeMcjf;
	Tue, 24 Nov 2026 23:18:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-370732-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=mandelbit.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 935E0125E2C; Tue, 24 Nov 2026 23:18:43 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 51C2A3B05A; Tue, 24 Nov 2026 20:18:42 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795551519;
	b=y92CyRzNoeqEqtwUCLMxIMPkMFeN4KkuFL8FqV4/y+CELBZbOYckJ0I7bQU3BUQuh9q9
	 sYbjvqb0CjVuB9DVJJArIBkgI0qrsA67AOfsxN/M2Dzube4FLHqHNFh8VYEhrrsPclUtj
	 ot97tMU/KupLXkN1iH/N8DTJ0U0IQfxWj+95hSob4XnUYuCSDL2GU7w53JKCbhk4a+Ijs
	 Nb93bPuhhAFUD/XIQP3ofauV3e+uKRUllivLSHY+B8zwBhnb5EaqNcXBU2nvZh1ulwAsr
	 bgEGolkKScJHfMgnlpt1E1GYNoXmRVOAKOAHUlA6RXgzXUhpM5DhzdyANdZB1ZOnSRg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795551519;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 User-Agent:Subject:To:Cc:References:Content-Language:From:
	 Organization:In-Reply-To:Content-Type:Content-Transfer-Encoding:
	 X-Rspamd-Queue-Id;
	bh=4puQvfklgbgZN8wo3WRm6SzX7yDftXFTvRpNjUqCEMk=;
	b=LQcE9lZ07rPdkBeGXe97+3P3jJRQ+Q8OpU1R90d6hcA+J9f9eOKoIojxJiXvLU3QbBvC
	 l3g1JaUQNZGsAGXX0A/cbFMi1/Broy/bO6PvgDWbgyyrHVx3IItZa0atKcdIo2v4EDoll
	 KSesqZTvUFrTQGNn90X8kV2XcSQMhyOuZG3yN/1ZCz+ChoB8Hg+xWMcKRjBbeaPkM1pjX
	 V14y/JEHBoAZ+omvxVOqqvtjZzs8CKw5KRW9RvThQ6+I886JIWMHhfmU56UWmqHNuADuG
	 UZ6AfOr4LmFhbbl1SbVBKTsvDkIxz1DeqACD6gdWCzXpoHA/d5YVMGzxczFazniY9dg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=u5Bg2Jp4;
	dmarc=none header.from=mandelbit.com;
	spf=pass smtp.mailfrom=mandelbit.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id B0540606A329;
	Tue, 24 Nov 2026 20:18:39 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=u5Bg2Jp4
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.10.208.47
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795551513;
	b=eNqUiDQHmwb52AUdBYU5/1xNiLSNgiYr4BDamo5iIaQ9P/VM8ECvGWw8PZ2wOez8UAIj
	 bCoOJAQ3MFdrSebD2ZngGh6wVsDoN9cGt9PQteLI+wGkZXsSWPp1AqfYJBZ2Tj586PcRW
	 G56JurlfuHVz5ZdWJI+hWy4uTq1beYIuRwYMLaK1c9SHvUBMK0bgVuVjof3xq5ciklRdl
	 GSLcEGu8LFyyBvMHTCQ/AOwrGXxjm1FkuVhqhOrfrUkzIGw7Y5ypw2HeH3TtoagWJvpeD
	 L18kF7n03ROInOIkG4nCSBAiqAf79kxjCYVByy61FJnrxJPjOhZc8/VNMsj26YyY0vg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795551513;
	h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Date:MIME-Version:
	 User-Agent:Subject:To:Cc:References:Content-Language:From:
	 Organization:In-Reply-To:Content-Type:Content-Transfer-Encoding:
	 X-Rspamd-Queue-Id;
	bh=4puQvfklgbgZN8wo3WRm6SzX7yDftXFTvRpNjUqCEMk=;
	b=je8mQY8vn/FUIuz/XaT0wvYrBSssfXumIfn2c/XUWqx8VCQ4cIX/VFX5WHL9YAxWxetW
	 D+/M3kpzaVdsCOugIfBw1vicQv+cbVzC9NorTZjaHp/yzpaQiJq41DgKcI636i6O8iMC+
	 b9vykfDHI3YVo1JdyoYva0EEqnY0kZfr6FWQrhHd9j5Xx5Dm8JAoolSCjR/Purk6CM9LS
	 /neiHSDJeVT5fyvnJlpqUXxrm1hDhet30UaYxFgGFlq+9xeMv50AdPPea5sTFi0Zr7LAZ
	 tyAFOQ7yfFl07RmYFO7c3tLiZu338Y/+OkJRAUitOa+Ctn1dE6UPMT1NTPutMXNa6XQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=mandelbit.com;
	spf=pass smtp.mailfrom=mandelbit.com;
	dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=u5Bg2Jp4;
	arc=none smtp.remote-ip=195.10.208.47
X-Received: from mout-b-107.mailbox.org (mout-b-107.mailbox.org [195.10.208.47])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FFB5606A32A;
	Tue, 24 Nov 2026 20:18:31 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9FFB5606A32A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mandelbit.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mandelbit.com
X-Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by mout-b-107.mailbox.org (Postfix) with ESMTPS id 4jYvJg2lD9z3ySt;
	Tue, 24 Nov 2026 21:18:27 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com;
	s=MBO0001; t=1795551507;
	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:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=4puQvfklgbgZN8wo3WRm6SzX7yDftXFTvRpNjUqCEMk=;
	b=u5Bg2Jp4KrgVJtIxR/vBm8BPjV+r64hSI4DI8oyKcMt8WYCDmjdIaoyWWTllbvRRQiPBj5
	hjqnwdUqcvohM2cmAc3x5KS3ckZn2yHMsGbn8ddmFthivZzuATHwG7i9x4x846wsx3aJzk
	qt6gxJhmbMs2e/bhJx7A1A9oRKWdJS6BWDDVkEf7DLdOo3GqFbIYxNrIala/xz81YcaQEg
	8YlRXPTWGzV3w1GJV+bUH7lDyaI40zIZ9ajREo/82sAi5avLPL9Rn7o9QnXx+7IN4V4aiO
	/3l7GhgHcJGR6oLlQSbOVdWoqznWzn9/wdZHPzuncwR7e5WHJsLSRNwC+uVQwQ==
X-Authentication-Results: outgoing_mbo_mout;
	dkim=none;
	spf=pass (outgoing_mbo_mout: domain of antonio@mandelbit.com designates 2001:67c:2050:b231:465::202 as permitted sender) smtp.mailfrom=antonio@mandelbit.com
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Cc: Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
 "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>,
 Willem de Bruijn <willemb@google.com>, Jason Wang <jasowangio@gmail.com>,
 netdev@vger.kernel.org, Linux Next Mailing List
 <linux-next@vger.kernel.org>,
 Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
X-Organization: Mandelbit SRL
X-In-Reply-To: <20261124145649.3656145-1-sashal@kernel.org>
X-Rspamd-Queue-Id: 4jYvJg2lD9z3ySt