Skip to contentSkip to conversation

linux-next: manual merge of the bpf-next tree with the net-next tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Sep 4, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the bpf-next tree got a conflict in:

drivers/net/netkit.c

between commit:

00d066a4d4ed ("netdev_features: convert NETIF_F_LLTX to dev->lltx")

from the net-next tree and commit:

d96608794889 ("netkit: Disable netpoll support")

from the bpf-next tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Signature · 16 lines
Cheers,
Stephen Rothwell

diff --cc drivers/net/netkit.c
index 79232f5cc088,0681cf86284d..000000000000
--- a/drivers/net/netkit.c
+++ b/drivers/net/netkit.c
@@@ -255,7 -255,7 +255,8 @@@ static void netkit_setup(struct net_dev
  	dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
  	dev->priv_flags |= IFF_PHONY_HEADROOM;
  	dev->priv_flags |= IFF_NO_QUEUE;
 +	dev->lltx = true;
+ 	dev->priv_flags |= IFF_DISABLE_NETPOLL;
  
  	dev->ethtool_ops = &netkit_ethtool_ops;
  	dev->netdev_ops  = &netkit_netdev_ops;
#1 lore raw

From: Stephen Rothwell <[email protected]>
Date: Wed, 4 Sep 2024 12:02:21 +1000

Quoted 14 lines

Hi all,

Today's linux-next merge of the bpf-next tree got a conflict in:

drivers/net/netkit.c

between commit:

00d066a4d4ed ("netdev_features: convert NETIF_F_LLTX to dev->lltx")

from the net-next tree and commit:

d96608794889 ("netkit: Disable netpoll support")

Quoted 8 lines

from the bpf-next tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Your fix is technically correct, but maybe swap the lines?

dev->priv_flags |= IFF_NO_QUEUE;
+ dev->priv_flags |= IFF_DISABLE_NETPOLL;
+ dev->lltx = true;

Looks more natural I'd say...

Thanks,
Olek

maintainer
#2 lore raw
Quoted 32 lines · Alexander Lobakin

From: Stephen Rothwell <[email protected]>
Date: Wed, 4 Sep 2024 12:02:21 +1000

Quoted 14 lines

Hi all,

Today's linux-next merge of the bpf-next tree got a conflict in:

drivers/net/netkit.c

between commit:

   00d066a4d4ed ("netdev_features: convert NETIF_F_LLTX to dev->lltx")

from the net-next tree and commit:

   d96608794889 ("netkit: Disable netpoll support")
Quoted 8 lines

from the bpf-next tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Your fix is technically correct, but maybe swap the lines?

  	dev->priv_flags |= IFF_NO_QUEUE;
(quoted diff) +2 -0
+	dev->priv_flags |= IFF_DISABLE_NETPOLL;
+	dev->lltx = true;
Quoted 1 line

Looks more natural I'd say...

Yep, 100%, we'll use that as merge conflict resolution when flushing the next PR, thanks!