]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net/mlx5e: Reset RQ doorbell counter before moving RQ state from RST to RDY
authorAya Levin <ayal@mellanox.com>
Mon, 9 Dec 2019 12:08:18 +0000 (14:08 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 5 Mar 2020 14:39:53 +0000 (15:39 +0100)
commitcf5f951e3b226a92274c05b9e3539a49e3bc1bf9
tree0f5a5ffba120ef4745734fc90e0759b3219c93bf
parent84fc808aa172b3a497323c22f5f538a3912eeae0
net/mlx5e: Reset RQ doorbell counter before moving RQ state from RST to RDY

BugLink: https://bugs.launchpad.net/bugs/1866165
commit 5ee090ed0da649b1febae2b7c285ac77d1e55a0c upstream.

Initialize RQ doorbell counters to zero prior to moving an RQ from RST
to RDY state. Per HW spec, when RQ is back to RDY state, the descriptor
ID on the completion is reset. The doorbell record must comply.

Fixes: 8276ea1353a4 ("net/mlx5e: Report and recover from CQE with error on RQ")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reported-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/wq.c
drivers/net/ethernet/mellanox/mlx5/core/wq.h