net: hns3: Fixes the command used to unmap ring from vector
authorLipeng <lipeng321@huawei.com>
Tue, 19 Sep 2017 16:17:11 +0000 (17:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Sep 2017 23:06:49 +0000 (16:06 -0700)
This patch fixes the IMP command being used to unmap the vector
from the corresponding ring.

Fixes: 6427264ef330 ("net: hns3: Add HNS3 Acceleration Engine &
Compatibility Layer Support")
Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index db4e07dac29a1d7304621375c7ce16678eb02a0a..e324bc6e9f4f01c77c15b2afafa965ea721d5444 100644 (file)
@@ -2779,7 +2779,7 @@ static int hclge_unmap_ring_from_vector(
                        }
                        i = 0;
                        hclge_cmd_setup_basic_desc(&desc,
-                                                  HCLGE_OPC_ADD_RING_TO_VECTOR,
+                                                  HCLGE_OPC_DEL_RING_TO_VECTOR,
                                                   false);
                        req->int_vector_id = vector_id;
                }