linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the net-next tree with the char-misc.current tree
@ 2017-02-01  1:11 Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2017-02-01  1:11 UTC (permalink / raw)
  To: David Miller, Networking, Greg KH, Arnd Bergmann
  Cc: linux-next, linux-kernel, Dexuan Cui, stephen hemminger

Hi all,

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

  drivers/net/hyperv/netvsc.c

between commit:

  433e19cf33d3 ("Drivers: hv: vmbus: finally fix hv_need_to_signal_on_read()")

from the char-misc.current tree and commits:

  0b307ebd6834 ("netvsc: remove no longer needed receive staging buffers")
  46b4f7f5d1f7 ("netvsc: eliminate per-device outstanding send counter")

from the net-next tree.

I fixed it up (I think, but I have no idea what this code actually
does :-) - 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.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/net/hyperv/netvsc.c
index 86e5749226ef,5cfdb1a1b4c1..000000000000
--- a/drivers/net/hyperv/netvsc.c
+++ b/drivers/net/hyperv/netvsc.c
@@@ -1289,74 -1245,25 +1245,29 @@@ void netvsc_channel_cb(void *context
  	else
  		device = channel->device_obj;
  
- 	net_device = get_inbound_net_device(device);
- 	if (!net_device)
- 		return;
  	ndev = hv_get_drvdata(device);
- 	buffer = get_per_channel_state(channel);
+ 	if (unlikely(!ndev))
+ 		return;
+ 
+ 	net_device = net_device_to_netvsc_device(ndev);
+ 	if (unlikely(net_device->destroy) &&
+ 	    netvsc_channel_idle(net_device, q_idx))
+ 		return;
  
 +	/* commit_rd_index() -> hv_signal_on_read() needs this. */
 +	init_cached_read_index(channel);
 +
- 	do {
- 		desc = get_next_pkt_raw(channel);
- 		if (desc != NULL) {
- 			netvsc_process_raw_pkt(device,
- 					       channel,
- 					       net_device,
- 					       ndev,
- 					       desc->trans_id,
- 					       desc);
- 
- 			put_pkt_raw(channel, desc);
- 			need_to_commit = true;
- 			continue;
- 		}
- 		if (need_to_commit) {
- 			need_to_commit = false;
- 			commit_rd_index(channel);
- 		}
- 
- 		ret = vmbus_recvpacket_raw(channel, buffer, bufferlen,
- 					   &bytes_recvd, &request_id);
- 		if (ret == 0) {
- 			if (bytes_recvd > 0) {
- 				desc = (struct vmpacket_descriptor *)buffer;
- 				netvsc_process_raw_pkt(device,
- 						       channel,
- 						       net_device,
- 						       ndev,
- 						       request_id,
- 						       desc);
- 			} else {
- 				/*
- 				 * We are done for this pass.
- 				 */
- 				break;
- 			}
- 
- 		} else if (ret == -ENOBUFS) {
- 			if (bufferlen > NETVSC_PACKET_SIZE)
- 				kfree(buffer);
- 			/* Handle large packet */
- 			buffer = kmalloc(bytes_recvd, GFP_ATOMIC);
- 			if (buffer == NULL) {
- 				/* Try again next time around */
- 				netdev_err(ndev,
- 					   "unable to allocate buffer of size "
- 					   "(%d)!!\n", bytes_recvd);
- 				break;
- 			}
- 
- 			bufferlen = bytes_recvd;
- 		}
+ 	while ((desc = get_next_pkt_raw(channel)) != NULL) {
+ 		netvsc_process_raw_pkt(device, channel, net_device,
+ 				       ndev, desc->trans_id, desc);
  
+ 		put_pkt_raw(channel, desc);
+ 		need_to_commit = true;
 +		init_cached_read_index(channel);
+ 	}
  
- 	} while (1);
- 
- 	if (bufferlen > NETVSC_PACKET_SIZE)
- 		kfree(buffer);
+ 	if (need_to_commit)
+ 		commit_rd_index(channel);
  
  	netvsc_chk_recv_comp(net_device, channel, q_idx);
  }

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

