From: Lipeng <lipeng321@xxxxxxxxxx>will check and fix this , Thanks.
Date: Tue, 19 Dec 2017 12:02:24 +0800
@@ -2651,6 +2651,19 @@ static int hns3_get_ring_config(struct hns3_nic_priv *priv)Please use a plain "int" for index iteration loops like this since
return ret;
}
+static void hns3_put_ring_config(struct hns3_nic_priv *priv)
+{
+ struct hnae3_handle *h = priv->ae_handle;
+ u16 i;
+
+ for (i = 0; i < h->kinfo.num_tqps; i++) {
that is the canonical type to use.
+static void hclge_release_tqp(struct hclge_vport *vport)Likewise.
+{
+ struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
+ struct hclge_dev *hdev = vport->back;
+ u16 i;
+
+ for (i = 0; i < kinfo->num_tqps; i++) {
.