mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* linux-next: semantic conflict between the net and net-next trees
@ 2026-11-24 14:56 Sasha Levin
  2026-11-24 20:18 ` Antonio Quartulli
  0 siblings, 1 reply; 2+ messages in thread
From: Sasha Levin @ 2026-11-24 14:56 UTC (permalink / raw)
  To: Mark Brown
  Cc: Jakub Kicinski, Paolo Abeni, David S. Miller, Eric Dumazet,
	Willem de Bruijn, Antonio Quartulli, Jason Wang, netdev,
	Linux Next Mailing List, Linux Kernel Mailing List

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-24 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 14:56 linux-next: semantic conflict between the net and net-next trees Sasha Levin
2026-11-24 20:18 ` Antonio Quartulli

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®