€• Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ$/translations/zh_CN/networking/sriov”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/zh_TW/networking/sriov”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/it_IT/networking/sriov”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/ja_JP/networking/sriov”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/ko_KR/networking/sriov”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/sp_SP/networking/sriov”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh£sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1h¡hhhžhhŸŒ>/var/lib/git/docbuild/linux/Documentation/networking/sriov.rst”h KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒNIC SR-IOV APIs”h]”hŒNIC SR-IOV APIs”…””}”(hh»hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hh¶hžhhŸh³h KubhŒ paragraph”“”)”}”(hŒ©Modern NICs are strongly encouraged to focus on implementing the ``switchdev`` model (see :ref:`switchdev`) to configure forwarding and security of SR-IOV functionality.”h]”(hŒAModern NICs are strongly encouraged to focus on implementing the ”…””}”(hhËhžhhŸNh NubhŒliteral”“”)”}”(hŒ ``switchdev``”h]”hŒ switchdev”…””}”(hhÕhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÓhhËubhŒ model (see ”…””}”(hhËhžhhŸNh Nubh)”}”(hŒ:ref:`switchdev`”h]”hŒinline”“”)”}”(hhéh]”hŒ switchdev”…””}”(hhíhžhhŸNh Nubah}”(h]”h ]”(Œxref”Œstd”Œstd-ref”eh"]”h$]”h&]”uh1hëhhçubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œnetworking/sriov”Œ refdomain”høŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆŒ reftarget”Œ switchdev”uh1hhŸh³h KhhËubhŒ?) to configure forwarding and security of SR-IOV functionality.”…””}”(hhËhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khh¶hžhubhµ)”}”(hhh]”(hº)”}”(hŒ Legacy API”h]”hŒ Legacy API”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hjhžhhŸh³h K ubhÊ)”}”(hŒÝThe old SR-IOV API is implemented in ``rtnetlink`` Netlink family as part of the ``RTM_GETLINK`` and ``RTM_SETLINK`` commands. On the driver side it consists of a number of ``ndo_set_vf_*`` and ``ndo_get_vf_*`` callbacks.”h]”(hŒ%The old SR-IOV API is implemented in ”…””}”(hj'hžhhŸNh NubhÔ)”}”(hŒ ``rtnetlink``”h]”hŒ rtnetlink”…””}”(hj/hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÓhj'ubhŒ Netlink family as part of the ”…””}”(hj'hžhhŸNh NubhÔ)”}”(hŒ``RTM_GETLINK``”h]”hŒ RTM_GETLINK”…””}”(hjAhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÓhj'ubhŒ and ”…””}”(hj'hžhhŸNh NubhÔ)”}”(hŒ``RTM_SETLINK``”h]”hŒ RTM_SETLINK”…””}”(hjShžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÓhj'ubhŒ9 commands. On the driver side it consists of a number of ”…””}”(hj'hžhhŸNh NubhÔ)”}”(hŒ``ndo_set_vf_*``”h]”hŒ ndo_set_vf_*”…””}”(hjehžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÓhj'ubhŒ and ”…””}”hj'sbhÔ)”}”(hŒ``ndo_get_vf_*``”h]”hŒ ndo_get_vf_*”…””}”(hjwhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÓhj'ubhŒ callbacks.”…””}”(hj'hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KhjhžhubhÊ)”}”(hXSince the legacy APIs do not integrate well with the rest of the stack the API is considered frozen; no new functionality or extensions will be accepted. New drivers should not implement the uncommon callbacks; namely the following callbacks are off limits:”h]”hXSince the legacy APIs do not integrate well with the rest of the stack the API is considered frozen; no new functionality or extensions will be accepted. New drivers should not implement the uncommon callbacks; namely the following callbacks are off limits:”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KhjhžhubhŒ block_quote”“”)”}”(hŒI- ``ndo_get_vf_port`` - ``ndo_set_vf_port`` - ``ndo_set_vf_rss_query_en``”h]”hŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒ``ndo_get_vf_port``”h]”hÊ)”}”(hj¬h]”hÔ)”}”(hj¬h]”hŒndo_get_vf_port”…””}”(hj±hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÓhj®ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khjªubah}”(h]”h ]”h"]”h$]”h&]”uh1j¨hj¥ubj©)”}”(hŒ``ndo_set_vf_port``”h]”hÊ)”}”(hjÌh]”hÔ)”}”(hjÌh]”hŒndo_set_vf_port”…””}”(hjÑhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÓhjÎubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KhjÊubah}”(h]”h ]”h"]”h$]”h&]”uh1j¨hj¥ubj©)”}”(hŒ``ndo_set_vf_rss_query_en``”h]”hÊ)”}”(hjìh]”hÔ)”}”(hjìh]”hŒndo_set_vf_rss_query_en”…””}”(hjñhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÓhjîubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khjêubah}”(h]”h ]”h"]”h$]”h&]”uh1j¨hj¥ubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1j£hŸh³h KhjŸubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh³h Khjhžhubeh}”(h]”Œ legacy-api”ah ]”h"]”Œ legacy api”ah$]”h&]”uh1h´hh¶hžhhŸh³h K ubeh}”(h]”Œnic-sr-iov-apis”ah ]”h"]”Œnic sr-iov apis”ah$]”h&]”uh1h´hhhžhhŸh³h Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h³uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(h¹NŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jKŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h³Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(j%j"jjuŒ nametypes”}”(j%‰j‰uh}”(j"h¶jjuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.