~mhcerri/ubuntu/+source/linux/+git/azure:lp1707285-update-linux-azure

Last commit made on 2017-08-01
Get this branch:
git clone -b lp1707285-update-linux-azure https://git.launchpad.net/~mhcerri/ubuntu/+source/linux/+git/azure
Only Marcelo Cerri can upload to this branch. If you are Marcelo Cerri please log in for upload directions.

Branch merges

Branch information

Name:
lp1707285-update-linux-azure
Repository:
lp:~mhcerri/ubuntu/+source/linux/+git/azure

Recent commits

68b4a27... by Dexuan Cui

UBUNTU: SAUCE: hv-sock: avoid double FINs if shutdown() is called

BugLink: http://bugs.launchpad.net/bugs/1707285

The host only expects a single FIN.

Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

077cb65... by Dexuan Cui

UBUNTU: SAUCE: hv-sock: a temporary workaround for the pending_send_size issue

BugLink: http://bugs.launchpad.net/bugs/1707285

The sender in Linux VM may miss the notification from the host, and
the connection can hang.

Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

350771e... by Stephen Hemminger <email address hidden>

UBUNTU: SAUCE: netvsc: keep track of vf passthrough statistics

BugLink: http://bugs.launchpad.net/bugs/1707285

When packets are being passed through account for them in per-cpu
data structure. Aggegrate synthetic and VF statistics for general
requests, but breakout with ethtool.

Signed-off-by: Stephen Hemminger <email address hidden>
Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

cc6cf50... by Stephen Hemminger <email address hidden>

UBUNTU: SAUCE: netvsc: optional transparent fail over

BugLink: http://bugs.launchpad.net/bugs/1707285

This patch implements transparent fail over from synthetic NIC to
SR-IOV virtual function NIC in Hyper-V environment. It is a better
alternative to using bonding as is done now. Instead, the receive and
transmit fail over is done internally inside the driver.

Using bonding driver has lots of issues because it depends on the
script being run early enough in the boot process and with sufficient
information to make the association. This patch moves all that
functionality into the kernel.

The new mode is enabled through a module parameter (transparent_vf)
which currently defaults to off. This keeps full compatibility with
existing environments.

Note: the VF device is still visible, but it is marked as slave
device of the netvsc device.

Signed-off-by: Stephen Hemminger <email address hidden>
Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

a0c7595... by Stephen Hemminger

UBUNTU: SAUCE: netvsc: optimize calculation of number of slots

BugLink: http://bugs.launchpad.net/bugs/1707285

Speed up transmit check for fragmented packets by using existing
macros to compute number of pages, and eliminate loop since
skb fragments each take a page. Number of slots is also unsigned.

Signed-off-by: Stephen Hemminger <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

957d34e... by Stephen Hemminger

netvsc: use hv_get_bytes_to_read

BugLink: http://bugs.launchpad.net/bugs/1707285

Don't need need to look at write space in netvsc_close.

Signed-off-by: Stephen Hemminger <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit 40975962788ef5b796ab0f36bfd7051064c915d3)
Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

56704f2... by Stephen Hemminger <email address hidden>

UBUNTU: SAUCE: vmbus: don't need to check interrupt mask on read side

BugLink: http://bugs.launchpad.net/bugs/1707285

Apparently, host does not disable interrupts on read side.

Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

5706c92... by Stephen Hemminger

vmbus: re-enable channel tasklet

BugLink: http://bugs.launchpad.net/bugs/1707285

This problem shows up in 4.11 when netvsc driver is removed and reloaded.
The problem is that the channel is closed during module removal and the
tasklet for processing responses is disabled. When module is reloaded
the channel is reopened but the tasklet is marked as disabled.
The fix is to re-enable tasklet at the end of close which gets it back
to the initial state.

The issue is less urgent in 4.12 since network driver now uses NAPI
and not the tasklet; and other VMBUS devices are rarely unloaded/reloaded.

Fixes: dad72a1d2844 ("vmbus: remove hv_event_tasklet_disable/enable")

Signed-off-by: Stephen Hemminger <email address hidden>
Signed-off-by: K. Y. Srinivasan <email address hidden>
Cc: <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
(cherry picked from commit 6463a4571ceefc43908df4b016d8d5d8b8e85357)
Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

f665a85... by Marcelo Cerri

Revert "UBUNTU: SAUCE: vmbus: add the matching tasklet_enable() in vmbus_close_internal()"

BugLink: http://bugs.launchpad.net/bugs/1707285

This reverts commit 8b0587cc193b9b233e2dc28c426e4d283fc24f74.

Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

8933be6... by Jork Loeser

PCI: hv: Use vPCI protocol version 1.2

BugLink: http://bugs.launchpad.net/bugs/1707285

Update the Hyper-V vPCI driver to use the Server-2016 version of the vPCI
protocol, fixing MSI creation and retargeting issues.

Signed-off-by: Jork Loeser <email address hidden>
Signed-off-by: Bjorn Helgaas <email address hidden>
Reviewed-by: K. Y. Srinivasan <email address hidden>
Acked-by: K. Y. Srinivasan <email address hidden>
(cherry picked from commit 7dcf90e9e032432e91ce77dd872d2227e9d5b741)
Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: Marcelo Henrique Cerri <email address hidden>