aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hnae3.h
diff options
context:
space:
mode:
authorYonglong Liu <liuyonglong@huawei.com>2020-01-04 10:49:28 +0800
committerDavid S. Miller <davem@davemloft.net>2020-01-06 13:26:25 -0800
commitf97c4d823fb7d210afa53c6980dd8b8d0deee916 (patch)
tree007e99c293d5a06068fbc3d8fcbfc6770262a1d3 /drivers/net/ethernet/hisilicon/hns3/hnae3.h
parentnet: hns3: modify an unsuitable log in hclge_map_ring_to_vector() (diff)
downloadlinux-dev-f97c4d823fb7d210afa53c6980dd8b8d0deee916.tar.xz
linux-dev-f97c4d823fb7d210afa53c6980dd8b8d0deee916.zip
net: hns3: modify the IRQ name of misc vectors
The misc IRQ of all the devices have the same name, so it's hard to find the right misc IRQ of the device. This patch modifies the misc IRQ names as "hclge/hclgevf"-misc- "pci name". And now the IRQ name is not related to net device name anymore, so change the HNAE3_INT_NAME_LEN to 32 bytes, and that is enough. Signed-off-by: Yonglong Liu <liuyonglong@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hnae3.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
index 3b5e2d7251e7..ed97bd6c03e6 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
@@ -575,8 +575,7 @@ struct hnae3_ae_algo {
const struct pci_device_id *pdev_id_table;
};
-#define HNAE3_INT_NAME_EXT_LEN 32 /* Max extra information length */
-#define HNAE3_INT_NAME_LEN (IFNAMSIZ + HNAE3_INT_NAME_EXT_LEN)
+#define HNAE3_INT_NAME_LEN 32
#define HNAE3_ITR_COUNTDOWN_START 100
struct hnae3_tc_info {