net: mana: Add WARN_ON_ONCE in case of CQE read overflow
authorHaiyang Zhang <haiyangz@microsoft.com>
Tue, 24 Aug 2021 16:46:01 +0000 (09:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 10:06:54 +0000 (11:06 +0100)
commitc1a3e9f98dde4782290d2c4871e42b7e76ad5593
tree813314a6d6a41b496b8df6dffe437fbd91ee189f
parent1e2d0824a9c3de5371a46601aac0c14af5c0a50a
net: mana: Add WARN_ON_ONCE in case of CQE read overflow

This is not an expected case normally.
Add WARN_ON_ONCE in case of CQE read overflow, instead of failing
silently.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microsoft/mana/gdma_main.c