net/qede/base: fix GRC attention callback
authorRasesh Mody <rasesh.mody@cavium.com>
Tue, 24 Jul 2018 22:18:43 +0000 (15:18 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 2 Aug 2018 19:47:57 +0000 (21:47 +0200)
commit538bcb378af5d1750a6831efeea4d9565a3267f0
tree4fc520096d02b0da7476d668b994fa9d29c41c63
parentc8dbf6814312f12cd7fef7203ea9b40255ea1f76
net/qede/base: fix GRC attention callback

Treat any attention which is not for timeout event as invalid
and return status accordingly. The HW error handler logs and clears
the HW attention. Without this fix we can see flood of GRC attentions.

Fixes: e6051bd6b07d ("qede: add interrupt handling support")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_int.c