1. 09 12月, 2015 23 次提交
  2. 08 12月, 2015 10 次提交
  3. 07 12月, 2015 7 次提交
    • I
      mac80211: handle HW ROC expired properly · 1b894521
      Ilan Peer 提交于
      In case of HW ROC, when the driver reports that the ROC expired,
      it is not sufficient to purge the ROCs based on the remaining
      time, as it possible that the device finished the ROC session
      before the actual requested duration.
      
      To handle such cases, in case of ROC expired notification from
      the driver, complete all the ROCs which are marked with hw_begun,
      regardless of the remaining duration.
      Signed-off-by: NIlan Peer <ilan.peer@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      1b894521
    • R
      af_unix: fix unix_dgram_recvmsg entry locking · 64874280
      Rainer Weikusat 提交于
      The current unix_dgram_recvsmg code acquires the u->readlock mutex in
      order to protect access to the peek offset prior to calling
      __skb_recv_datagram for actually receiving data. This implies that a
      blocking reader will go to sleep with this mutex held if there's
      presently no data to return to userspace. Two non-desirable side effects
      of this are that a later non-blocking read call on the same socket will
      block on the ->readlock mutex until the earlier blocking call releases it
      (or the readers is interrupted) and that later blocking read calls
      will wait longer than the effective socket read timeout says they
      should: The timeout will only start 'ticking' once such a reader hits
      the schedule_timeout in wait_for_more_packets (core.c) while the time it
      already had to wait until it could acquire the mutex is unaccounted for.
      
      The patch avoids both by using the __skb_try_recv_datagram and
      __skb_wait_for_more packets functions created by the first patch to
      implement a unix_dgram_recvmsg read loop which releases the readlock
      mutex prior to going to sleep and reacquires it as needed
      afterwards. Non-blocking readers will thus immediately return with
      -EAGAIN if there's no data available regardless of any concurrent
      blocking readers and all blocking readers will end up sleeping via
      schedule_timeout, thus honouring the configured socket receive timeout.
      Signed-off-by: NRainer Weikusat <rweikusat@mobileactivedefense.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      64874280
    • R
      core: enable more fine-grained datagram reception control · ea3793ee
      Rainer Weikusat 提交于
      The __skb_recv_datagram routine in core/ datagram.c provides a general
      skb reception factility supposed to be utilized by protocol modules
      providing datagram sockets. It encompasses both the actual recvmsg code
      and a surrounding 'sleep until data is available' loop. This is
      inconvenient if a protocol module has to use additional locking in order
      to maintain some per-socket state the generic datagram socket code is
      unaware of (as the af_unix code does). The patch below moves the recvmsg
      proper code into a new __skb_try_recv_datagram routine which doesn't
      sleep and renames wait_for_more_packets to
      __skb_wait_for_more_packets, both routines being exported interfaces. The
      original __skb_recv_datagram routine is reimplemented on top of these
      two functions such that its user-visible behaviour remains unchanged.
      Signed-off-by: NRainer Weikusat <rweikusat@mobileactivedefense.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ea3793ee
    • A
      PHY: DP83867: Remove looking in parent device for OF properties · 7bf9ae01
      Andrew Lunn 提交于
      Device tree properties for a phy device are expected to be in the phy
      node. The current code for the DP83867 also tries to look in the
      parent node. The devices binding documentation does not mention this,
      no current device tree file makes use of this, and it is not behaviour
      we want. So remove looking in the parent device.
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Acked-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7bf9ae01
    • B
      net: cdc_ncm: add "ndp_to_end" sysfs attribute · 404814af
      Bjørn Mork 提交于
      Adding a writable sysfs attribute for the "NDP to end"
      quirk flag.
      
      This makes it easier for end users to test new devices for
      this firmware bug.  We've been lucky so far, but we should
      not depend on reporters capable of rebuilding the driver.
      
      Cc: Enrico Mioso <mrkiko.rs@gmail.com>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      404814af
    • D
      Merge branch 'mlx4-HA-LAG-SRIOV-VF' · 0fe3e204
      David S. Miller 提交于
      Or Gerlitz says:
      
      ====================
      Add HA and LAG support for mlx4 SRIOV VFs
      
      This series is built upon the code added in commit ce388fff "Merge branch
      'mlx4-next'" which added HA and LAG support to mlx4 RoCE and SRIOV services.
      
      We add HA and Link Aggregation support to single ported mlx4 Ethernet VFs.
      
      In this case, the PF Ethernet interfaces are bonded, the VFs see single
      port HW devices (already supported) -- however, now this port is highly
      available. This means that all VF HW QPs (both VF Ethernet driver and VF
      RoCE / RAW QPs) are subject to the V2P (Virtual-To-Physical) mapping which
      is managed by the PF driver, and hence resilient across link failures and
      such events.
      
      When bonding operates in Dynamic link aggregation (802.3ad) mode, traffic
      from each VF will go over the VF "base port" (the port this VF is assigned
      to by the admin) as long as this port is up. When the port fails, traffic
      from all VFs that are defined on this port will move to the other port, and
      be back to their base-port when it recovers.
      
      Moni and Or.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0fe3e204
    • M
      net/mlx4_core: Support the HA mode for SRIOV VFs too · e57968a1
      Moni Shoua 提交于
      When the mlx4 driver runs in HA mode, and all VFs are single ported
      ones, we make their single port Highly-Available.
      
      This is done by taking advantage of the HA mode properties (following
      bonding changes with programming the port V2P map, etc) and adding
      the missing parts which are unique to SRIOV such as mirroring VF
      steering rules on both ports.
      
      Due to limits on the MAC and VLAN table this mode is enabled only when
      number of total VFs is under 64.
      Signed-off-by: NMoni Shoua <monis@mellanox.com>
      Reviewed-by: NJack Morgenstein <jackm@dev.mellanox.co.il>
      Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e57968a1