net: ena: Fix wrong rx request id by resetting device
authorArthur Kiyanovski <akiyano@amazon.com>
Sun, 2 Jan 2022 07:37:27 +0000 (07:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jan 2022 14:35:14 +0000 (15:35 +0100)
commitc4c20dc24e091d1dfa0f348edec7c56948571bb8
tree645ca2ff28f0c7fcd6316ef39b9ddb45931f6839
parentbf8263c71420e5c89c748ca7ffbec9473f2248e9
net: ena: Fix wrong rx request id by resetting device

commit cb3d4f98f0b26eafa0b913ac3716e4714254a747 upstream.

A wrong request id received from the device is a sign that
something is wrong with it, therefore trigger a device reset.

Also add some debug info to the "Page is NULL" print to make
it easier to debug.

Fixes: 1738cd3ed342 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)")
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/amazon/ena/ena_netdev.c