1. 29 11月, 2018 4 次提交
  2. 17 11月, 2018 3 次提交
    • I
      dpaa2-eth: bql support · 569dac6a
      Ioana Ciocoi Radulescu 提交于
      Add support for byte queue limit.
      
      On NAPI poll, we save the total number of Tx confirmed frames/bytes
      and register them with bql at the end of the poll function.
      Signed-off-by: NIoana Radulescu <ruxandra.radulescu@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      569dac6a
    • I
      dpaa2-eth: Update callback signature · dbcdf728
      Ioana Ciocoi Radulescu 提交于
      Change the frame consume callback signature:
      * the entire FQ structure is passed to the callback instead
      of just the queue index
      * the NAPI structure can be easily obtained from the channel
      it is associated to, so we don't need to pass it explicitly
      Signed-off-by: NIoana Radulescu <ruxandra.radulescu@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dbcdf728
    • I
      dpaa2-eth: Don't use multiple queues per channel · b0e4f37b
      Ioana Ciocoi Radulescu 提交于
      The DPNI object on which we build a network interface has a
      certain number of {Rx, Tx, Tx confirmation} frame queues as
      resources. The default hardware setup offers one queue of each
      type, as well as one DPCON channel, for each core available
      in the system.
      
      There are however cases where the number of queues is greater
      than the number of cores or channels. Until now, we configured
      and used all the frame queues associated with a DPNI, even if it
      meant assigning multiple queues of one type to the same channel.
      
      Update the driver to only use a number of queues equal to the
      number of channels, ensuring each channel will contain exactly
      one Rx and one Tx confirmation queue.
      
      >From the user viewpoint, this change is completely transparent.
      Performance wise there is no impact in most scenarios. In case
      the number of queues is larger than and not a multiple of the
      number of channels, Rx hash distribution offers now better load
      balancing between cores, which can have a positive impact on
      overall system performance.
      Signed-off-by: NIoana Radulescu <ruxandra.radulescu@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b0e4f37b
  3. 09 10月, 2018 1 次提交
  4. 03 10月, 2018 4 次提交
  5. 25 9月, 2018 1 次提交
  6. 02 9月, 2018 1 次提交
  7. 05 8月, 2018 1 次提交
  8. 02 8月, 2018 1 次提交
  9. 27 7月, 2018 2 次提交
  10. 25 7月, 2018 2 次提交
  11. 29 4月, 2018 2 次提交
  12. 23 3月, 2018 5 次提交
  13. 14 3月, 2018 2 次提交
  14. 08 1月, 2018 1 次提交
    • I
      staging: fsl-dpaa2/eth: Use affine DPIO services · 7ec0596f
      Ioana Radulescu 提交于
      Use the newly added DPIO service API to map cpu-affine DPIO services
      to channels.
      
      The DPAA2 Ethernet driver already had mappings of frame queues and
      channels to cpus, but had no control over the DPIOs used. We can
      now ensure full affinity of hotpath hardware resources to cores,
      which improves performance and almost eliminates some resource
      contentions (e.g. enqueue/dequeue busy counters should be close to
      zero from now on).
      
      Making the pull channel operation core affine brings the most
      significant benefits. This ensures the same DPIO service will be
      used for all dequeue commands issued for a certain frame queue,
      which is in line with the way hardware is optimized.
      
      Additionally, we also use affine DPIOs for the frame enqueue and
      buffer release operations in order to avoid resource contention.
      dpaa2_io_service_register() and dpaa2_io_service_rearm()
      functions receive an affine DPIO as argument mostly for uniformity,
      but this doesn't change the previous functionality.
      Signed-off-by: NIoana Radulescu <ruxandra.radulescu@nxp.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7ec0596f
  15. 22 12月, 2017 1 次提交
  16. 08 12月, 2017 6 次提交
  17. 03 11月, 2017 2 次提交
  18. 01 9月, 2017 1 次提交