From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E8274433ED; Tue, 28 Nov 2023 06:59:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 69391410F9; Tue, 28 Nov 2023 06:59:32 +0100 (CET) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 5C87D410D5 for ; Tue, 28 Nov 2023 06:59:29 +0100 (CET) Received: from kwepemm000004.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SfWwx3N2KzvRBN; Tue, 28 Nov 2023 13:58:57 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemm000004.china.huawei.com (7.193.23.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 28 Nov 2023 13:59:27 +0800 From: Huisong Li To: , , CC: , Subject: [PATCH v5 2/3] doc: add link up/down feature Date: Tue, 28 Nov 2023 13:59:26 +0800 Message-ID: <20231128055927.61704-3-lihuisong@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20231128055927.61704-1-lihuisong@huawei.com> References: <20231123135916.33315-1-lihuisong@huawei.com> <20231128055927.61704-1-lihuisong@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm000004.china.huawei.com (7.193.23.18) X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add link up/down feature for features.rst. Cc: stable@dpdk.org Signed-off-by: Huisong Li Acked-by: Chengwen Feng Acked-by: Ferruh Yigit --- doc/guides/nics/features.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/guides/nics/features.rst b/doc/guides/nics/features.rst index 18b4c9637e..ced400beba 100644 --- a/doc/guides/nics/features.rst +++ b/doc/guides/nics/features.rst @@ -45,6 +45,10 @@ Supports getting the link speed, duplex mode and link state (up/down). * **[implements] rte_eth_dev_data**: ``dev_link``. * **[related] API**: ``rte_eth_link_get()``, ``rte_eth_link_get_nowait()``. +Set link up/down an Ethernet device. + +* **[implements] eth_dev_ops**: ``dev_set_link_up``, ``dev_set_link_down``. +* **[related] API**: ``rte_eth_dev_set_link_up()``, ``rte_eth_dev_set_link_down()``. .. _nic_features_link_status_event: -- 2.33.0