1. 24 7月, 2021 2 次提交
  2. 09 4月, 2021 2 次提交
  3. 03 4月, 2021 2 次提交
  4. 31 3月, 2021 1 次提交
  5. 18 3月, 2021 1 次提交
  6. 16 3月, 2021 4 次提交
  7. 11 3月, 2021 5 次提交
  8. 20 1月, 2021 1 次提交
  9. 22 12月, 2020 1 次提交
  10. 15 11月, 2020 1 次提交
  11. 24 10月, 2020 3 次提交
  12. 17 9月, 2020 1 次提交
  13. 03 9月, 2020 3 次提交
  14. 01 9月, 2020 1 次提交
  15. 28 8月, 2020 2 次提交
  16. 04 8月, 2020 3 次提交
  17. 21 7月, 2020 1 次提交
    • S
      ionic: use mutex to protect queue operations · 0925e9db
      Shannon Nelson 提交于
      The ionic_wait_on_bit_lock() was a open-coded mutex knock-off
      used only for protecting the queue reset operations, and there
      was no reason not to use the real thing.  We can use the lock
      more correctly and to better protect the queue stop and start
      operations from cross threading.  We can also remove a useless
      and expensive bit operation from the Rx path.
      
      This fixes a case found where the link_status_check from a link
      flap could run into an MTU change and cause a crash.
      
      Fixes: beead698 ("ionic: Add the basic NDO callbacks for netdev support")
      Signed-off-by: NShannon Nelson <snelson@pensando.io>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0925e9db
  18. 13 5月, 2020 2 次提交
    • S
      ionic: add more ethtool stats · f64e0c56
      Shannon Nelson 提交于
      Add hardware port stats and a few more driver collected
      statistics to the ethtool stats output.
      Signed-off-by: NShannon Nelson <snelson@pensando.io>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f64e0c56
    • S
      ionic: support longer tx sg lists · 5b3f3f2a
      Shannon Nelson 提交于
      The version 1 Tx queues can use longer SG lists than the
      original version 0 queues, but we need to check to see if the
      firmware supports the v1 Tx queues.  This implements the queue
      type query for all queue types, and uses the information to
      set up for using the longer Tx SG lists.
      
      Because the Tx SG list can be longer, we need to limit the
      max ring length to be sure we stay inside the boundaries of a
      DMA allocation max size, so we lower the max Tx ring size.
      
      The driver sets its highest known version in the Q_IDENTITY
      command, and the FW returns the highest version that it knows,
      bounded by the driver's version.  The negotiated version number
      is later used in the Q_INIT commands.
      Signed-off-by: NShannon Nelson <snelson@pensando.io>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5b3f3f2a
  19. 31 3月, 2020 1 次提交
  20. 10 3月, 2020 1 次提交
  21. 20 2月, 2020 1 次提交
  22. 08 1月, 2020 1 次提交
    • S
      ionic: restrict received packets to mtu size · c37d6e3f
      Shannon Nelson 提交于
      Make sure the NIC drops packets that are larger than the
      specified MTU.
      
      The front end of the NIC will accept packets larger than MTU and
      will copy all the data it can to fill up the driver's posted
      buffers - if the buffers are not long enough the packet will
      then get dropped.  With the Rx SG buffers allocagted as full
      pages, we are currently setting up more space than MTU size
      available and end up receiving some packets that are larger
      than MTU, up to the size of buffers posted.  To be sure the
      NIC doesn't waste our time with oversized packets we need to
      lie a little in the SG descriptor about how long is the last
      SG element.
      
      At dealloc time, we know the allocation was a page, so the
      deallocation doesn't care about what length we put in the
      descriptor.
      Signed-off-by: NShannon Nelson <snelson@pensando.io>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c37d6e3f