]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add opcode about query and clear RAS & MSI-X to special opcode
authorWeihang Li <liweihang@hisilicon.com>
Mon, 3 Jun 2019 02:09:21 +0000 (10:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2019 22:32:50 +0000 (15:32 -0700)
commit582f4771d79fcd994a7ccaa6e8971f253355706b
treee5a11c430603bd74e003ef43c2d21294e5714f65
parenta652d94caeb905e1f07edfc427cdb2fa2140eae5
net: hns3: add opcode about query and clear RAS & MSI-X to special opcode

There are four commands being used to query and clear RAS and MSI-X
interrupts status. They should be contained in array of special opcodes
because these commands have several descriptors, and we need to judge
return value in the first descriptor rather than the last one as other
opcodes. In addition, we shouldn't set the NEXT_FLAG of first descriptor.

This patch fixes above issues.

Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c