1. 15 4月, 2015 5 次提交
  2. 10 4月, 2015 1 次提交
  3. 30 3月, 2015 1 次提交
    • H
      cxgb4: Allocate dynamic mem. for egress and ingress queue maps · 4b8e27a8
      Hariprasad Shenai 提交于
      QIDs (egress/ingress) from firmware in FW_*_CMD.alloc command
      can be anywhere in the range from EQ(IQFLINT)_START to EQ(IQFLINT)_END.
      For eg, in the first load eqid can be from 100 to 300.
      In the next load it can be from 301 to 500 (assume eq_start is 100 and eq_end is
      1000).
      
      The driver was assuming them to always start from EQ(IQFLINT)_START till
      MAX_EGRQ(INGQ). This was causing stack overflow and subsequent crash.
      
      Fixed it by dynamically allocating memory (of qsize (x_END - x_START + 1)) for
      these structures.
      
      Based on original work by Santosh Rastapur <santosh@chelsio.com>
      Signed-off-by: NHariprasad Shenai <hariprasad@chelsio.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4b8e27a8
  4. 25 3月, 2015 1 次提交
  5. 05 2月, 2015 1 次提交
    • H
      cxgb4: Add low latency socket busy_poll support · 3a336cb1
      Hariprasad Shenai 提交于
      cxgb_busy_poll, corresponding to ndo_busy_poll, gets called by the socket
      waiting for data.
      
      With busy_poll enabled, improvement is seen in latency numbers as observed by
      collecting netperf TCP_RR numbers.
      Below are latency number, with and without busy-poll, in a switched environment
      for a particular msg size:
      netperf command: netperf -4 -H <ip> -l 30 -t TCP_RR -- -r1,1
      Latency without busy-poll: ~16.25 us
      Latency with busy-poll   : ~08.79 us
      
      Based on original work by Kumar Sanghvi <kumaras@chelsio.com>
      Signed-off-by: NHariprasad Shenai <hariprasad@chelsio.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3a336cb1
  6. 14 1月, 2015 2 次提交
  7. 13 1月, 2015 1 次提交
  8. 06 1月, 2015 2 次提交
  9. 11 12月, 2014 1 次提交
  10. 10 12月, 2014 1 次提交
  11. 23 11月, 2014 1 次提交
  12. 14 11月, 2014 1 次提交
  13. 12 11月, 2014 1 次提交
  14. 11 11月, 2014 2 次提交
  15. 10 10月, 2014 1 次提交
  16. 09 10月, 2014 2 次提交
  17. 29 9月, 2014 2 次提交
  18. 22 8月, 2014 1 次提交
  19. 05 8月, 2014 1 次提交
  20. 23 6月, 2014 1 次提交
  21. 11 6月, 2014 2 次提交
  22. 13 5月, 2014 1 次提交
  23. 18 4月, 2014 1 次提交
  24. 25 3月, 2014 1 次提交
    • E
      cxgb4: Call dev_kfree/consume_skb_any instead of [dev_]kfree_skb. · a7525198
      Eric W. Biederman 提交于
      Replace kfree_skb with dev_consume_skb_any in free_tx_desc that can be
      called in hard irq and other contexts. dev_consume_skb_any is used
      as this function consumes successfully transmitted skbs.
      
      Replace dev_kfree_skb with dev_kfree_skb_any in t4_eth_xmit that can
      be called in hard irq and other contexts, on paths that drop the skb.
      
      Replace dev_kfree_skb with dev_consume_skb_any in t4_eth_xmit that can
      be called in hard irq and other contexts, on paths that successfully
      transmit the skb.
      Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
      a7525198
  25. 15 3月, 2014 1 次提交
    • S
      cxgb4/iw_cxgb4: Doorbell Drop Avoidance Bug Fixes · 05eb2389
      Steve Wise 提交于
      The current logic suffers from a slow response time to disable user DB
      usage, and also fails to avoid DB FIFO drops under heavy load. This commit
      fixes these deficiencies and makes the avoidance logic more optimal.
      This is done by more efficiently notifying the ULDs of potential DB
      problems, and implements a smoother flow control algorithm in iw_cxgb4,
      which is the ULD that puts the most load on the DB fifo.
      
      Design:
      
      cxgb4:
      
      Direct ULD callback from the DB FULL/DROP interrupt handler.  This allows
      the ULD to stop doing user DB writes as quickly as possible.
      
      While user DB usage is disabled, the LLD will accumulate DB write events
      for its queues.  Then once DB usage is reenabled, a single DB write is
      done for each queue with its accumulated write count.  This reduces the
      load put on the DB fifo when reenabling.
      
      iw_cxgb4:
      
      Instead of marking each qp to indicate DB writes are disabled, we create
      a device-global status page that each user process maps.  This allows
      iw_cxgb4 to only set this single bit to disable all DB writes for all
      user QPs vs traversing the idr of all the active QPs.  If the libcxgb4
      doesn't support this, then we fall back to the old approach of marking
      each QP.  Thus we allow the new driver to work with an older libcxgb4.
      
      When the LLD upcalls iw_cxgb4 indicating DB FULL, we disable all DB writes
      via the status page and transition the DB state to STOPPED.  As user
      processes see that DB writes are disabled, they call into iw_cxgb4
      to submit their DB write events.  Since the DB state is in STOPPED,
      the QP trying to write gets enqueued on a new DB "flow control" list.
      As subsequent DB writes are submitted for this flow controlled QP, the
      amount of writes are accumulated for each QP on the flow control list.
      So all the user QPs that are actively ringing the DB get put on this
      list and the number of writes they request are accumulated.
      
      When the LLD upcalls iw_cxgb4 indicating DB EMPTY, which is in a workq
      context, we change the DB state to FLOW_CONTROL, and begin resuming all
      the QPs that are on the flow control list.  This logic runs on until
      the flow control list is empty or we exit FLOW_CONTROL mode (due to
      a DB DROP upcall, for example).  QPs are removed from this list, and
      their accumulated DB write counts written to the DB FIFO.  Sets of QPs,
      called chunks in the code, are removed at one time. The chunk size is 64.
      So 64 QPs are resumed at a time, and before the next chunk is resumed, the
      logic waits (blocks) for the DB FIFO to drain.  This prevents resuming to
      quickly and overflowing the FIFO.  Once the flow control list is empty,
      the db state transitions back to NORMAL and user QPs are again allowed
      to write directly to the user DB register.
      
      The algorithm is designed such that if the DB write load is high enough,
      then all the DB writes get submitted by the kernel using this flow
      controlled approach to avoid DB drops.  As the load lightens though, we
      resume to normal DB writes directly by user applications.
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      05eb2389
  26. 14 3月, 2014 4 次提交
  27. 19 2月, 2014 1 次提交