1. 24 8月, 2017 1 次提交
  2. 31 7月, 2017 2 次提交
    • A
      net: fec: Allow reception of frames bigger than 1522 bytes · fbbeefdd
      Andrew Lunn 提交于
      The FEC Receive Control Register has a 14 bit field indicating the
      longest frame that may be received. It is being set to 1522. Frames
      longer than this are discarded, but counted as being in error.
      
      When using DSA, frames from the switch has an additional header,
      either 4 or 8 bytes if a Marvell switch is used. Thus a full MTU frame
      of 1522 bytes received by the switch on a port becomes 1530 bytes when
      passed to the host via the FEC interface.
      
      Change the maximum receive size to 2048 - 64, where 64 is the maximum
      rx_alignment applied on the receive buffer for AVB capable FEC
      cores. Use this value also for the maximum receive buffer size. The
      driver is already allocating a receive SKB of 2048 bytes, so this
      change should not have any significant effects.
      
      Tested on imx51, imx6, vf610.
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fbbeefdd
    • A
      net: fec: Issue error for missing but expected PHY · 9558df3a
      Andrew Lunn 提交于
      If the PHY is missing but expected, e.g. because of a typ0 in the dt
      file, it is not possible to open the interface. ip link returns:
      
      RTNETLINK answers: No such device
      
      It is not very obvious what the problem is. Add a netdev_err() in this
      case to make it easier to debug the issue.
      
      [   21.409385] fec 2188000.ethernet eth0: Unable to connect to phy
      RTNETLINK answers: No such device
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Acked-by: NFugang Duan <fugang.duan@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9558df3a
  3. 11 6月, 2017 3 次提交
  4. 07 6月, 2017 1 次提交
  5. 25 5月, 2017 1 次提交
  6. 12 4月, 2017 6 次提交
  7. 24 3月, 2017 1 次提交
  8. 15 2月, 2017 1 次提交
  9. 31 1月, 2017 1 次提交
  10. 07 12月, 2016 1 次提交
  11. 01 12月, 2016 1 次提交
    • N
      net: fec: cache statistics while device is down · 80cca775
      Nikita Yushchenko 提交于
      Execution 'ethtool -S' on fec device that is down causes OOPS on Vybrid
      board:
      
      Unhandled fault: external abort on non-linefetch (0x1008) at 0xe0898200
      pgd = ddecc000
      [e0898200] *pgd=9e406811, *pte=400d1653, *ppte=400d1453
      Internal error: : 1008 [#1] SMP ARM
      ...
      
      Reason of OOPS is that fec_enet_get_ethtool_stats() accesses fec
      registers while IPG clock is stopped by PM.
      
      Fix that by caching statistics in fec_enet_private. Cache is initialized
      at device probe time, and updated at statistics request time if device
      is up, and also just before turning device off on down path.
      
      Additional locking is not needed, since cached statistics is accessed
      either before device is registered, or under rtnl_lock().
      Signed-off-by: NNikita Yushchenko <nikita.yoush@cogentembedded.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      80cca775
  12. 30 11月, 2016 1 次提交
  13. 16 11月, 2016 1 次提交
  14. 24 10月, 2016 1 次提交
  15. 21 10月, 2016 1 次提交
  16. 13 10月, 2016 1 次提交
    • J
      net: deprecate eth_change_mtu, remove usage · a52ad514
      Jarod Wilson 提交于
      With centralized MTU checking, there's nothing productive done by
      eth_change_mtu that isn't already done in dev_set_mtu, so mark it as
      deprecated and remove all usage of it in the kernel. All callers have been
      audited for calls to alloc_etherdev* or ether_setup directly, which means
      they all have a valid dev->min_mtu and dev->max_mtu. Now eth_change_mtu
      prints out a netdev_warn about being deprecated, for the benefit of
      out-of-tree drivers that might be utilizing it.
      
      Of note, dvb_net.c actually had dev->mtu = 4096, while using
      eth_change_mtu, meaning that if you ever tried changing it's mtu, you
      couldn't set it above 1500 anymore. It's now getting dev->max_mtu also set
      to 4096 to remedy that.
      
      v2: fix up lantiq_etop, missed breakage due to drive not compiling on x86
      
      CC: netdev@vger.kernel.org
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a52ad514
  17. 03 10月, 2016 1 次提交
  18. 27 9月, 2016 3 次提交
  19. 14 8月, 2016 1 次提交
  20. 27 6月, 2016 2 次提交
  21. 13 6月, 2016 1 次提交
  22. 12 6月, 2016 1 次提交
  23. 08 6月, 2016 1 次提交
  24. 01 6月, 2016 1 次提交
  25. 11 5月, 2016 2 次提交
  26. 05 5月, 2016 1 次提交
  27. 19 4月, 2016 1 次提交
  28. 01 4月, 2016 1 次提交