1. 14 12月, 2017 1 次提交
  2. 03 12月, 2017 1 次提交
  3. 16 11月, 2017 1 次提交
    • V
      hv_netvsc: preserve hw_features on mtu/channels/ringparam changes · aefd80e8
      Vitaly Kuznetsov 提交于
      rndis_filter_device_add() is called both from netvsc_probe() when we
      initially create the device and from set channels/mtu/ringparam
      routines where we basically remove the device and add it back.
      
      hw_features is reset in rndis_filter_device_add() and filled with
      host data. However, we lose all additional flags which are set outside
      of the driver, e.g. register_netdevice() adds NETIF_F_SOFT_FEATURES and
      many others.
      
      Unfortunately, calls to rndis_{query_hwcaps(), _set_offload_params()}
      calls cannot be avoided on every RNDIS reset: host expects us to set
      required features explicitly. Moreover, in theory hardware capabilities
      can change and we need to reflect the change in hw_features.
      
      Reset net->hw_features bits according to host data in
      rndis_netdev_set_hwcaps(), clear corresponding feature bits
      from net->features in case some features went missing (will never happen
      in real life I guess but let's be consistent).
      Signed-off-by: NVitaly Kuznetsov <vkuznets@redhat.com>
      Reviewed-by: NHaiyang Zhang <haiyangz@microsoft.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      aefd80e8
  4. 08 11月, 2017 1 次提交
  5. 29 10月, 2017 1 次提交
  6. 15 10月, 2017 1 次提交
  7. 12 9月, 2017 2 次提交
  8. 02 9月, 2017 2 次提交
  9. 07 8月, 2017 1 次提交
    • S
      netvsc: fix race on sub channel creation · 732e4985
      stephen hemminger 提交于
      The existing sub channel code did not wait for all the sub-channels
      to completely initialize. This could lead to race causing crash
      in napi_netif_del() from bad list. The existing code would send
      an init message, then wait only for the initial response that
      the init message was received. It thought it was waiting for
      sub channels but really the init response did the wakeup.
      
      The new code keeps track of the number of open channels and
      waits until that many are open.
      
      Other issues here were:
        * host might return less sub-channels than was requested.
        * the new init status is not valid until after init was completed.
      
      Fixes: b3e6b82a ("hv_netvsc: Wait for sub-channels to be processed during probe")
      Signed-off-by: NStephen Hemminger <sthemmin@microsoft.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      732e4985
  10. 30 7月, 2017 3 次提交
  11. 25 7月, 2017 1 次提交
  12. 20 7月, 2017 4 次提交
  13. 23 6月, 2017 1 次提交
  14. 08 6月, 2017 1 次提交
  15. 04 5月, 2017 1 次提交
  16. 22 4月, 2017 1 次提交
  17. 08 4月, 2017 1 次提交
  18. 26 3月, 2017 1 次提交
  19. 23 3月, 2017 4 次提交
  20. 17 3月, 2017 1 次提交
  21. 07 3月, 2017 1 次提交
  22. 25 1月, 2017 9 次提交