HomeFreeBSD

ccr: Set the RX channel ID correctly in work requests.

Description

ccr: Set the RX channel ID correctly in work requests.

These fixes are only relevant for requests on the second port. In
some cases, the crypto completion data, completion message, and
receive descriptor could be written in the wrong order.

  • Add a separate rx_channel_id that is a copy of the port's rx_c_chan and use it when an RX channel ID is required in crypto requests instead of using the tx_channel_id.
  • Set the correct rx_channel_id in the CPL_RX_PHYS_ADDR used to write the crypto result.
  • Set the FID to the first rx queue ID on the adapter rather than the queue ID of the first rx queue for the port.
  • While here, use tx_chan to set the tx_channel_id though this is identical to the previous value.

Reported by: Chelsio QA
Sponsored by: Chelsio Communications

(cherry picked from commit 8f885fd1f38159a06db82d680fa259f358e9f872)

Details

Provenance
jhbAuthored on Mar 12 2021, 6:35 PM
Parents
rGcc76018cdd89: cxgbe(4): Read the rx 'c' channel for a port and make it available.
Branches
Unknown
Tags
Unknown