aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ethernet/amazon/ena/ena_netdev.h
diff options
context:
space:
mode:
authorArthur Kiyanovski <akiyano@amazon.com>2020-02-26 12:03:35 +0200
committerDavid S. Miller <davem@davemloft.net>2020-02-26 20:47:58 -0800
commit92040c6daaa46027c2d11aab0a5366ab667c5358 (patch)
treeb11f6dab4d3ecbf87f787f92130342537f72afd0 /drivers/net/ethernet/amazon/ena/ena_netdev.h
parentMerge branch 'mptcp-update-mptcp-ack-sequence-outside-of-recv-path' (diff)
downloadwireguard-linux-92040c6daaa46027c2d11aab0a5366ab667c5358.tar.xz
wireguard-linux-92040c6daaa46027c2d11aab0a5366ab667c5358.zip
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>
Diffstat (limited to 'drivers/net/ethernet/amazon/ena/ena_netdev.h')
-rw-r--r--drivers/net/ethernet/amazon/ena/ena_netdev.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.h b/drivers/net/ethernet/amazon/ena/ena_netdev.h
index 74c7f10b60dd..97dfd0c67e84 100644
--- a/drivers/net/ethernet/amazon/ena/ena_netdev.h
+++ b/drivers/net/ethernet/amazon/ena/ena_netdev.h
@@ -45,7 +45,18 @@
#include "ena_com.h"
#include "ena_eth_com.h"
+#define DRV_MODULE_GEN_MAJOR 2
+#define DRV_MODULE_GEN_MINOR 1
+#define DRV_MODULE_GEN_SUBMINOR 0
+
#define DRV_MODULE_NAME "ena"
+#ifndef DRV_MODULE_GENERATION
+#define DRV_MODULE_GENERATION \
+ __stringify(DRV_MODULE_GEN_MAJOR) "." \
+ __stringify(DRV_MODULE_GEN_MINOR) "." \
+ __stringify(DRV_MODULE_GEN_SUBMINOR) "K"
+#endif
+
#define DEVICE_NAME "Elastic Network Adapter (ENA)"
/* 1 for AENQ + ADMIN */