]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
net: hns3: Add reset process in hclge_main
[mirror_ubuntu-bionic-kernel.git] / drivers / net / ethernet / hisilicon / hns3 / hns3pf / hclge_cmd.h
index db4d887fd748c195506223a6a0c811f1df8dc582..844c83ea549e883a1bc4477b6aad06c9374aa7cc 100644 (file)
@@ -697,6 +697,13 @@ struct hclge_reset_tqp_queue_cmd {
        u8 rsv[20];
 };
 
+#define HCLGE_CFG_RESET_MAC_B          3
+#define HCLGE_CFG_RESET_FUNC_B         7
+struct hclge_reset_cmd {
+       u8 mac_func_reset;
+       u8 fun_reset_vfid;
+       u8 rsv[22];
+};
 #define HCLGE_DEFAULT_TX_BUF           0x4000   /* 16k  bytes */
 #define HCLGE_TOTAL_PKT_BUF            0x108000 /* 1.03125M bytes */
 #define HCLGE_DEFAULT_DV               0xA000   /* 40k byte */