1. 02 12月, 2015 4 次提交
    • B
      sfc: make TSO version a per-queue parameter · 93171b14
      Bert Kenward 提交于
      The Solarflare 8000 series NIC will use a new TSO scheme. The current
      driver refuses to load if the current TSO scheme is not found. Remove
      that check and instead make the TSO version a per-queue parameter.
      Signed-off-by: NBert Kenward <bkenward@solarflare.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      93171b14
    • N
      net: add support for netdev notifier error injection · 02fff96a
      Nikolay Aleksandrov 提交于
      This module allows to insert errors in some of netdevice's notifier
      events. All network drivers use these notifiers to signal various events
      and to check if they are allowed, e.g. PRECHANGEMTU and CHANGEMTU
      afterwards. Until recently I had to run failure tests by injecting
      a custom module, but now this infrastructure makes it trivial to test
      these failure paths. Some of the recent bugs I fixed were found using
      this module.
      Here's an example:
       $ cd /sys/kernel/debug/notifier-error-inject/netdev
       $ echo -22 > actions/NETDEV_CHANGEMTU/error
       $ ip link set eth0 mtu 1024
       RTNETLINK answers: Invalid argument
      
      CC: Akinobu Mita <akinobu.mita@gmail.com>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: netdev <netdev@vger.kernel.org>
      Signed-off-by: NNikolay Aleksandrov <nikolay@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      02fff96a
    • 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 2 次提交
    • D
      Merge branch 'sh_eth-remove-obsolete-platform_ids' · 0ba44351
      David S. Miller 提交于
      Geert Uytterhoeven says:
      
      ====================
      sh_eth: Remove obsolete platform_device_id entries
      
      Since commit 3d7608e4 ("ARM: shmobile: bockw: remove legacy
      board file and config"), which is in v4.4-rc1, shmobile SoCs are only
      supported in generic DT-only ARM multi-platform builds.  The sh_eth
      driver doesn't need to match platform devices by name anymore, hence
      this series removes the corresponding platform_device_id entries.
      
      Changes since v2:
        - More Acks,
        - Platform dependency has entered mainline,
      
      Changes since v1:
        - Protect some data and functions by #ifdef CONFIG_OF to silence
          unused compiler warnings on SH,
        - New patches 3 and 4.
      
      Thanks for applying!
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0ba44351
    • G
      sh_eth: Remove obsolete r8a777x-ether platform_device_id entry · 1af2729c
      Geert Uytterhoeven 提交于
      Since commit 3d7608e4 ("ARM: shmobile: bockw: remove legacy
      board file and config"), R-Car Gen1 SoCs are only supported in generic
      DT-only ARM multi-platform builds.  The driver doesn't need to match
      platform devices by name anymore, hence remove the corresponding
      platform_device_id entry.
      
      Protect sh_eth_set_rate_r8a777x() and r8a777x_data by #ifdef CONFIG_OF,
      as they're now referenced on DT platforms only.
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Acked-by: NSimon Horman <horms+renesas@verge.net.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1af2729c