diff options
author | Peng Li <lipeng321@huawei.com> | 2018-03-08 14:41:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-08 19:23:36 +0300 |
commit | 090e3b5350d995c8b8d93f817dccd8c1ce9952c5 (patch) | |
tree | 90b212c7e2131984ef0a2a53d1a41dd9813db62e /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | |
parent | f5e084b82783baca0df3c0d27bda2926ceaa1caa (diff) | |
download | linux-090e3b5350d995c8b8d93f817dccd8c1ce9952c5.tar.xz |
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: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c index 31383a61d290..6d48ebfcc509 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c @@ -410,6 +410,7 @@ void hclge_mbx_handler(struct hclge_dev *hdev) req->msg[0]); break; } + crq->desc[crq->next_to_use].flag = 0; hclge_mbx_ring_ptr_move_crq(crq); } |