[PATCH net-next,2/3] hv_netvsc: Define a macro RNDIS_AND_PPI_SIZE

2015-04-06 Thread Haiyang Zhang
The sum of RNDIS msg and PPI struct sizes is used in multiple places, so we define a macro for them. Signed-off-by: Haiyang Zhang haiya...@microsoft.com Reviewed-by: K. Y. Srinivasan k...@microsoft.com --- drivers/net/hyperv/hyperv_net.h |6 ++ drivers/net/hyperv/netvsc_drv.c | 15

[PATCH net-next,3/3] hv_netvsc: Fix the packet free when it is in skb headroom

2015-04-06 Thread Haiyang Zhang
In the two places changed, we now use netvsc_xmit_completion() which properly frees hv_netvsc_packet in or not in skb headroom. Signed-off-by: Haiyang Zhang haiya...@microsoft.com Reviewed-by: K. Y. Srinivasan k...@microsoft.com --- drivers/net/hyperv/hyperv_net.h |1 + drivers/net/hyperv

[PATCH net-next] hv_netvsc: Add support to set MTU reservation from guest side

2015-06-26 Thread Haiyang Zhang
the lifecycle of a vNIC, when the encapsulation protocol is changed. The patch supports this kind of MTU changes. Signed-off-by: Haiyang Zhang haiya...@microsoft.com Reviewed-by: K. Y. Srinivasan k...@microsoft.com --- drivers/net/hyperv/netvsc_drv.c |3 +-- drivers/net/hyperv/rndis_filter.c

RE: [PATCH net-next] hv_netvsc: Add support to set MTU reservation from guest side

2015-07-06 Thread Haiyang Zhang
-Original Message- From: David Miller [mailto:da...@davemloft.net] Sent: Friday, July 3, 2015 12:17 PM To: dan.carpen...@oracle.com Cc: Haiyang Zhang; net...@vger.kernel.org; o...@aepfle.de; jasow...@redhat.com; driverdev-de...@linuxdriverproject.org; linux- ker...@vger.kernel.org

[PATCH net-next,v2] hv_netvsc: Add support to set MTU reservation from guest side

2015-07-06 Thread Haiyang Zhang
the lifecycle of a vNIC, when the encapsulation protocol is changed. The patch supports this kind of MTU changes. Signed-off-by: Haiyang Zhang haiya...@microsoft.com Reviewed-by: K. Y. Srinivasan k...@microsoft.com --- drivers/net/hyperv/hyperv_net.h |1 + drivers/net/hyperv/netvsc_drv.c

[PATCH net-next] hv_netvsc: Add support to set MTU reservation from guest side

2015-07-02 Thread Haiyang Zhang
the lifecycle of a vNIC, when the encapsulation protocol is changed. The patch supports this kind of MTU changes. Signed-off-by: Haiyang Zhang haiya...@microsoft.com Reviewed-by: K. Y. Srinivasan k...@microsoft.com --- drivers/net/hyperv/netvsc_drv.c |3 +-- drivers/net/hyperv/rndis_filter.c

RE: [PATCH net-next 1/2] hv_netvsc: Set vRSS with num_chn in RNDIS filter

