X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fhns3%2Fhns3_mbx.c;h=245652e2ed02a3e57cf054abe702e67b6635b961;hb=d6e5056ab38cfe0c27d7a7a631cdf259a7880111;hp=a47622b8a6fcabb0c3ee1869795f33bd0f3ac654;hpb=2fc3e696a7f1925b20664b9de15f2430b9b68208;p=dpdk.git diff --git a/drivers/net/hns3/hns3_mbx.c b/drivers/net/hns3/hns3_mbx.c index a47622b8a6..245652e2ed 100644 --- a/drivers/net/hns3/hns3_mbx.c +++ b/drivers/net/hns3/hns3_mbx.c @@ -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