1. 15 10月, 2017 2 次提交
  2. 09 10月, 2017 2 次提交
  3. 05 10月, 2017 1 次提交
  4. 01 10月, 2017 1 次提交
  5. 26 9月, 2017 1 次提交
  6. 22 9月, 2017 1 次提交
    • A
      hv_netvsc: fix send buffer failure on MTU change · 0ab09bef
      Alex Ng 提交于
      If MTU is changed the host would reject the send buffer change.
      This problem is result of recent change to allow changing send
      buffer size.
      
      Every time we change the MTU, we store the previous net_device section
      count before destroying the buffer, but we don’t store the previous
      section size. When we reinitialize the buffer, its size is calculated
      by multiplying the previous count and previous size. Since we
      continuously increase the MTU, the host returns us a decreasing count
      value while the section size is reinitialized to 1728 bytes every
      time.
      
      This eventually leads to a condition where the calculated buf_size is
      so small that the host rejects it.
      
      Fixes: 8b532797 ("netvsc: allow controlling send/recv buffer size")
      Signed-off-by: NAlex Ng <alexng@microsoft.com>
      Signed-off-by: NStephen Hemminger <sthemmin@microsoft.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0ab09bef
  7. 16 9月, 2017 1 次提交
  8. 12 9月, 2017 1 次提交
    • S
      hv_netvsc: fix deadlock on hotplug · 8195b139
      Stephen Hemminger 提交于
      When a virtual device is added dynamically (via host console), then
      the vmbus sends an offer message for the primary channel. The processing
      of this message for networking causes the network device to then
      initialize the sub channels.
      
      The problem is that setting up the sub channels needs to wait until
      the subsequent subchannel offers have been processed. These offers
      come in on the same ring buffer and work queue as where the primary
      offer is being processed; leading to a deadlock.
      
      This did not happen in older kernels, because the sub channel waiting
      logic was broken (it wasn't really waiting).
      
      The solution is to do the sub channel setup in its own work queue
      context that is scheduled by the primary channel setup; and then
      happens later.
      
      Fixes: 732e4985 ("netvsc: fix race on sub channel creation")
      Reported-by: NDexuan Cui <decui@microsoft.com>
      Signed-off-by: NStephen Hemminger <sthemmin@microsoft.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8195b139
  9. 02 9月, 2017 5 次提交
  10. 25 8月, 2017 2 次提交
  11. 23 8月, 2017 3 次提交
  12. 12 8月, 2017 8 次提交
  13. 09 8月, 2017 1 次提交
  14. 07 8月, 2017 1 次提交
  15. 03 8月, 2017 1 次提交
    • S
      netvsc: transparent VF management · 0c195567
      stephen hemminger 提交于
      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.
      Signed-off-by: NStephen Hemminger <sthemmin@microsoft.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0c195567
  16. 30 7月, 2017 3 次提交
  17. 26 7月, 2017 1 次提交
  18. 25 7月, 2017 5 次提交