1. 12 6月, 2015 30 次提交
  2. 11 6月, 2015 10 次提交
    • G
      net/ps3_gelic: Fix build error with DEBUG · 7161d18f
      Geoff Levand 提交于
      When the DEBUG preprocessor macro is defined the ps3_gelic_net driver build
      fails due to an undeclared routine gelic_descr_get_status().  This problem
      was introduced during the code cleanup of commit
      6b0c21ce (net: Fix p3_gelic_net sparse warnings),
      which re-arranged the ordering of some of the gelic routines.
      
      This change just moves the gelic_descr_get_status() routine up in the
      ps3_gelic_net.c source file. There is no functional change.
      
      Fixes build errors like these:
      
        drivers/net/ethernet/toshiba/ps3_gelic_net.c: error: implicit declaration of function gelic_descr_get_status
      Signed-off-by: NGeoff Levand <geoff@infradead.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7161d18f
    • H
      net/ethtool: Add current supported tunable options · a4244b0c
      Hadar Hen Zion 提交于
      Add strings array of the current supported tunable options.
      Signed-off-by: NHadar Hen Zion <hadarh@mellanox.com>
      Reviewed-by: NAmir Vadai <amirv@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a4244b0c
    • D
      Merge branch 'broadcom-MDIO-turn-around' · de847254
      David S. Miller 提交于
      Florian Fainelli says:
      
      ====================
      net: broadcom MDIO support for broken turn-around
      
      These two patches update the GENET and UniMAC MDIO controllers to deal with
      PHYs that are known to have a broken turn-around bug (e.g: BCM53125 and others)
      
      This utilizes the infrastructure that code recently added to do that in 'net-next'.
      
      Note that the changes look nearly identical and I will try to address the MDIO
      code duplication between GENET and UniMAC in a future patch series.
      
      Changes in v2:
      - remove brcmphy.h include in mdio-bcm-unimac.c
      - use the same comment as with GENET's MDIO read function
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      de847254
    • F
      net: phy: mdio-bcm-unimac: handle broken turn-around for specific PHYs · 1a3f4e83
      Florian Fainelli 提交于
      Some Ethernet PHYs/switches such as Broadcom's BCM53125 have a hardware bug
      which makes them not release the MDIO line during turn-around time.  This gets
      flagged by the UniMAC MDIO controller as a read failure, and we fail the read
      transaction.
      
      Check the MDIO bus phy_ignore_ta_mask bitmask for the PHY we are reading
      from and if it is listed in this bitmask, ignore the read failure and
      proceed with returning the data we read out of the controller.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1a3f4e83
    • F
      net: bcmgenet: handle broken turn-around for specific PHYs · 9d3366e9
      Florian Fainelli 提交于
      Some Ethernet PHYs/switches such as Broadcom's BCM53125 have a hardware
      bug which makes them not release the MDIO line during turn-around time.
      This gets flagged by the GENET MDIO controller as a read failure, and we
      fail the read transaction.
      
      Check the MDIO bus phy_ignore_ta_mask bitmask for the PHY we are reading
      from and if it is listed in this bitmask, ignore the read failure and
      proceed with returning the data we read out of the controller.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9d3366e9
    • G
      net: phy: davicom: add IDs for DM9161B and C variants · 1059261e
      Gustavo Zacarias 提交于
      Add PHY IDs for Davicom DM9161B and DM9161C variants.
      Tested with a DM9161C on a custom Atmel-based SAM9X25 board in RMII
      mode.
      
      The DM9161B uses the same model id with just the LSB bit of the version
      id changing (which is masked out).
      
      For all intents and purposes they're the same as the DM9161A with an
      added GPSI mode and better fabrication process.
      Signed-off-by: NGustavo Zacarias <gustavo@zacarias.com.ar>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1059261e
    • S
      Renesas Ethernet AVB PTP clock driver · a0d2f206
      Sergei Shtylyov 提交于
      Ethernet AVB device includes the gPTP  timer, so we can implement a PTP clock
      driver.  We're doing that in a separate file, with  the main Ethernet driver
      calling the PTP driver's [de]initialization and interrupt handler functions.
      Unfortunately, the clock seems tightly coupled with the AVB-DMAC, so when that
      one leaves the operation mode, we have to unregister the PTP clock... :-(
      
      Based on the original patches by Masaru Nagai.
      Signed-off-by: NMasaru Nagai <masaru.nagai.vx@renesas.com>
      Signed-off-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a0d2f206
    • S
      Renesas Ethernet AVB driver proper · c156633f
      Sergei Shtylyov 提交于
      Ethernet AVB includes an Gigabit Ethernet controller (E-MAC) that is basically
      compatible with SuperH Gigabit Ethernet E-MAC.  Ethernet AVB has  a  dedicated
      direct memory access controller (AVB-DMAC) that is a new design compared to the
      SuperH E-DMAC. The AVB-DMAC is compliant with 3 standards formulated for IEEE
      802.1BA: IEEE 802.1AS timing and synchronization protocol, IEEE 802.1Qav real-
      time transfer, and the IEEE 802.1Qat stream reservation protocol.
      
      The  driver only supports device tree probing, so the binding document is
      included in this patch.
      
      Based on the original patches by Mitsuhiro Kimura.
      Signed-off-by: NMitsuhiro Kimura <mitsuhiro.kimura.kc@renesas.com>
      Signed-off-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c156633f
    • K
      tcp: add CDG congestion control · 2b0a8c9e
      Kenneth Klette Jonassen 提交于
      CAIA Delay-Gradient (CDG) is a TCP congestion control that modifies
      the TCP sender in order to [1]:
      
        o Use the delay gradient as a congestion signal.
        o Back off with an average probability that is independent of the RTT.
        o Coexist with flows that use loss-based congestion control, i.e.,
          flows that are unresponsive to the delay signal.
        o Tolerate packet loss unrelated to congestion. (Disabled by default.)
      
      Its FreeBSD implementation was presented for the ICCRG in July 2012;
      slides are available at http://www.ietf.org/proceedings/84/iccrg.html
      
      Running the experiment scenarios in [1] suggests that our implementation
      achieves more goodput compared with FreeBSD 10.0 senders, although it also
      causes more queueing delay for a given backoff factor.
      
      The loss tolerance heuristic is disabled by default due to safety concerns
      for its use in the Internet [2, p. 45-46].
      
      We use a variant of the Hybrid Slow start algorithm in tcp_cubic to reduce
      the probability of slow start overshoot.
      
      [1] D.A. Hayes and G. Armitage. "Revisiting TCP congestion control using
          delay gradients." In Networking 2011, pages 328-341. Springer, 2011.
      [2] K.K. Jonassen. "Implementing CAIA Delay-Gradient in Linux."
          MSc thesis. Department of Informatics, University of Oslo, 2015.
      
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: Yuchung Cheng <ycheng@google.com>
      Cc: Stephen Hemminger <stephen@networkplumber.org>
      Cc: Neal Cardwell <ncardwell@google.com>
      Cc: David Hayes <davihay@ifi.uio.no>
      Cc: Andreas Petlund <apetlund@simula.no>
      Cc: Dave Taht <dave.taht@bufferbloat.net>
      Cc: Nicolas Kuhn <nicolas.kuhn@telecom-bretagne.eu>
      Signed-off-by: NKenneth Klette Jonassen <kennetkl@ifi.uio.no>
      Acked-by: NYuchung Cheng <ycheng@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2b0a8c9e
    • K
      tcp: export tcp_enter_cwr() · 7782ad8b
      Kenneth Klette Jonassen 提交于
      Upcoming tcp_cdg uses tcp_enter_cwr() to initiate PRR. Export this
      function so that CDG can be compiled as a module.
      
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: Yuchung Cheng <ycheng@google.com>
      Cc: Stephen Hemminger <stephen@networkplumber.org>
      Cc: Neal Cardwell <ncardwell@google.com>
      Cc: David Hayes <davihay@ifi.uio.no>
      Cc: Andreas Petlund <apetlund@simula.no>
      Cc: Dave Taht <dave.taht@bufferbloat.net>
      Cc: Nicolas Kuhn <nicolas.kuhn@telecom-bretagne.eu>
      Signed-off-by: NKenneth Klette Jonassen <kennetkl@ifi.uio.no>
      Acked-by: NYuchung Cheng <ycheng@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7782ad8b