Commit a0ca6b9
octeon_ep: update BQL sent bytes before ringing doorbell
Sometimes Tx is completed immediately after doorbell is updated, which
causes Tx completion routing to update completion bytes before the
same packet bytes are updated in sent bytes in transmit function, hence
hitting BUG_ON() in dql_completed(). To avoid this, update BQL
sent bytes before ringing doorbell.
Fixes: 37d79d0 ("octeon_ep: add Tx/Rx processing and interrupt support")
Signed-off-by: Shinas Rasheed <srasheed@marvell.com>
Link: https://lore.kernel.org/r/20231017105030.2310966-1-srasheed@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 2915240 commit a0ca6b9
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
| 718 | + | |
| 719 | + | |
723 | 720 | | |
724 | 721 | | |
725 | 722 | | |
726 | 723 | | |
727 | 724 | | |
| 725 | + | |
| 726 | + | |
728 | 727 | | |
729 | | - | |
| 728 | + | |
| 729 | + | |
730 | 730 | | |
731 | | - | |
732 | 731 | | |
733 | 732 | | |
734 | 733 | | |
| |||
0 commit comments