1. 02 12月, 2015 2 次提交
    • V
      hv_netvsc: rework link status change handling · 27a70af3
      Vitaly Kuznetsov 提交于
      There are several issues in hv_netvsc driver with regards to link status
      change handling:
      - RNDIS_STATUS_NETWORK_CHANGE results in calling userspace helper doing
        '/etc/init.d/network restart' and this is inappropriate and broken for
        many reasons.
      - link_watch infrastructure only sends one notification per second and
        in case of e.g. paired disconnect/connect events we get only one
        notification with last status. This makes it impossible to handle such
        situations in userspace.
      
      Redo link status changes handling in the following way:
      - Create a list of reconfig events in network device context.
      - On a reconfig event add it to the list of events and schedule
        netvsc_link_change().
      - In netvsc_link_change() ensure 2-second delay between link status
        changes.
      - Handle RNDIS_STATUS_NETWORK_CHANGE as a paired disconnect/connect event.
      Signed-off-by: NVitaly Kuznetsov <vkuznets@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      27a70af3
    • R
      unix: use wq_has_sleeper in unix_dgram_recvmsg · 77b75f4d
      Rainer Weikusat 提交于
      The current unix_dgram_recvmsg does a wake up for every received
      datagram. This seems wasteful as only SOCK_DGRAM client sockets in an
      n:1 association with a server socket will ever wait because of the
      associated condition. The patch below changes the function such that the
      wake up only happens if wq_has_sleeper indicates that someone actually
      wants to be notified. Testing with SOCK_SEQPACKET and SOCK_DGRAM socket
      seems to confirm that this is an improvment.
      Signed-Off-By: NRainer Weikusat <rweikusat@mobileactivedefense.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      77b75f4d
  2. 01 12月, 2015 16 次提交
  3. 30 11月, 2015 1 次提交
  4. 26 11月, 2015 17 次提交
  5. 25 11月, 2015 4 次提交