mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Antonio Quartulli <antonio@mandelbit.com>
To: Sasha Levin <sashal@kernel.org>, Mark Brown <broonie@kernel.org>
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>
Subject: Re: linux-next: semantic conflict between the net and net-next trees
Date: Tue, 24 Nov 2026 21:18:24 +0100	[thread overview]
Message-ID: <6dfdda89-8fb4-4a5e-992c-c59aae18f37c@mandelbit.com> (raw)
In-Reply-To: <20261124145649.3656145-1-sashal@kernel.org>

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


      reply	other threads:[~2026-11-24 20:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 14:56 Sasha Levin
2026-11-24 20:18 ` Antonio Quartulli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6dfdda89-8fb4-4a5e-992c-c59aae18f37c@mandelbit.com \
    --to=antonio@mandelbit.com \
    --cc=broonie@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=jasowangio@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sashal@kernel.org \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®