Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp352433rwb; Thu, 22 Sep 2022 19:41:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7iWIUtasMHsM2V45ev+7BrDMMWcByxRoUfOBCX7VyERw95eEpBPllgxXbXHRSb6okIzl+8 X-Received: by 2002:a17:907:2c4f:b0:77e:507:c8a5 with SMTP id hf15-20020a1709072c4f00b0077e0507c8a5mr5480261ejc.268.1663900877869; Thu, 22 Sep 2022 19:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663900877; cv=none; d=google.com; s=arc-20160816; b=XFvptHEDANddo2m3x3DhWbM5QC7s0G7mkCs0Gq23bx1xb5Qaa8ebIcPVsmoSoCcErX eko875n30o7ckOmHJQMR4xyux17S6nQzxnA1BhN9oGXsUC6xxFBiL4sXBuD0hnwsCoZ3 bg2zWi+ic/V0JhDUyFsw3lG/5YXQTrzpTdxQII23TKPW92bdz9PwwkRe4vQNidQveiTH 02eXwMg1+Or/EtX4dw+g0y7FJFm9SwSnaIkiim04TxKJ76C+0Y0mhUfvdRs1QjDRqpxY PeIHBNBlplY1zW8WVErRzatSSTQLSscLQ1mnl0e1b7QjdruUSgZylejRSJfVYpuuRm5m UeBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=DSKNwB9LtSW5HVwFAZQx8AefD1kBzrpixTh4gHERlys=; b=wkvyXcBfS/iGecct5L01nEvVuSyFWYh9+0ZXZulQwwiBBTJnoh790AY5SNLwTi0+vi q2X1ep2uLwM/WoN2FBlA0vtBE+fMbt1o6FyHocKOma0985DF1HDby/4bCewlzSlW47uj X8p5xYYdt4TfUuEerAVUluHz75pncNjhKoBi1vRUBi2Wuk1Gd4c9D3SNwp/c6psqjsD6 9IiVNuU4WHxBR7+HyGwNIfBOcDJA7f9v1Mr7uz83hwdfQbCg41FuPjQ5+UdHSpG2zt03 6LDXftreb28sM6rXaK/Ifr98PGq2zSaFXQ39i/+xxORvut5Vjxv5QWc7zK/Fo/9bmR5D zWgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc18-20020a1709071c1200b00782a297cbc2si472021ejc.226.2022.09.22.19.40.53; Thu, 22 Sep 2022 19:41:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231351AbiIWBlJ (ORCPT + 99 others); Thu, 22 Sep 2022 21:41:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229831AbiIWBlI (ORCPT ); Thu, 22 Sep 2022 21:41:08 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE3ACD12D6; Thu, 22 Sep 2022 18:41:06 -0700 (PDT) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MYZWW516WzlVjT; Fri, 23 Sep 2022 09:36:55 +0800 (CST) Received: from kwepemm600016.china.huawei.com (7.193.23.20) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 23 Sep 2022 09:41:04 +0800 Received: from localhost.localdomain (10.69.192.56) by kwepemm600016.china.huawei.com (7.193.23.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 23 Sep 2022 09:41:04 +0800 From: Guangbin Huang To: , , , , CC: , , , , , , Subject: [PATCH net-next 0/2] net: hns3: add support setting parameters of congestion control algorithm by devlink param Date: Fri, 23 Sep 2022 09:38:16 +0800 Message-ID: <20220923013818.51003-1-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600016.china.huawei.com (7.193.23.20) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support setting parameters of congestion control algorithm by devlink param for HNS3 driver of PF. There are several parameters need to be set, but the devlink param string is limited to 32 characters, it is not enough, so expand the string length to 256. Hao Chen (2): devlink: expand __DEVLINK_PARAM_MAX_STRING_VALUE to 256 net: hns3: PF add support setting parameters of congestion control algorithm by devlink param .../hns3/hns3_common/hclge_comm_cmd.h | 6 + .../hisilicon/hns3/hns3pf/hclge_cmd.h | 44 + .../hisilicon/hns3/hns3pf/hclge_devlink.c | 788 ++++++++++++++++++ .../hisilicon/hns3/hns3pf/hclge_devlink.h | 6 + .../hisilicon/hns3/hns3pf/hclge_main.c | 122 +++ .../hisilicon/hns3/hns3pf/hclge_main.h | 61 ++ include/net/devlink.h | 2 +- 7 files changed, 1028 insertions(+), 1 deletion(-) -- 2.33.0