net/mlx5: add header reformat HW steering action
[dpdk.git] / drivers / net / hns3 / hns3_mbx.c
index a47622b..02028dc 100644 (file)
@@ -5,7 +5,7 @@
 #include <ethdev_driver.h>
 #include <rte_io.h>
 
-#include "hns3_ethdev.h"
+#include "hns3_common.h"
 #include "hns3_regs.h"
 #include "hns3_logs.h"
 #include "hns3_intr.h"
@@ -78,14 +78,14 @@ hns3_get_mbx_resp(struct hns3_hw *hw, uint16_t code, uint16_t subcode,
        mbx_time_limit = (uint32_t)hns->mbx_time_limit_ms * US_PER_MS;
        while (wait_time < mbx_time_limit) {
                if (__atomic_load_n(&hw->reset.disable_cmd, __ATOMIC_RELAXED)) {
-                       hns3_err(hw, "Don't wait for mbx respone because of "
+                       hns3_err(hw, "Don't wait for mbx response because of "
                                 "disable_cmd");
                        return -EBUSY;
                }
 
                if (is_reset_pending(hns)) {
                        hw->mbx_resp.req_msg_data = 0;
-                       hns3_err(hw, "Don't wait for mbx respone because of "
+                       hns3_err(hw, "Don't wait for mbx response because of "
                                 "reset pending");
                        return -EIO;
                }
@@ -435,6 +435,9 @@ hns3_handle_mbx_msg_out_intr(struct hns3_hw *hw)
 scan_next:
                next_to_use = (next_to_use + 1) % hw->cmq.crq.desc_num;
        }
+
+       crq->next_to_use = next_to_use;
+       hns3_write_dev(hw, HNS3_CMDQ_RX_HEAD_REG, crq->next_to_use);
 }
 
 void