提交 090e3b53 编写于 作者: P Peng Li 提交者: David S. Miller

net: hns3: set the cmdq out_vld bit to 0 after used

Driver check the out_vld bit when get a new cmdq BD, if the bit is 1,
the BD is valid. driver Should set the bit 0 after used and hw will
set the bit 1 if get a valid BD.
Signed-off-by: NPeng Li <lipeng321@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f5e084b8
...@@ -410,6 +410,7 @@ void hclge_mbx_handler(struct hclge_dev *hdev) ...@@ -410,6 +410,7 @@ void hclge_mbx_handler(struct hclge_dev *hdev)
req->msg[0]); req->msg[0]);
break; break;
} }
crq->desc[crq->next_to_use].flag = 0;
hclge_mbx_ring_ptr_move_crq(crq); hclge_mbx_ring_ptr_move_crq(crq);
} }
......
...@@ -171,6 +171,7 @@ void hclgevf_mbx_handler(struct hclgevf_dev *hdev) ...@@ -171,6 +171,7 @@ void hclgevf_mbx_handler(struct hclgevf_dev *hdev)
req->msg[0]); req->msg[0]);
break; break;
} }
crq->desc[crq->next_to_use].flag = 0;
hclge_mbx_ring_ptr_move_crq(crq); hclge_mbx_ring_ptr_move_crq(crq);
flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); flag = le16_to_cpu(crq->desc[crq->next_to_use].flag);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册