mirror of https://gitee.com/openkylin/linux.git
RDMA/opa_vnic: Delete driver version
The default version provided by "ethtool -i" it the correct way to identify Driver version. There is no need to overwrite it. Link: https://lore.kernel.org/r/20200220071239.231800-3-leon@kernel.org Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
9687072071
commit
699d9e7542
|
@ -125,8 +125,6 @@ static void vnic_get_drvinfo(struct net_device *netdev,
|
||||||
struct ethtool_drvinfo *drvinfo)
|
struct ethtool_drvinfo *drvinfo)
|
||||||
{
|
{
|
||||||
strlcpy(drvinfo->driver, opa_vnic_driver_name, sizeof(drvinfo->driver));
|
strlcpy(drvinfo->driver, opa_vnic_driver_name, sizeof(drvinfo->driver));
|
||||||
strlcpy(drvinfo->version, opa_vnic_driver_version,
|
|
||||||
sizeof(drvinfo->version));
|
|
||||||
strlcpy(drvinfo->bus_info, dev_name(netdev->dev.parent),
|
strlcpy(drvinfo->bus_info, dev_name(netdev->dev.parent),
|
||||||
sizeof(drvinfo->bus_info));
|
sizeof(drvinfo->bus_info));
|
||||||
}
|
}
|
||||||
|
|
|
@ -292,7 +292,6 @@ struct opa_vnic_mac_tbl_node {
|
||||||
hlist_for_each_entry(obj, &name[bkt], member)
|
hlist_for_each_entry(obj, &name[bkt], member)
|
||||||
|
|
||||||
extern char opa_vnic_driver_name[];
|
extern char opa_vnic_driver_name[];
|
||||||
extern const char opa_vnic_driver_version[];
|
|
||||||
|
|
||||||
struct opa_vnic_adapter *opa_vnic_add_netdev(struct ib_device *ibdev,
|
struct opa_vnic_adapter *opa_vnic_add_netdev(struct ib_device *ibdev,
|
||||||
u8 port_num, u8 vport_num);
|
u8 port_num, u8 vport_num);
|
||||||
|
|
|
@ -59,9 +59,7 @@
|
||||||
|
|
||||||
#include "opa_vnic_internal.h"
|
#include "opa_vnic_internal.h"
|
||||||
|
|
||||||
#define DRV_VERSION "1.0"
|
|
||||||
char opa_vnic_driver_name[] = "opa_vnic";
|
char opa_vnic_driver_name[] = "opa_vnic";
|
||||||
const char opa_vnic_driver_version[] = DRV_VERSION;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The trap service level is kept in bits 3 to 7 in the trap_sl_rsvd
|
* The trap service level is kept in bits 3 to 7 in the trap_sl_rsvd
|
||||||
|
@ -1041,9 +1039,6 @@ static int __init opa_vnic_init(void)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
pr_info("OPA Virtual Network Driver - v%s\n",
|
|
||||||
opa_vnic_driver_version);
|
|
||||||
|
|
||||||
rc = ib_register_client(&opa_vnic_client);
|
rc = ib_register_client(&opa_vnic_client);
|
||||||
if (rc)
|
if (rc)
|
||||||
pr_err("VNIC driver register failed %d\n", rc);
|
pr_err("VNIC driver register failed %d\n", rc);
|
||||||
|
|
Loading…
Reference in New Issue