Commit 4828b576 authored by Huazhong Tan's avatar Huazhong Tan Committed by David S. Miller

net: hns3: remove unused struct hnae3_unic_private_info

Since field .uinfo in struct hnae3_handle never be used,
so remove it and its structure definition.
Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c496299e
...@@ -621,16 +621,6 @@ struct hnae3_roce_private_info { ...@@ -621,16 +621,6 @@ struct hnae3_roce_private_info {
unsigned long state; unsigned long state;
}; };
struct hnae3_unic_private_info {
struct net_device *netdev;
u16 rx_buf_len;
u16 num_tx_desc;
u16 num_rx_desc;
u16 num_tqps; /* total number of tqps in this handle */
struct hnae3_queue **tqp; /* array base of all TQPs of this instance */
};
#define HNAE3_SUPPORT_APP_LOOPBACK BIT(0) #define HNAE3_SUPPORT_APP_LOOPBACK BIT(0)
#define HNAE3_SUPPORT_PHY_LOOPBACK BIT(1) #define HNAE3_SUPPORT_PHY_LOOPBACK BIT(1)
#define HNAE3_SUPPORT_SERDES_SERIAL_LOOPBACK BIT(2) #define HNAE3_SUPPORT_SERDES_SERIAL_LOOPBACK BIT(2)
...@@ -656,7 +646,6 @@ struct hnae3_handle { ...@@ -656,7 +646,6 @@ struct hnae3_handle {
union { union {
struct net_device *netdev; /* first member */ struct net_device *netdev; /* first member */
struct hnae3_knic_private_info kinfo; struct hnae3_knic_private_info kinfo;
struct hnae3_unic_private_info uinfo;
struct hnae3_roce_private_info rinfo; struct hnae3_roce_private_info rinfo;
}; };
......
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