* Re: linux-next: manual merge of the net-next tree with the char-misc.current tree
  2018-12-12  1:02 Stephen Rothwell
@ 2018-12-12  8:29 ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2018-12-12  8:29 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: David Miller, Networking, Arnd Bergmann, Linux Next Mailing List,
	Linux Kernel Mailing List, Jakub Kicinski, Sasha Levin

On Wed, Dec 12, 2018 at 12:02:52PM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> Today's linux-next merge of the net-next tree got a conflict in:
> 
>   MAINTAINERS
> 
> between commit:
> 
>   cb4f131e1f2c ("MAINTAINERS: Patch monkey for the Hyper-V code")
> 
> from the char-misc.current tree and commit:
> 
>   b255e500c8dc ("net: documentation: build a directory structure for drivers")
> 
> from the net-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.
> 
> -- 
> Cheers,
> Stephen Rothwell
> 
> diff --cc MAINTAINERS
> index 4a2a30380bed,a676b40ac1d6..000000000000
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@@ -6930,11 -6902,9 +6931,11 @@@ Hyper-V CORE AND DRIVER
>   M:	"K. Y. Srinivasan" <kys@microsoft.com>
>   M:	Haiyang Zhang <haiyangz@microsoft.com>
>   M:	Stephen Hemminger <sthemmin@microsoft.com>
>  +M:	Sasha Levin <sashal@kernel.org>
>  +T:	git git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git
>   L:	devel@linuxdriverproject.org
>  -S:	Maintained
>  +S:	Supported
> - F:	Documentation/networking/netvsc.txt
> + F:	Documentation/networking/device_drivers/microsoft/netvsc.txt
>   F:	arch/x86/include/asm/mshyperv.h
>   F:	arch/x86/include/asm/trace/hyperv.h
>   F:	arch/x86/include/asm/hyperv-tlfs.h

Looks good to me, thanks!

greg k-h

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

* linux-next: manual merge of the net-next tree with the char-misc.current tree
@ 2018-12-12  1:02 Stephen Rothwell
  2018-12-12  8:29 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2018-12-12  1:02 UTC (permalink / raw)
  To: David Miller, Networking, Greg KH, Arnd Bergmann
  Cc: Linux Next Mailing List, Linux Kernel Mailing List,
	Jakub Kicinski, Sasha Levin

[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]

Hi all,

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

  MAINTAINERS

between commit:

  cb4f131e1f2c ("MAINTAINERS: Patch monkey for the Hyper-V code")

from the char-misc.current tree and commit:

  b255e500c8dc ("net: documentation: build a directory structure for drivers")

from the net-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.

-- 
Cheers,
Stephen Rothwell

diff --cc MAINTAINERS
index 4a2a30380bed,a676b40ac1d6..000000000000
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@@ -6930,11 -6902,9 +6931,11 @@@ Hyper-V CORE AND DRIVER
  M:	"K. Y. Srinivasan" <kys@microsoft.com>
  M:	Haiyang Zhang <haiyangz@microsoft.com>
  M:	Stephen Hemminger <sthemmin@microsoft.com>
 +M:	Sasha Levin <sashal@kernel.org>
 +T:	git git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git
  L:	devel@linuxdriverproject.org
 -S:	Maintained
 +S:	Supported
- F:	Documentation/networking/netvsc.txt
+ F:	Documentation/networking/device_drivers/microsoft/netvsc.txt
  F:	arch/x86/include/asm/mshyperv.h
  F:	arch/x86/include/asm/trace/hyperv.h
  F:	arch/x86/include/asm/hyperv-tlfs.h

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2018-12-12  8:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-01  1:11 linux-next: manual merge of the net-next tree with the char-misc.current tree Stephen Rothwell
2018-12-12  1:02 Stephen Rothwell
2018-12-12  8:29 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).