1. 07 2月, 2019 1 次提交
    • I
      dpaa2-eth: Use a single page per Rx buffer · 27c87486
      Ioana Ciocoi Radulescu 提交于
      Instead of allocating page fragments via the network stack,
      use the page allocator directly. For now, we consume one page
      for each Rx buffer.
      
      With the new memory model we are free to consider adding more
      XDP support.
      
      Performance decreases slightly in some IP forwarding cases.
      No visible effect on termination traffic. The driver memory
      footprint increases as a result of this change, but it is
      still small enough to not really matter.
      
      Another side effect is that now Rx buffer alignment requirements
      are naturally satisfied without any additional actions needed.
      Remove alignment related code, except in the buffer layout
      information conveyed to MC, as hardware still needs to know the
      alignment value we guarantee.
      Signed-off-by: NIoana Ciornei <ioana.ciornei@nxp.com>
      Signed-off-by: NIoana Radulescu <ruxandra.radulescu@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      27c87486
  2. 20 1月, 2019 1 次提交
  3. 18 1月, 2019 1 次提交
    • I
      dpaa2-eth: Fix ndo_stop routine · 68d74315
      Ioana Ciocoi Radulescu 提交于
      In the current implementation, on interface down we disabled NAPI and
      then manually drained any remaining ingress frames. This could lead
      to a situation when, under heavy traffic, the data availability
      notification for some of the channels would not get rearmed correctly.
      
      Change the implementation such that we let all remaining ingress frames
      be processed as usual and only disable NAPI once the hardware queues
      are empty.
      
      We also add a wait on the Tx side, to allow hardware time to process
      all in-flight Tx frames before issueing the disable command.
      Signed-off-by: NIoana Radulescu <ruxandra.radulescu@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      68d74315
  4. 30 11月, 2018 1 次提交
  5. 29 11月, 2018 8 次提交
  6. 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
  7. 10 11月, 2018 1 次提交
  8. 16 10月, 2018 5 次提交
  9. 09 10月, 2018 1 次提交
  10. 03 10月, 2018 4 次提交
  11. 25 9月, 2018 1 次提交
  12. 02 9月, 2018 2 次提交
  13. 02 8月, 2018 1 次提交
  14. 27 7月, 2018 2 次提交
  15. 25 7月, 2018 1 次提交
  16. 13 7月, 2018 1 次提交
  17. 10 7月, 2018 5 次提交
  18. 29 4月, 2018 1 次提交