[PATCH v3 2/5] docs/zh_CN: Add NIC SR-IOV APIs Chinese translation

Updated
From:Siwei Chen <anka@stu.cdut.edu.cn>
Date:
Message-ID:<20260811071200.54062-3-anka@stu.cdut.edu.cn>
Patch:v3 · 2/5
Language:zh_CN
Patch-ID:557d7c27b1b76afe72d74d77d5981287e817a3ba
Files:Documentation/translations/zh_CN/networking/index.rstDocumentation/translations/zh_CN/networking/sriov.rst

Patch content 2 changed files

From: Siwei Chen <businiaoanka@anka1.top> Translate .../networking/sriov.rst into Chinese. Update the translation through commit 4558645d139c("docs: net: document guidance of implementing the SR-IOV NDOs") Signed-off-by: Siwei Chen <businiaoanka@anka1.top>--- .../translations/zh_CN/networking/index.rst   |  2 +- .../translations/zh_CN/networking/sriov.rst   | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/networking/sriov.rst diff --git a/Documentation/translations/zh_CN/networking/index.rst b/Documentation/translations/zh_CN/networking/index.rstindex fcb8dc8f2c72..ae374c4cb144 100644--- a/Documentation/translations/zh_CN/networking/index.rst+++ b/Documentation/translations/zh_CN/networking/index.rst@@ -29,6 +29,7 @@    alias    mptcp-sysctl    generic-hdlc+   sriov    team    timestamping @@ -128,7 +129,6 @@ Todolist: *   secid *   seg6-sysctl *   smc-sysctl-*   sriov *   statistics *   strparser *   switchdevdiff --git a/Documentation/translations/zh_CN/networking/sriov.rst b/Documentation/translations/zh_CN/networking/sriov.rstnew file mode 100644index 000000000000..bf37e68f0534--- /dev/null+++ b/Documentation/translations/zh_CN/networking/sriov.rst@@ -0,0 +1,31 @@+.. SPDX-License-Identifier: GPL-2.0++.. include:: ../disclaimer-zh_CN.rst++:Original: Documentation/networking/sriov.rst++:翻译:++	陈思为 Siwei Chen <businiaoanka@anka1.top>++===============+网卡 SR-IOV API+===============++强烈建议现代网卡专注于实现 ``switchdev`` 模型(参见 :ref:`switchdev`)+来配置 SR-IOV 功能的转发与安全。++传统 API+========++旧的 SR-IOV API 在 ``rtnetlink`` Netlink 协议族中实现,是 ``RTM_GETLINK`` 和+``RTM_SETLINK`` 命令的一部分。在驱动侧,它由若干 ``ndo_set_vf_*`` 和+``ndo_get_vf_*`` 回调组成。++由于传统 API 与协议栈其余部分集成不佳,该 API 被视为已冻结;不再接受任何新功能或扩展。+新驱动不应实现那些不常用的回调;+即以下回调禁止使用:++ - ``ndo_get_vf_port``+ - ``ndo_set_vf_port``+ - ``ndo_set_vf_rss_query_en``-- 2.53.0