1. 31 7月, 2013 10 次提交
  2. 30 7月, 2013 13 次提交
  3. 29 7月, 2013 2 次提交
    • Y
      net/mlx4_core: Respond to operation request by firmware · fe6f700d
      Yevgeny Petrilin 提交于
      This commit adds new firmware command and new firmware event.  The firmware
      raises the MLX4_EVENT_TYPE_OP_REQUIRED event in order to signal the driver it
      needs to perform an administrative operation throughout the MLX4_CMD_GET_OP_REQ
      command. At the moment the supported operation is adding/removing multicast
      entries which are used by the firmware for handling NCSI traffic in B0
      steering mode.
      
      Also, had to swap the order of mlx4_init_mcg_table() and
      mlx4_init_eq_table() to make sure that driver will get events only after
      resources are initialized to handle it.
      Signed-off-by: NYevgeny Petrilin <yevgenyp@mellanox.com>
      Signed-off-by: NJack Morgenstein <jackm@dev.mellanox.com>
      Signed-off-by: NEugenia Emantayev <eugenia@mellanox.com>
      Signed-off-by: NAmir Vadai <amirv@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fe6f700d
    • E
      net/mlx4_en: Fix BlueFlame race · 2d4b6466
      Eugenia Emantayev 提交于
      Fix a race between BlueFlame flow and stamping in post send flow.
      Example:
      	SW: Build WQE 0 on the TX buffer, except the ownership bit
      	SW: Set ownership for WQE 0 on the TX buffer
      	SW: Ring doorbell for WQE 0
      	SW: Build WQE 1 on the TX buffer, except the ownership bit
      	SW: Set ownership for WQE 1 on the TX buffer
      	HW: Read WQE 0 and then WQE 1, before doorbell was rung/BF was done for WQE 1
      	HW: Produce CQEs for WQE 0 and WQE 1
      	SW: Process the CQEs, and stamp WQE 0 and WQE 1 accordingly (on the TX buffer)
      	SW: Copy WQE 1 from the TX buffer to the BF register - ALREADY STAMPED!
      	HW: CQE error with index 0xFFFF  - the BF WQE's control segment is STAMPED,
      		so the BF index is 0xFFFF. Error: Invalid Opcode.
      As a result QP enters the error state and no traffic can be sent.
      
      Solution:
      When stamping - do not stamp last completed wqe.
      Signed-off-by: NEugenia Emantayev <eugenia@mellanox.com>
      Signed-off-by: NAmir Vadai <amirv@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2d4b6466
  4. 28 7月, 2013 15 次提交