net: ena: fix broken interface between ENA driver and FW
authorArthur Kiyanovski <akiyano@amazon.com>
Wed, 26 Feb 2020 10:03:35 +0000 (12:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 04:47:58 +0000 (20:47 -0800)
commit92040c6daaa46027c2d11aab0a5366ab667c5358
treeb11f6dab4d3ecbf87f787f92130342537f72afd0
parent621135a0f9cf512e477e5e9aa3e87ee96e896175
net: ena: fix broken interface between ENA driver and FW

In this commit we revert the part of
commit 1a63443afd70 ("net/amazon: Ensure that driver version is aligned to the linux kernel"),
which breaks the interface between the ENA driver and FW.

We also replace the use of DRIVER_VERSION with DRIVER_GENERATION
when we bring back the deleted constants that are used in interface with
ENA device FW.

This commit does not change the driver version reported to the user via
ethtool, which remains the kernel version.

Fixes: 1a63443afd70 ("net/amazon: Ensure that driver version is aligned to the linux kernel")
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h