Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by Sasha Levin
Tue, 24 Nov 2026 14:56
linux-next: semantic conflict between the net and net-next trees
Author: Sasha Levin
Date: Tue, 24 Nov 2026 14:56
Date: Tue, 24 Nov 2026 14:56
36 lines
8692 bytes
8692 bytes
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;
}
} else {
--
Thanks,
Sasha
Re: linux-next: semantic conflict between the net and net-next trees
Author: Antonio Quartulli
Date: Tue, 24 Nov 2026 20:18
Date: Tue, 24 Nov 2026 20:18
48 lines
10687 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads