]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: RX, Fix wrong early return in receive queue poll
authorTariq Toukan <tariqt@mellanox.com>
Sun, 2 Dec 2018 13:45:53 +0000 (15:45 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 19 Dec 2018 21:31:16 +0000 (13:31 -0800)
commitffb95250dbc6792fe14d0182968c108f87304b6a
tree2220945977de27c51297a4184af01d446760732b
parent537e742d7e66f838f8b3418b0a5d16d94829d34c
net/mlx5e: RX, Fix wrong early return in receive queue poll

When the completion queue of the RQ is empty, do not immediately return.
If left-over decompressed CQEs (from the previous cycle) were processed,
need to go to the finalization part of the poll function.

Bug exists only when CQE compression is turned ON.

This solves the following issue:
mlx5_core 0000:82:00.1: mlx5_eq_int:544:(pid 0): CQ error on CQN 0xc08, syndrome 0x1
mlx5_core 0000:82:00.1 p4p2: mlx5e_cq_error_event: cqn=0x000c08 event=0x04

Fixes: a8dcba942b88 ("net/mlx5e: Early-return on empty completion queues")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c