1. 29 5月, 2020 38 次提交
  2. 28 5月, 2020 2 次提交
    • K
      ice: Check UMEM FQ size when allocating bufs · 3f0d97cd
      Krzysztof Kazimierczak 提交于
      If a UMEM is present on a queue when an interface/queue pair is being
      enabled, the driver will try to prepare the Rx buffers in advance to
      improve performance. However, if fill queue is shorter than HW Rx ring,
      the driver will report failure after getting the last address from the
      fill queue.
      
      This still lets the driver process the packets correctly during the NAPI
      poll, but leads to a constant NAPI rescheduling. Not allocating the
      buffers in advance would result in a potential performance decrease.
      
      Commit d57d7642 ("xsk: Add API to check for available entries in FQ")
      provides an API that lets drivers check the number of addresses that the
      fill queue holds.
      
      Notify the user if fill queue is not long enough to prepare all buffers
      before packet processing starts, and allocate the buffers during the
      NAPI poll. If the fill queue size is sufficient, prepare Rx buffers in
      advance.
      Signed-off-by: NKrzysztof Kazimierczak <krzysztof.kazimierczak@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      3f0d97cd
    • A
      net/mlx5: DR, Split RX and TX lock for parallel insertion · ed03a418
      Alex Vesker 提交于
      Change the locking flow to support RX and TX locks, splitting
      the single lock to two will allow inserting rules in parallel
      for RX and TX parts of the FDB.
      
      Locking the dr_domain will be done by locking the RX domain
      and the TX domain locks, this is mostly used for control operations
      on the dr_domain. When inserting rules for RX or TX the single
      nic_doamin RX or TX lock will be used. Splitting the lock is safe since
      RX and TX domains are logically separated from each other, shared
      objects such the send-ring and memory pool are protected by locks.
      Signed-off-by: NAlex Vesker <valex@mellanox.com>
      Reviewed-by: NMark Bloch <markb@mellanox.com>
      Reviewed-by: NErez Shitrit <erezsh@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      ed03a418