net/ena: handle ENA notification
authorRafal Kozik <rk@semihalf.com>
Thu, 7 Jun 2018 09:43:02 +0000 (11:43 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:27:50 +0000 (19:27 +0200)
commitf01f060cddc04cb3947d6437dde84bca9ab97ced
treeb43b9c264976c13014e3a3d9e5f846f603cff3d4
parentca148440e0e22f9f2493f1974d72447a1ab9ed8b
net/ena: handle ENA notification

When ENA notifications are provided ena_notification handler is called.
It checks if received value is not corrupted and if necessary it
reports proper warnings.

Data received from NIC is parsed in ena_update_hints. Fields for
storing those information was added to ena_adapter structure.

ENA notification are enabled by setting ENA_ADMIN_NOTIFICATION flag in
aenq_groups.

Signed-off-by: Rafal Kozik <rk@semihalf.com>
Acked-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_ethdev.c