1. 06 Jun, 2019 7 commits
    • Heiner Kallweit's avatar
      net: phy: remove state PHY_FORCING · 2bd229df
      Heiner Kallweit authored
      In the early days of phylib we had a functionality that changed to the
      next lower speed in fixed mode if no link was established after a
      certain period of time. This functionality has been removed years ago,
      and state PHY_FORCING isn't needed any longer. Instead we can go from
      UP to RUNNING or NOLINK directly (same as in autoneg mode).
      Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2bd229df
    • Zhu Yanjun's avatar
      net: rds: add per rds connection cache statistics · fe3475af
      Zhu Yanjun authored
      The variable cache_allocs is to indicate how many frags (KiB) are in one
      rds connection frag cache.
      The command "rds-info -Iv" will output the rds connection cache
      statistics as below:
      "
      RDS IB Connections:
            LocalAddr RemoteAddr Tos SL  LocalDev            RemoteDev
            1.1.1.14 1.1.1.14   58 255  fe80::2:c903:a:7a31 fe80::2:c903:a:7a31
            send_wr=256, recv_wr=1024, send_sge=8, rdma_mr_max=4096,
            rdma_mr_size=257, cache_allocs=12
      "
      This means that there are about 12KiB frag in this rds connection frag
      cache.
      Since rds.h in rds-tools is not related with the kernel rds.h, the change
      in kernel rds.h does not affect rds-tools.
      rds-info in rds-tools 2.0.5 and 2.0.6 is tested with this commit. It works
      well.
      Signed-off-by: default avatarZhu Yanjun <yanjun.zhu@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fe3475af
    • David S. Miller's avatar
      Merge branch 'dwmac-mediatek' · dceebd4c
      David S. Miller authored
      Biao Huang says:
      
      ====================
      complete dwmac-mediatek driver and fix flow control issue
      
      Changes in v2:
              patch#1: there is no extra action in mediatek_dwmac_remove, remove it
      
      v1:
      This series mainly complete dwmac-mediatek driver:
              1. add power on/off operations for dwmac-mediatek.
              2. disable rx watchdog to reduce rx path reponding time.
              3. change the default value of tx-frames from 25 to 1, so
                 ptp4l will test pass by default.
      
      and also fix the issue that flow control won't be disabled any more
      once being enabled.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      dceebd4c
    • Biao Huang's avatar
      net: stmmac: dwmac4: fix flow control issue · ee326fd0
      Biao Huang authored
      Current dwmac4_flow_ctrl will not clear
      GMAC_RX_FLOW_CTRL_RFE/GMAC_RX_FLOW_CTRL_RFE bits,
      so MAC hw will keep flow control on although expecting
      flow control off by ethtool. Add codes to fix it.
      
      Fixes: 477286b5 ("stmmac: add GMAC4 core support")
      Signed-off-by: default avatarBiao Huang <biao.huang@mediatek.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ee326fd0
    • Biao Huang's avatar
      net: stmmac: modify default value of tx-frames · d2facb4b
      Biao Huang authored
      the default value of tx-frames is 25, it's too late when
      passing tstamp to stack, then the ptp4l will fail:
      
      ptp4l -i eth0 -f gPTP.cfg -m
      ptp4l: selected /dev/ptp0 as PTP clock
      ptp4l: port 1: INITIALIZING to LISTENING on INITIALIZE
      ptp4l: port 0: INITIALIZING to LISTENING on INITIALIZE
      ptp4l: port 1: link up
      ptp4l: timed out while polling for tx timestamp
      ptp4l: increasing tx_timestamp_timeout may correct this issue,
             but it is likely caused by a driver bug
      ptp4l: port 1: send peer delay response failed
      ptp4l: port 1: LISTENING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
      
      ptp4l tests pass when changing the tx-frames from 25 to 1 with
      ethtool -C option.
      It should be fine to set tx-frames default value to 1, so ptp4l will pass
      by default.
      Signed-off-by: default avatarBiao Huang <biao.huang@mediatek.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d2facb4b
    • Biao Huang's avatar
      net: stmmac: dwmac-mediatek: disable rx watchdog · 79223239
      Biao Huang authored
      disable rx watchdog for dwmac-mediatek, then the hw will
      issue a rx interrupt once receiving a packet, so the responding time
      for rx path will be reduced.
      Signed-off-by: default avatarBiao Huang <biao.huang@mediatek.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      79223239
    • Biao Huang's avatar
      net: stmmac: dwmac-mediatek: enable Ethernet power domain · 5aa070dc
      Biao Huang authored
      add Ethernet power on/off operations in init/exit flow.
      Signed-off-by: default avatarBiao Huang <biao.huang@mediatek.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5aa070dc
  2. 05 Jun, 2019 33 commits