~mhcerri/ubuntu/+source/linux/+git/azure:lp1690177-hyperv-backport

Last commit made on 2017-05-18
Get this branch:
git clone -b lp1690177-hyperv-backport 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:
lp1690177-hyperv-backport
Repository:
lp:~mhcerri/ubuntu/+source/linux/+git/azure

Recent commits

87eed74... by K Y Srinivasan

netvsc: Deal with rescinded channels correctly

BugLink: https://bugs.launchpad.net/bugs/1690177

We will not be able to send packets over a channel that has been
rescinded. Make necessary adjustments so we can properly cleanup
even when the channel is rescinded. This issue can be trigerred
in the NIC hot-remove path.

Signed-off-by: K. Y. Srinivasan <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit 73e64fa4f417b22d8d5521999a631ced8e2d442e)
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

f49681c... by Simon Xiao

hv_netvsc: change netvsc device default duplex to FULL

BugLink: https://bugs.launchpad.net/bugs/1690177

The netvsc device supports full duplex by default.
This warnings in log from bonding device which did not like
seeing UNKNOWN duplex.

Signed-off-by: Simon Xiao <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit f3c9d40ee12926f330a1dfebce0bebadd1406ba6)
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

89285f2... by Haiyang Zhang

hv_netvsc: Fix the queue index computation in forwarding case

BugLink: https://bugs.launchpad.net/bugs/1690177

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 <email address hidden>
Reviewed-by: Stephen Hemminger <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit 8db91f6a9b2ff2bb5355ad11c668fe63eb8ae0c3)
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

27e1dd2... by K Y Srinivasan

Drivers: hv: Issue explicit EOI when autoeoi is not enabled

BugLink: https://bugs.launchpad.net/bugs/1690177

When auto EOI is not enabled; issue an explicit EOI for hyper-v
interrupts.

Fixes: 6c248aad81c8 ("Drivers: hv: Base autoeoi enablement based on hypervisor hints")

Signed-off-by: K. Y. Srinivasan <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
(cherry picked from commit a33fd4c27b3ad11c66bdadc5fe6075297ca87a6d)
Signed-off-by: Marcelo Henrique Cerri <email address hidden>

ef3c509... by Stephen Hemminger

netvsc: fix and cleanup rndis_filter_set_packet_filter

BugLink: https://bugs.launchpad.net/bugs/1690177

Fix warning from unused set_complete variable. And rearrange code
to eliminate unnecessary goto's.

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

afafffd... by Stephen Hemminger

netvsc: eliminate unnecessary skb == NULL checks

BugLink: https://bugs.launchpad.net/bugs/1690177

Since there already is a special case goto for control messages (skb == NULL)
in netvsc_send, there is no need for later checks in same code path.

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

aad4821... by Stephen Hemminger

netvsc: remove unnecessary lock on shutdown

BugLink: https://bugs.launchpad.net/bugs/1690177

The channel inbound lock was not being used at all by the netvsc
device, but the spin_lock was helpful by providing necessary
barrier before waiting.

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

495c9a0... by Stephen Hemminger

netvsc: use refcount_t for keeping track of sub channels

BugLink: https://bugs.launchpad.net/bugs/1690177

Rather than a lock and variable, use a refcount_t to keep track
of the number of sub channels. Don't need to wait for subchannels
on device removal since wait was already done in device_add.

Also fix the error handling; don't wait forever in case of
an error on request to create sub channels.

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

e53b7f0... by Marcelo Cerri

UBUNTU: SAUCE: include refcount.h in hyperv_net.h

BugLink: https://bugs.launchpad.net/bugs/1690177

Originally in upstream, hyperv_net.h include refcount.h via
linux/kref.h. In order to avoid several backports to kref.h, include
refcount.h locally for hyperv_net.h instead.

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

21cdcd7... by Stephen Hemminger

netvsc: uses RCU instead of removal flag

BugLink: https://bugs.launchpad.net/bugs/1690177

It is cleaner to use RCU protected pointer (nvdev_ctx->nvdev)
to indicate device is in removed state, rather than having a separate
boolean flag. By using the pointer the context can be checked
by static checkers and dynamic lockdep.

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