Commit 584b464f authored by Jian Shen's avatar Jian Shen Committed by David S. Miller

net: hns3: Remove unused struct member and definition

The struct hclge_desc_cb and hclge_desc_cb are never used in
anywhere. This patch removes them.
Signed-off-by: default avatarJian Shen <shenjian15@huawei.com>
Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarSalil Mehta <salil.mehta@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ef0c5009
...@@ -27,16 +27,9 @@ struct hclge_desc { ...@@ -27,16 +27,9 @@ struct hclge_desc {
__le32 data[6]; __le32 data[6];
}; };
struct hclge_desc_cb {
dma_addr_t dma;
void *va;
u32 length;
};
struct hclge_cmq_ring { struct hclge_cmq_ring {
dma_addr_t desc_dma_addr; dma_addr_t desc_dma_addr;
struct hclge_desc *desc; struct hclge_desc *desc;
struct hclge_desc_cb *desc_cb;
struct hclge_dev *dev; struct hclge_dev *dev;
u32 head; u32 head;
u32 tail; u32 tail;
......
...@@ -140,12 +140,6 @@ enum hclge_evt_cause { ...@@ -140,12 +140,6 @@ enum hclge_evt_cause {
}; };
#define HCLGE_MPF_ENBALE 1 #define HCLGE_MPF_ENBALE 1
struct hclge_caps {
u16 num_tqp;
u16 num_buffer_cell;
u32 flag;
u16 vmdq;
};
enum HCLGE_MAC_SPEED { enum HCLGE_MAC_SPEED {
HCLGE_MAC_SPEED_10M = 10, /* 10 Mbps */ HCLGE_MAC_SPEED_10M = 10, /* 10 Mbps */
...@@ -191,7 +185,6 @@ struct hclge_hw { ...@@ -191,7 +185,6 @@ struct hclge_hw {
struct hclge_mac mac; struct hclge_mac mac;
int num_vec; int num_vec;
struct hclge_cmq cmq; struct hclge_cmq cmq;
struct hclge_caps caps;
}; };
/* TQP stats */ /* TQP stats */
......
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