]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/hns3/hns3_mbx.c
net/hns3: extract common interface to check duplicates
[dpdk.git] / drivers / net / hns3 / hns3_mbx.c
index a47622b8a6fcabb0c3ee1869795f33bd0f3ac654..245652e2ed02a3e57cf054abe702e67b6635b961 100644 (file)
@@ -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