diff options
author | Hariprasad Kelam <hkelam@marvell.com> | 2024-11-22 21:50:35 +0530 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-11-26 12:09:41 +0100 |
commit | 762ca6eed026346d9d41ed5ac633083c4f1e5071 (patch) | |
tree | 00975249badbed50a9f7c8abcaa691684da3a982 /drivers/target | |
parent | 6fc2164108462b913a1290fa2c44054c70b060ef (diff) |
octeontx2-af: Quiesce traffic before NIX block reset
During initialization, the AF driver resets all blocks. The RPM (MAC)
block and NIX block operate on a credit-based model. When the NIX block
resets during active traffic flow, it doesn't release credits to the RPM
block. This causes the RPM FIFO to overflow, leading to receive traffic
struck.
To address this issue, the patch introduces the following changes:
1. Stop receiving traffic at the MAC level during AF driver
initialization.
2. Perform an X2P reset (prevents RXFIFO of all LMACS from pushing data)
3. Reset the NIX block.
4. Clear the X2P reset and re-enable receiving traffic.
Fixes: 54d557815e15 ("octeontx2-af: Reset all RVU blocks")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/target')
0 files changed, 0 insertions, 0 deletions