net: add macro for VLAN header length
[dpdk.git] / drivers / net / hns3 / hns3_intr.c
index 0b307fd..66dc509 100644 (file)
@@ -8,7 +8,7 @@
 #include <rte_io.h>
 #include <rte_malloc.h>
 
-#include "hns3_ethdev.h"
+#include "hns3_common.h"
 #include "hns3_logs.h"
 #include "hns3_intr.h"
 #include "hns3_regs.h"
@@ -2368,7 +2368,7 @@ hns3_handle_error(struct hns3_adapter *hns)
 {
        struct hns3_hw *hw = &hns->hw;
 
-       if (hns3_dev_ras_imp_supported(hw)) {
+       if (hns3_dev_get_support(hw, RAS_IMP)) {
                hns3_handle_hw_error_v2(hw);
                hns3_schedule_reset(hns);
        } else {