net: hns3: set the cmdq out_vld bit to 0 after used
authorPeng Li <lipeng321@huawei.com>
Thu, 8 Mar 2018 11:41:51 +0000 (19:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2018 16:23:36 +0000 (11:23 -0500)
commit090e3b5350d995c8b8d93f817dccd8c1ce9952c5
tree90b212c7e2131984ef0a2a53d1a41dd9813db62e
parentf5e084b82783baca0df3c0d27bda2926ceaa1caa
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c