提交 5dd962e5 编写于 作者: J Junxin Chen 提交者: Yang Yingliang

net: hns3: clear devil number for hns3_cae

driver inclusion
category: cleanup
bugzilla: NA
CVE: NA

----------------------------------

This patch clears devil numbers for hns3_cae_dfx, and change version
to 1.9.37.0.
Signed-off-by: NJunxin Chen <chenjunxin1@huawei.com>
Reviewed-by: NZhong Zhaohui <zhongzhaohui@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 79d8b674
......@@ -30,7 +30,7 @@
#include <linux/pci.h>
#include <linux/types.h>
#define HNAE3_MOD_VERSION "1.9.36.0"
#define HNAE3_MOD_VERSION "1.9.37.0"
#define HNAE3_MIN_VECTOR_NUM 2 /* one for msi-x, another for IO */
......
......@@ -115,7 +115,7 @@ int hns3_cae_get_dfx_info(const struct hns3_nic_priv *net_priv,
out_info->func_id = (u8)hdev->pdev->devfn;
out_info->is_cs_board = (handle->pdev->revision > 0x20) ? true : false;
reg_info.addr = HNS3_CAE_MAC_MODE_ADDR;
reg_info.bit_width = 32;
reg_info.bit_width = HNS3_CAE_BITWIDTH_32BIT;
reg_info.is_read = true;
ret = hns3_cae_operate_nic_regs(hdev, &reg_info);
if (ret) {
......@@ -125,7 +125,7 @@ int hns3_cae_get_dfx_info(const struct hns3_nic_priv *net_priv,
}
out_info->work_mode = reg_info.value;
reg_info.addr = HNS3_CAE_MAC_MAP_ADDR;
reg_info.bit_width = 64;
reg_info.bit_width = HNS3_CAE_BITWIDTH_64BIT;
reg_info.is_read = true;
ret = hns3_cae_operate_nic_regs(hdev, &reg_info);
if (ret) {
......@@ -204,7 +204,7 @@ int hns3_cae_event_injection(const struct hns3_nic_priv *net_priv,
hdev = vport->back;
reg_info.addr = in_info->addr;
reg_info.bit_width = 32;
reg_info.bit_width = HNS3_CAE_BITWIDTH_32BIT;
reg_info.is_read = false;
reg_info.value = in_info->value;
dev_info(&hdev->pdev->dev,
......
......@@ -35,6 +35,9 @@ struct hns3_cae_event_param {
#define HNS3_CAE_MAX_MAC_NUMBER 0x8
#define HNS3_CAE_BITWIDTH_32BIT 32
#define HNS3_CAE_BITWIDTH_64BIT 64
int hns3_cae_get_dfx_info(const struct hns3_nic_priv *net_priv,
void *buf_in, u32 in_size,
void *buf_out, u32 out_size);
......
......@@ -4,7 +4,7 @@
#ifndef __HNS3_CAE_VERSION_H__
#define __HNS3_CAE_VERSION_H__
#define HNS3_CAE_MOD_VERSION "1.9.36.0"
#define HNS3_CAE_MOD_VERSION "1.9.37.0"
#define CMT_ID_LEN 8
#define RESV_LEN 3
......
......@@ -8,7 +8,7 @@
#include "hnae3.h"
#define HNS3_MOD_VERSION "1.9.36.0"
#define HNS3_MOD_VERSION "1.9.37.0"
extern char hns3_driver_version[];
......
......@@ -12,7 +12,7 @@
#include "hclge_cmd.h"
#include "hnae3.h"
#define HCLGE_MOD_VERSION "1.9.36.0"
#define HCLGE_MOD_VERSION "1.9.37.0"
#define HCLGE_DRIVER_NAME "hclge"
#define HCLGE_MAX_PF_NUM 8
......
......@@ -10,7 +10,7 @@
#include "hclgevf_cmd.h"
#include "hnae3.h"
#define HCLGEVF_MOD_VERSION "1.9.36.0"
#define HCLGEVF_MOD_VERSION "1.9.37.0"
#define HCLGEVF_DRIVER_NAME "hclgevf"
#define HCLGEVF_MAX_VLAN_ID 4095
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册