2015-08-12 Thread Haiyang Zhang
-Original Message- From: Andy Schwartzmeyer Sent: Tuesday, August 11, 2015 8:15 PM To: Haiyang Zhang haiya...@microsoft.com Cc: KY Srinivasan k...@microsoft.com; Andy Schwartzmeyer andsc...@microsoft.com; net...@vger.kernel.org; linux- ker...@vger.kernel.org Subject: [PATCH net

RE: [PATCH net-next 2/2] hv_netvsc: Implement set_channels ethtool op

2015-08-12 Thread Haiyang Zhang
-Original Message- From: Andy Schwartzmeyer Sent: Tuesday, August 11, 2015 8:15 PM To: Haiyang Zhang haiya...@microsoft.com Cc: KY Srinivasan k...@microsoft.com; Andy Schwartzmeyer andsc...@microsoft.com; net...@vger.kernel.org; linux- ker...@vger.kernel.org Subject: [PATCH net

[PATCH net-next] hv_netvsc: Add structs and handlers for VF messages

2015-07-24 Thread Haiyang Zhang
This patch adds data structures and handlers for messages related to SRIOV Virtual Function. Signed-off-by: Haiyang Zhang haiya...@microsoft.com Reviewed-by: K. Y. Srinivasan k...@microsoft.com --- drivers/net/hyperv/hyperv_net.h | 29 ++ drivers/net/hyperv/netvsc.c

[PATCH net-next] hv_netvsc: Add close of RNDIS filter into change mtu call

2015-07-13 Thread Haiyang Zhang
hang issue under heavy traffic is solved by this patch. Signed-off-by: Haiyang Zhang haiya...@microsoft.com Reviewed-by: K. Y. Srinivasan k...@microsoft.com --- drivers/net/hyperv/netvsc_drv.c | 58 +++ 1 files changed, 52 insertions(+), 6 deletions(-) diff

RE: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event

2015-10-29 Thread Haiyang Zhang
> -Original Message- > From: Richard Weinberger [mailto:richard.weinber...@gmail.com] > Sent: Tuesday, October 27, 2015 6:36 PM > To: David Miller <da...@davemloft.net> > Cc: Haiyang Zhang <haiya...@microsoft.com>; o...@aepfle.de; Greg Kroah- >

RE: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event

2015-10-28 Thread Haiyang Zhang
> -Original Message- > From: Richard Weinberger [mailto:richard.weinber...@gmail.com] > Sent: Tuesday, October 27, 2015 6:36 PM > To: David Miller <da...@davemloft.net> > Cc: Haiyang Zhang <haiya...@microsoft.com>; o...@aepfle.de; Greg Kroah- >

RE: [PATCH net-next] hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event

2015-10-30 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, October 30, 2015 6:56 AM > To: Haiyang Zhang <haiya...@microsoft.com> > Cc: Richard Weinberger <richard.weinber...@gmail.com>; David Miller > <da...@dave

RE: [PATCH net-next RFC] net: increase LL_MAX_HEADER for Hyper-V

2015-09-16 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, September 16, 2015 11:50 AM > To: net...@vger.kernel.org > Cc: David S. Miller <da...@davemloft.net>; linux-kernel@vger.kernel.org; > KY Srinivasan <k...@microsoft.c

[PATCH net-next] hv_netvsc: Fix race condition on Multi-Send Data field

2015-12-10 Thread Haiyang Zhang
atch fixes this issue by sending control messages out directly without reading MSD field. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: K. Y. Srinivasan <k...@microsoft.com> --- drivers/net/hyperv/netvsc.c |9 + 1 files changed, 9 insertions(+), 0 de

RE: [PATCH net-next] hv_netvsc: Fix race condition on Multi-Send Data field

2015-12-11 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, December 11, 2015 8:53 AM > To: Haiyang Zhang <haiya...@microsoft.com> > Cc: da...@davemloft.net; net...@vger.kernel.org; o...@aepfle.de; > jasow...@

RE: [PATCH net-next] hv_netvsc: Use simple parser for IPv4 and v6 headers

2015-12-16 Thread Haiyang Zhang
> -Original Message- > From: Eric Dumazet [mailto:eric.duma...@gmail.com] > Sent: Wednesday, December 16, 2015 12:08 PM > > This looks very very wrong to me. > > How many times this is called per second, for the 'one flow' case ? > > Don't you use TSO in this driver ? > > What about

[PATCH net-next] hv_netvsc: Use simple parser for IPv4 and v6 headers

2015-12-16 Thread Haiyang Zhang
11.17 14.07 16 12.21 21.78 64 18.71 32.08 256 15.92 26.32 10248.4115.49 30007.8211.58 Signed-off-by: Haiyang Zhang <ha

RE: [PATCH RFC net-next] netvsc: get rid of completion timeouts

2016-06-08 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, June 8, 2016 10:19 AM > To: net...@vger.kernel.org > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; KY > Srinivasan <k...@microsoft.com>; Haiyang Zhang

[PATCH net-next,v2] tools: hv: Add a script to help bonding synthetic and VF NICs

2016-06-10 Thread Haiyang Zhang
is down. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: K. Y. Srinivasan <k...@microsoft.com> --- v2: Make it to be distro neutral. --- tools/hv/bondvf.sh | 79 1 files changed, 79 insertions(+), 0 deletions(-)

RE: [PATCH net-next,v2] tools: hv: Add a script to help bonding synthetic and VF NICs

2016-06-11 Thread Haiyang Zhang
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Friday, June 10, 2016 9:14 PM > To: Haiyang Zhang <haiya...@microsoft.com> > Cc: net...@vger.kernel.org; KY Srinivasan <k...@microsoft.com>; > o...@aepfle.de; vkuzn...@redhat.com

[PATCH net-next] hv_netvsc: Fix VF register on vlan devices

2016-06-02 Thread Haiyang Zhang
Added a condition to avoid vlan devices with same MAC registering as VF. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: K. Y. Srinivasan <k...@microsoft.com> --- drivers/net/hyperv/netvsc_drv.c |4 1 files changed, 4 insertions(+), 0 deletions(-)

RE: [PATCH net-next] hv_netvsc: Increase delay for RNDIS_STATUS_NETWORK_CHANGE

2016-02-09 Thread Haiyang Zhang
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, February 9, 2016 5:05 AM > To: Haiyang Zhang <haiya...@microsoft.com> > Cc: net...@vger.kernel.org; KY Srinivasan <k...@microsoft.com>; > o...@aepfle.de; vku

[PATCH net-next] hv_netvsc: Increase delay for RNDIS_STATUS_NETWORK_CHANGE

2016-02-02 Thread Haiyang Zhang
-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/netvsc_drv.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 1d3a665..6f23973 100644 --- a/drivers/net/hyperv/netvsc_drv.c

RE: [PATCH net-next] hv_netvsc: Increase delay for RNDIS_STATUS_NETWORK_CHANGE

2016-02-03 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, February 3, 2016 8:06 AM > To: Haiyang Zhang <haiya...@microsoft.com> > Cc: da...@davemloft.net; net...@vger.kernel.org; KY Srinivasan > <k...@microsoft.com>

RE: [PATCH net-next] hv_netvsc: Increase delay for RNDIS_STATUS_NETWORK_CHANGE

2016-02-03 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, February 3, 2016 11:06 AM > To: Haiyang Zhang <haiya...@microsoft.com> > Cc: da...@davemloft.net; net...@vger.kernel.org; KY Srinivasan > <k...@microsoft.com>

[PATCH net-next] hv_netvsc: Fix book keeping of skb during batching process

2016-01-25 Thread Haiyang Zhang
com> for bisecting and analysis. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: K. Y. Srinivasan <k...@microsoft.com> --- drivers/net/hyperv/hyperv_net.h |1 + drivers/net/hyperv/netvsc.c | 33 ++--- 2 files changed, 23 insertion

[PATCH net-next] hv_netvsc: Fix the order of num_sc_offered decrement

2016-03-23 Thread Haiyang Zhang
Reorder the code in netvsc_sc_open(), so num_sc_offered is only decremented after vmbus_open() is called. This avoid pontential race of removing device before all channels are setup. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: K. Y. Srinivasan <k...@micr

[PATCH net-next,2/2] hv_netvsc: Fix the array sizes to be max supported channels

2016-03-23 Thread Haiyang Zhang
The VRSS_CHANNEL_MAX is the max number of channels supported by Hyper-V hosts. We use it for the related array sizes instead of using NR_CPUS, which may be set to several thousands. This patch reduces possible memory allocation failures. Signed-off-by: Haiyang Zhang <haiya...@microsoft.

[PATCH net-next,1/2] hv_netvsc: Fix accessing freed memory in netvsc_change_mtu()

2016-03-23 Thread Haiyang Zhang
struct netvsc_device is freed in rndis_filter_device_remove(). So we save the nvdev->num_chn into a temp variable for later usage. (Please also include this patch into stable branch.) Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: K. Y. Srinivasan <k...@m

[PATCH net-next] hv_netvsc: Move subchannel waiting to rndis_filter_device_remove()

2016-03-04 Thread Haiyang Zhang
and speeds up NIC loading time. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: K. Y. Srinivasan <k...@microsoft.com> --- drivers/net/hyperv/rndis_filter.c | 19 +-- 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/hy

[PATCH net-next] hv_netvsc: Fix the list processing for network change event

2016-04-21 Thread Haiyang Zhang
RNDIS_STATUS_NETWORK_CHANGE event is handled as two "half events" -- media disconnect & connect. The second half should be added to the list head, not to the tail. So all events are processed in normal order. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by:

[PATCH net-next] tools: hv: Add a script for bonding synthetic and VF NICs

2016-05-19 Thread Haiyang Zhang
is down. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: K. Y. Srinivasan <k...@microsoft.com> --- tools/hv/bondvf.sh | 132 1 files changed, 132 insertions(+), 0 deletions(-) create mode 100755 tools/hv/bondvf.sh

RE: [PATCH net 4/4] hv_netvsc: avoid deadlocks between rtnl lock and netvsc_inject_disable()

2016-08-11 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Thursday, August 11, 2016 6:59 AM > To: net...@vger.kernel.org > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; Haiyang > Zhang <haiya...@microsoft.com>; KY Sriniv

RE: [PATCH net 3/4] hv_netvsc: protect module refcount by checking net_device_ctx->vf_netdev

2016-08-11 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Thursday, August 11, 2016 6:59 AM > To: net...@vger.kernel.org > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; Haiyang > Zhang <haiya...@microsoft.com>; KY Sriniv

RE: [PATCH net 2/4] hv_netvsc: reset vf_inject on VF removal

2016-08-11 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Thursday, August 11, 2016 6:59 AM > To: net...@vger.kernel.org > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; Haiyang > Zhang <haiya...@microsoft.com>; KY Sriniv

RE: [PATCH net 1/4] hv_netvsc: don't lose VF information

2016-08-11 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Thursday, August 11, 2016 6:59 AM > To: net...@vger.kernel.org > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; Haiyang > Zhang <haiya...@microsoft.com>; KY Sriniv

RE: [PATCH net v2 5/5] hv_netvsc: fix bonding devices check in netvsc_netdev_event()

2016-08-15 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Monday, August 15, 2016 11:49 AM > To: net...@vger.kernel.org > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; Haiyang > Zhang <haiya...@microsoft.com>; KY Sriniv

RE: [PATCH] PCI: hv: fix wslot_to_devfn()

2017-02-07 Thread Haiyang Zhang
.com>; Stephen Hemminger > <sthem...@microsoft.com>; Haiyang Zhang <haiya...@microsoft.com>; > o...@aepfle.de; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > a...@canonical.com; jasow...@redhat.com; Vitaly Kuznetsov > <vkuzn...@redhat.com> > Subject: [P

[PATCH net-next] tools: hv: Add clean up function for Ubuntu config

2017-02-24 Thread Haiyang Zhang
This patch adds a function to clean up duplicate config info on Ubuntu. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- tools/hv/bondvf.sh | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/tools/hv/bondvf.sh b/tools/hv/bondvf.sh index 4

[PATCH] pci-hyperv: Use device serial number as PCI domain

2017-02-13 Thread Haiyang Zhang
number of devices. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: K. Y. Srinivasan <k...@microsoft.com> --- drivers/pci/host/pci-hyperv.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/

[PATCH net-next] hv_netvsc: Implement batching of receive completions

2016-08-19 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The existing code uses busy retry when unable to send out receive completions due to full ring buffer. It also gives up retrying after limit is reached, and causes receive buffer slots not being recycled. This patch implements batching of r

RE: [PATCH] hv: do not lose pending heartbeat vmbus packets

2016-09-19 Thread Haiyang Zhang
> -Original Message- > From: Long Li [mailto:lon...@exchange.microsoft.com] > Sent: Monday, September 12, 2016 11:31 PM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com> > Cc: de...@linuxdriverproject.org; linux-kernel@v

RE: [PATCH] Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()

2016-10-26 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, October 26, 2016 7:12 AM > To: de...@linuxdriverproject.org > Cc: linux-kernel@vger.kernel.org; KY Srinivasan <k...@microsoft.com>; > Haiyang Zhang <haiya...@micro

RE: [PATCH net-next v2 6/9] net: use core MTU range checking in virt drivers

2016-10-20 Thread Haiyang Zhang
.org; KY Srinivasan > <k...@microsoft.com>; Haiyang Zhang <haiya...@microsoft.com>; Michael S. > Tsirkin <m...@redhat.com>; Shrikrishna Khare <skh...@vmware.com>; VMware, > Inc. <pv-driv...@vmware.com>; Wei Liu <wei.l...@citrix.com>; Paul > Durrant <paul.durr...@

RE: [PATCH net-next 5/6] net: use core MTU range checking in virt drivers

2016-10-19 Thread Haiyang Zhang
.org; KY Srinivasan > <k...@microsoft.com>; Haiyang Zhang <haiya...@microsoft.com>; Michael S. > Tsirkin <m...@redhat.com>; Shrikrishna Khare <skh...@vmware.com>; VMware, > Inc. <pv-driv...@vmware.com> > Subject: [PATCH net-next 5/6] net: use core MTU range checking in v

RE: [PATCH net-next] hv_netvsc: remove excessive logging on MTU change

2016-11-28 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Monday, November 28, 2016 12:26 PM > To: net...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; KY Srinivasan <k...@microsoft.com>; > Haiyang Zhang <haiya...@microsoft.com&

RE: [PATCH v2] Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()

2016-11-01 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, November 1, 2016 9:34 AM > To: de...@linuxdriverproject.org > Cc: linux-kernel@vger.kernel.org; KY Srinivasan <k...@microsoft.com>; > Haiyang Zhang <haiya...@micros

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 5:05 PM > To: Haiyang Zhang <haiya...@microsoft.com> > Cc: Greg KH <gre...@linuxfoundation.org>; KY Srinivasan > <k...@microsoft.c

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 1:21 PM > To: Greg KH <gre...@linuxfoundation.org> > Cc: KY Srinivasan <k...@microsoft.com>; o...@aepfle.de; Haiyang Zhang > <haiy

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 4:45 PM > To: Haiyang Zhang <haiya...@microsoft.com> > Cc: Greg KH <gre...@linuxfoundation.org>; KY Srinivasan > <k...@microsoft.c

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-14 Thread Haiyang Zhang
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Saturday, December 10, 2016 7:21 AM > To: Stephen Hemminger <step...@networkplumber.org> > Cc: Haiyang Zhang <haiya...@microsoft.com>; o...@aepfle.de; > jasow...@redhat.com

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 3:30 PM > To: Haiyang Zhang <haiya...@microsoft.com> > Cc: Greg KH <gre...@linuxfoundation.org>; KY Srinivasan > <k...@microsoft.c

[PATCH net-next] tools: hv: Enable network manager for bonding scripts on RHEL

2016-12-02 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> We found network manager is necessary on RHEL to make the synthetic NIC, VF NIC bonding operations handled automatically. So, enabling network manager here. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: K. Y. S

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-16 Thread Haiyang Zhang
org; > bjorn.helg...@gmail.com; a...@canonical.com; de...@linuxdriverproject.org; > leann.ogasaw...@canonical.com; Haiyang Zhang <haiya...@microsoft.com> > Subject: RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on > serial numbers > > > > > -Ori

RE: [PATCH] netvsc: fix dereference before null check errors

2017-03-26 Thread Haiyang Zhang
> -Original Message- > From: Colin King [mailto:colin.k...@canonical.com] > Sent: Saturday, March 25, 2017 10:27 AM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger <sthem...@microsoft.com>; &g

RE: [PATCH] netvsc: fix unititialized return value in variable ret

2017-03-26 Thread Haiyang Zhang
> -Original Message- > From: Colin King [mailto:colin.k...@canonical.com] > Sent: Saturday, March 25, 2017 10:17 AM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger <sthem...@microsoft.com>; &g

RE: [PATCH net-next,1/3] hv_netvsc: Use per socket hash when available

2017-04-12 Thread Haiyang Zhang
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, April 11, 2017 10:13 PM > To: Haiyang Zhang <haiya...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com> > Cc: net...@vger.kernel.org; KY Srinivasan <k...@micros

[PATCH net-next,2/2] hv_netvsc: Exclude non-TCP port numbers from vRSS hashing

2017-04-12 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> Azure hosts are not supporting non-TCP port numbers in vRSS hashing for now. For example, UDP packet loss rate will be high if port numbers are also included in vRSS hash. So, we created this patch to use only IP numbers for hashing in non-TCP t

[PATCH net-next,2/2] hv_netvsc: Exclude non-TCP port numbers from vRSS hashing

2017-04-12 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> Azure hosts are not supporting non-TCP port numbers in vRSS hashing for now. For example, UDP packet loss rate will be high if port numbers are also included in vRSS hash. So, we created this patch to use only IP numbers for hashing in non-TCP t

[PATCH net-next,1/2] hv_netvsc: Fix the queue index computation in forwarding case

2017-04-12 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> If the outgoing skb has a RX queue mapping available, we use the queue number directly, other than put it through Send Indirection Table. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: Stephen Hemminger <sthem..

[PATCH net-next,3/3] hv_netvsc: Exclude non-TCP port numbers from vRSS hashing

2017-04-08 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> Azure hosts are not supporting non-TCP port numbers in vRSS hashing for now. For example, UDP packet loss rate will be high if port numbers are also included in vRSS hash. So, we created this patch to use only IP numbers for hashing in non-TCP t

[PATCH net-next,2/3] hv_netvsc: Fix the queue index computation in forwarding case

2017-04-08 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> If the outgoing skb has a RX queue mapping available, we use the queue number directly, other than put it through Send Indirection Table. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: Stephen Hemminger <sthem..

[PATCH net-next,1/3] hv_netvsc: Use per socket hash when available

2017-04-08 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The per socket hash is set when a socket is connected. Use it, when available, to save CPU cycles on repeatedly computing hash on the same connection. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: Stephen Hemm

RE: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain

2017-04-20 Thread Haiyang Zhang
> -Original Message- > From: Bjorn Helgaas [mailto:bhelg...@google.com] > Sent: Thursday, April 20, 2017 2:33 PM > To: Haiyang Zhang <haiya...@microsoft.com> > Cc: linux-...@vger.kernel.org; KY Srinivasan <k...@microsoft.com>; > Stephen Hemminger <sthem.

[PATCH] pci-hyperv: Use only 16 bit integer for PCI domain

2017-04-20 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> This patch uses the lower 16 bits of the serial number as PCI domain, otherwise some drivers may not be able to handle it. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/pci/host/pci-hyperv.c |4 +++- 1 file

RE: [PATCH v1 4/6] vmbus: Switch to use new generic UUID API

2017-07-19 Thread Haiyang Zhang
..@vger.kernel.org; linux-watch...@vger.kernel.org; linux- > e...@vger.kernel.org; Christoph Hellwig <h...@lst.de>; linux- > ker...@vger.kernel.org; Lukas Wunner <lu...@wunner.de> > Cc: Andy Shevchenko <andriy.shevche...@linux.intel.com>; KY Srinivasan > <k...@mi

RE: [PATCH] netvsc: Remove redundant use of ipv6_hdr()

2017-07-19 Thread Haiyang Zhang
> -Original Message- > From: Mohammed Gamal [mailto:mga...@redhat.com] > Sent: Wednesday, July 19, 2017 1:48 PM > To: Stephen Hemminger <step...@networkplumber.org> > Cc: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microso

[PATCH] MAINTAINERS: update mailing list name for Hyper-V files

2017-07-19 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> "de...@linuxdriverproject.org" is an outdated name, this patch updates it to the current mailing list name of the Linux Driver project. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- MAINTAINERS |2 +- 1 files

RE: [PATCH] MAINTAINERS: update mailing list name for Hyper-V files

2017-07-19 Thread Haiyang Zhang
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Wednesday, July 19, 2017 4:14 PM > To: Haiyang Zhang <haiya...@microsoft.com> > Cc: da...@davemloft.net; KY Srinivasan <k...@microsoft.com>; linux- > ker...@vger.kernel.org >

RE: [PATCH] netvsc: Remove redundant use of ipv6_hdr()

2017-07-19 Thread Haiyang Zhang
> -Original Message- > From: Mohammed Gamal [mailto:mga...@redhat.com] > Sent: Wednesday, July 19, 2017 9:19 AM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger <sthem...@microsoft.com> > Cc: de...@

[PATCH net-next] tools: hv: Add clean up for included files in Ubuntu net config

2017-05-12 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The clean up function is updated to cover duplicate config info in files included by "source" key word in Ubuntu network config. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- tools/hv/bondvf.sh | 16 +++

[PATCH net-next,v2] tools: hv: Add clean up for included files in Ubuntu net config

2017-05-12 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The clean up function is updated to cover duplicate config info in files included by "source" key word in Ubuntu network config. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- tools/hv/bondvf.sh | 21

RE: [PATCH net-next] tools: hv: Add clean up for included files in Ubuntu net config

2017-05-12 Thread Haiyang Zhang
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Friday, May 12, 2017 12:20 PM > To: Haiyang Zhang <haiya...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com> > Cc: net...@vger.kernel.org; KY Srinivasan <k...@micros

RE: [PATCH] netvsc: don't access netdev->num_rx_queues directly

2017-06-21 Thread Haiyang Zhang
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Wednesday, June 21, 2017 6:17 PM > To: Stephen Hemminger <sthem...@microsoft.com> > Cc: Arnd Bergmann <a...@arndb.de>; KY Srinivasan <k...@microsoft.com>; > Haiyang Zhang <h

[PATCH net-next,1/2] hv_netvsc: Remove unnecessary var link_state from struct netvsc_device_info

2017-06-21 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> We simply use rndis_device->link_state in the netdev_dbg. The variable, link_state from struct netvsc_device_info, is not used anywhere else. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: Stephen Hemminger <sthe

[PATCH net-next,2/2] hv_netvsc: Fix the carrier state error when data path is off

2017-06-21 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> When the VF NIC is opened, the synthetic NIC's carrier state is set to off. This tells the host to transitions data path to the VF device. But if startup script or user manipulates the admin state of the netvsc device directly for e

[PATCH] pci-hyperv: Use only 16 bit integer for PCI domain

2017-05-24 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> This patch uses the lower 16 bits of the serial number as PCI domain, otherwise some drivers may not be able to handle it. Besides Nvidia drivers, we also found X.org, and DPDK handle only 16 bit PCI domain. Signed-off-by: Haiyang Zhang

RE: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain

2017-05-24 Thread Haiyang Zhang
> -Original Message- > From: Haiyang Zhang [mailto:haiya...@exchange.microsoft.com] > Sent: Wednesday, May 24, 2017 4:39 PM > To: bhelg...@google.com; linux-...@vger.kernel.org > Cc: Haiyang Zhang <haiya...@microsoft.com>; KY Srinivasan > <k...@microsoft.com

[PATCH net-next] hv_netvsc: Fix the real number of queues of non-vRSS cases

2017-09-22 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> For older hosts without multi-channel (vRSS) support, and some error cases, we still need to set the real number of queues to one. This patch adds this missing setting. Fixes: 8195b1396ec8 ("hv_netvsc: fix deadlock on hotplug") Signed

RE: [PATCH] hv_netvsc: make const array ver_list static, reduces object code size

2017-09-22 Thread Haiyang Zhang
> -Original Message- > From: Colin King [mailto:colin.k...@canonical.com] > Sent: Friday, September 22, 2017 8:50 AM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger <sthem...@microsoft.com>; &g

[PATCH net-next,3/3] hv_netvsc: Update netvsc Document for TCP hash level setting

2017-10-06 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> Update Documentation/networking/netvsc.txt for TCP hash level setting and related info. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- Documentation/networking/netvsc.txt | 8 1 file changed, 4 insertions(+), 4 deleti

[PATCH net-next,0/3] hv_netvsc: support changing TCP hash level

2017-10-06 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The patch set simplifies the existing hash level switching code for UDP. It also adds the support for changing TCP hash level. So users can switch between L3 an L4 hash levels for TCP and UDP. Haiyang Zhang (3): hv_netvsc: Change the hash

[PATCH net-next,2/3] hv_netvsc: Add ethtool handler to set and get TCP hash levels

2017-10-06 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The patch supports the options to switch TCP hash level between L3 and L4 by ethtool command. TCP over IPv4 and v6 can be set differently. The default hash level is L4. We currently only allow switching TX hash level from within the

[PATCH net-next,1/3] hv_netvsc: Change the hash level variable to bit flags

2017-10-06 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> This simplifies the logic and make it easier to add more options. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/hyperv_net.h | 11 +-- drivers/net/hyperv/netvs

[PATCH net-next,1/3] hv_netvsc: Rename ind_table to rx_table

2017-10-13 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> Rename this variable because it is the Receive indirection table. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/hyperv_net.h | 2 +- drivers/net/hyperv/netvsc_drv.c | 4 ++-- drivers/net/hyperv/rndis_

[PATCH net-next,2/3] hv_netvsc: Rename tx_send_table to tx_table

2017-10-13 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> Simplify the variable name: tx_send_table Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/hyperv_net.h | 2 +- drivers/net/hyperv/netvsc.c | 2 +- drivers/net/hyperv/netvsc_drv.c | 4 ++-- 3 file

[PATCH net-next,0/3] Add init of send table and var renames

2017-10-13 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> Add initialization of send indirection table. Otherwise it may contain old info of previous device with different number of channels. Also, did some variable renaming for easier reading. Haiyang Zhang (3): hv_netvsc: Rename ind_table to rx

[PATCH net-next,3/3] hv_netvsc: Add initialization of tx_table in netvsc_device_add()

2017-10-13 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> tx_table is part of the private data of kernel net_device. It is only zero-ed out when allocating net_device. We may recreate netvsc_device w/o recreating net_device, so the private netdev data, including tx_table, are not zeroed. It may c

RE: [PATCH] x86/idt: Unbreak MS HyperV hypercall vector install

2017-09-08 Thread Haiyang Zhang
dc20b2d52653 ("x86/idt: Move interrupt gate initialization to IDT > code") > Reported-by: Stephen Hemminger <sthem...@microsoft.com> > Signed-off-by: Thomas Gleixner <t...@linutronix.de> Thanks for the quick response. I tested the patch and the kernel boots up on Hyper-V now. Reviewed-and-Tested-by: Haiyang Zhang <haiya...@microsoft.com>

[PATCH net-next] hv_netvsc: Fix typos in the document of UDP hashing

2017-08-30 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> There are two typos in the document, netvsc.txt, regarding UDP hashing level. This patch fixes them. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- Documentation/networking/netvsc.txt | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH net-next] hv_netvsc: Fix rndis_filter_close error during netvsc_remove

2017-08-24 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> We now remove rndis filter before unregister_netdev(), which calls device close. It involves closing rndis filter already removed. This patch fixes this error. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/

[PATCH net-next,2/4] hv_netvsc: Clean up unused parameter from netvsc_get_rss_hash_opts()

2017-08-21 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The parameter "nvdev" is not in use. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/netvsc_drv.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/hyperv/netv

[PATCH net-next,1/4] hv_netvsc: Clean up unused parameter from netvsc_get_hash()

2017-08-21 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The parameter "sk" is not in use. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/netvsc_drv.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/hyperv/netv

[PATCH net-next,3/4] hv_netvsc: Add ethtool handler to set and get UDP hash levels

2017-08-21 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The patch add the functions to switch UDP hash level between L3 and L4 by ethtool command. UDP over IPv4 and v6 can be set differently. The default hash level is L4. We currently only allow switching TX hash level from within the guests. On

[PATCH net-next,4/4] hv_netvsc: Update netvsc Document for UDP hash level setting

2017-08-21 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> Update Documentation/networking/netvsc.txt for UDP hash level setting and related info. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- Documentation/networking/netvsc.txt | 22 +- 1 files changed, 17 inse

[PATCH net-next,1/4] hv_netvsc: Clean up unused parameter from netvsc_get_hash()

2017-08-21 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The parameter "sk" is not in use. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/netvsc_drv.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/hyperv/netv

[PATCH net-next,2/4] hv_netvsc: Clean up unused parameter from netvsc_get_rss_hash_opts()

2017-08-21 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The parameter "nvdev" is not in use. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/netvsc_drv.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/hyperv/netv

[PATCH net-next,3/4] hv_netvsc: Add ethtool handler to set and get UDP hash levels

2017-08-21 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The patch add the functions to switch UDP hash level between L3 and L4 by ethtool command. UDP over IPv4 and v6 can be set differently. The default hash level is L4. We currently only allow switching TX hash level from within the guests. On

[PATCH net-next,4/4] hv_netvsc: Update netvsc Document for UDP hash level setting

2017-08-21 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> Update Documentation/networking/netvsc.txt for UDP hash level setting and related info. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- Documentation/networking/netvsc.txt | 22 +- 1 files changed, 17 inse

<    1   2   3   4   >