Commit 50dffe7f authored by David S. Miller's avatar David S. Miller

Merge branch 'mlx4-drivers-version-update'

Tariq Toukan says:

====================
mlx4 drivers: version update

This patchset contains version updates for the MLX4 drivers:
Core, EN, and IB.

Just like we've done in mlx5, we modify the outdated driver
version (reported in ethtool for example).
This better reflects the current driver state, and removes the
redundant date string.
We are not going to change this frequently or even use it.

I include the IB patch in this series as it has similar subject
and content.
It does not cause any kind of conflict with Doug's tree.
The rdma mailing list is CCed.
Please let me know if I need to submit this differently.
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 5ebe31d7 0a528ee9
...@@ -61,8 +61,7 @@ ...@@ -61,8 +61,7 @@
#include <rdma/mlx4-abi.h> #include <rdma/mlx4-abi.h>
#define DRV_NAME MLX4_IB_DRV_NAME #define DRV_NAME MLX4_IB_DRV_NAME
#define DRV_VERSION "2.2-1" #define DRV_VERSION "4.0-0"
#define DRV_RELDATE "Feb 2014"
#define MLX4_IB_FLOW_MAX_PRIO 0xFFF #define MLX4_IB_FLOW_MAX_PRIO 0xFFF
#define MLX4_IB_FLOW_QPN_MASK 0xFFFFFF #define MLX4_IB_FLOW_QPN_MASK 0xFFFFFF
...@@ -79,7 +78,7 @@ MODULE_PARM_DESC(sm_guid_assign, "Enable SM alias_GUID assignment if sm_guid_ass ...@@ -79,7 +78,7 @@ MODULE_PARM_DESC(sm_guid_assign, "Enable SM alias_GUID assignment if sm_guid_ass
static const char mlx4_ib_version[] = static const char mlx4_ib_version[] =
DRV_NAME ": Mellanox ConnectX InfiniBand driver v" DRV_NAME ": Mellanox ConnectX InfiniBand driver v"
DRV_VERSION " (" DRV_RELDATE ")\n"; DRV_VERSION "\n";
static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init); static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init);
......
...@@ -89,7 +89,7 @@ mlx4_en_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *drvinfo) ...@@ -89,7 +89,7 @@ mlx4_en_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *drvinfo)
struct mlx4_en_dev *mdev = priv->mdev; struct mlx4_en_dev *mdev = priv->mdev;
strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver)); strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver));
strlcpy(drvinfo->version, DRV_VERSION " (" DRV_RELDATE ")", strlcpy(drvinfo->version, DRV_VERSION,
sizeof(drvinfo->version)); sizeof(drvinfo->version));
snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
"%d.%d.%d", "%d.%d.%d",
......
...@@ -46,11 +46,11 @@ ...@@ -46,11 +46,11 @@
MODULE_AUTHOR("Liran Liss, Yevgeny Petrilin"); MODULE_AUTHOR("Liran Liss, Yevgeny Petrilin");
MODULE_DESCRIPTION("Mellanox ConnectX HCA Ethernet driver"); MODULE_DESCRIPTION("Mellanox ConnectX HCA Ethernet driver");
MODULE_LICENSE("Dual BSD/GPL"); MODULE_LICENSE("Dual BSD/GPL");
MODULE_VERSION(DRV_VERSION " ("DRV_RELDATE")"); MODULE_VERSION(DRV_VERSION);
static const char mlx4_en_version[] = static const char mlx4_en_version[] =
DRV_NAME ": Mellanox ConnectX HCA Ethernet driver v" DRV_NAME ": Mellanox ConnectX HCA Ethernet driver v"
DRV_VERSION " (" DRV_RELDATE ")\n"; DRV_VERSION "\n";
#define MLX4_EN_PARM_INT(X, def_val, desc) \ #define MLX4_EN_PARM_INT(X, def_val, desc) \
static unsigned int X = def_val;\ static unsigned int X = def_val;\
......
...@@ -119,7 +119,7 @@ MODULE_PARM_DESC(enable_4k_uar, ...@@ -119,7 +119,7 @@ MODULE_PARM_DESC(enable_4k_uar,
static char mlx4_version[] = static char mlx4_version[] =
DRV_NAME ": Mellanox ConnectX core driver v" DRV_NAME ": Mellanox ConnectX core driver v"
DRV_VERSION " (" DRV_RELDATE ")\n"; DRV_VERSION "\n";
static struct mlx4_profile default_profile = { static struct mlx4_profile default_profile = {
.num_qp = 1 << 18, .num_qp = 1 << 18,
......
...@@ -56,8 +56,7 @@ ...@@ -56,8 +56,7 @@
#define DRV_NAME "mlx4_core" #define DRV_NAME "mlx4_core"
#define PFX DRV_NAME ": " #define PFX DRV_NAME ": "
#define DRV_VERSION "2.2-1" #define DRV_VERSION "4.0-0"
#define DRV_RELDATE "Feb, 2014"
#define MLX4_FS_UDP_UC_EN (1 << 1) #define MLX4_FS_UDP_UC_EN (1 << 1)
#define MLX4_FS_TCP_UC_EN (1 << 2) #define MLX4_FS_TCP_UC_EN (1 << 2)
......
...@@ -58,8 +58,7 @@ ...@@ -58,8 +58,7 @@
#include "mlx4_stats.h" #include "mlx4_stats.h"
#define DRV_NAME "mlx4_en" #define DRV_NAME "mlx4_en"
#define DRV_VERSION "2.2-1" #define DRV_VERSION "4.0-0"
#define DRV_RELDATE "Feb 2014"
#define MLX4_EN_MSG_LEVEL (NETIF_MSG_LINK | NETIF_MSG_IFDOWN) #define MLX4_EN_MSG_LEVEL (NETIF_MSG_LINK | NETIF_MSG_IFDOWN)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment