# 配置

Tab QCS6490/QCS5430
Tab QCS9100/QCS9075

- *class* tabincludedirective

    - ## 配置链路速度

您可以在 `ethtool` 命令输出中从支持的链接模式配置链接速度。

要配置链路速度，请运行以下命令：

ethtool -s [device_name] autoneg [on/off] speed [10/100/1000/2500] duplex [full]
    Copy to clipboard

例如：

ethtool -s enP1p5s0f0 autoneg on speed 2500 duplex full
    Copy to clipboard

## 配置高效节能以太网

您可以通过执行某些功能（例如验证 EEE 的状态以及启用或禁用 EEE）来控制 EEE。

要配置 EEE，请执行以下操作：

1. 要验证 EEE 的状态，请运行以下命令：

ethtool --show-eee [interface]
        Copy to clipboard

    例如：

ethtool --show-eee enP1p5s0f0
        Copy to clipboard

    示例输出：

EEE settings for enP1p5s0f0:

EEE status: disabled

Tx LPI: disabled

Supported EEE link modes:  1000baseT/Full

10000baseT/Full

1000baseKX/Full

10000baseKX4/Full

10000baseKR/Full

Advertised EEE link modes:  Not reported

Link partner advertised EEE link modes:  Not reported

2. 要启用 EEE，请运行以下命令：

ethtool --set-eee [interface] eee on
        Copy to clipboard

    例如：

ethtool --set-eee enP1p5s0f0 eee on
        Copy to clipboard

    示例输出：

EEE settings for enP1p5s0f0:

EEE status: enabled - inactive

Tx LPI: 17 (us)

Supported EEE link modes:  100baseT/Full

1000baseT/Full

Advertised EEE link modes: 100baseT/Full

1000baseT/Full

Link partner advertised EEE link modes: Not reported

3. 要禁用 EEE，请运行以下命令：

ethtool --set-eee [interface] eee off
        Copy to clipboard

    例如：

ethtool --set-eee enP1p5s0f0 eee off
        Copy to clipboard

    示例输出：

EEE settings for enP1p5s0f0:

EEE status: disabled

Tx LPI: 17 (us)

Supported EEE link modes:  100baseT/Full

1000baseT/Full

Advertised EEE link modes: 100baseT/Full

1000baseT/Full

Link partner advertised EEE link modes: Not reported

- *class* tabincludedirective

    - ## 配置链路速度

Note

此信息不适用于 DPDK。

您可以在 `ethtool` 命令输出中从支持的链接模式配置链接速度。

要配置链路速度，请运行以下命令：

ethtool -s [device_name] autoneg [on/off] speed [10/100/1000/2500] duplex [full]
    Copy to clipboard

例如：

ethtool -s eth1 autoneg on speed 2500 duplex full
    Copy to clipboard

## 在 IQ-9 Beta EVK 上启用 DPDK

Note

DPDK 在 QCS9100 上受支持，并且仅适用于 [Intel® Ethernet Converged Network Adapter X550-T2](https://www.intel.com/content/www/us/en/products/sku/88209/intel-ethernet-converged-network-adapter-x550t2/specifications.html)。

要在 IQ-9 Beta EVK 上启用 DPDK，请执行以下操作：

1. 要在主机上启用不安全中断，请运行以下命令。

> 
> 
> echo Y > /sys/module/vfio_iommu_type1/parameters/allow_unsafe_interrupts
>         Copy to clipboard
2. 要启用 SRIOV，请运行以下命令。

> 
> 
> echo 1 |  tee /sys/module/vfio_pci/parameters/enable_sriov
>         Copy to clipboard
3. 要为 Intel NIC 创建 VF，请执行以下步骤：

> 
> 
> 1. 要检查端口，请运行以下命令。
> 
> 
> 
> > 
> > 
> > lspci
> >             Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > 0000:00:00.0 PCI bridge: Qualcomm Device 0115
> > 
> > 
> > 0000:01:00.0 Ethernet controller: Intel Corporation Ethernet Controller 10G X550T (rev 01)
> > 
> > 
> > 0000:01:00.1 Ethernet controller: Intel Corporation Ethernet Controller 10G X550T (rev 01)
>     2. 要在物理设备上创建 VF，请运行以下命令。
> 
> 
> 
> > 
> > 
> > echo 1 > /sys/bus/pci/devices/0000\:01\:00.1/sriov_numvfs
> >             Copy to clipboard
>     3. 请运行以下命令，验证是否创建了 VF。
> 
> 
> 
> > 
> > 
> > lspci
> >             Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > 0000:00:00.0 PCI bridge: Qualcomm Device 0115
> > 
> > 
> > 0000:01:00.0 Ethernet controller: Intel Corporation Ethernet Controller 10G X550T (rev 01)
> > 
> > 
> > 0000:01:00.1 Ethernet controller: Intel Corporation Ethernet Controller 10G X550T (rev 01)
> > 
> > 
> > 0000:02:10.1 Ethernet controller: Intel Corporation X550 Virtual Function
4. 将 VF 绑定到 `vfio-pci` 驱动程序，运行以下命令：

> 
> 
> root@qcs9100-ride-sx:/9p# VF=02:10.1
>         echo "0000:$VF" > /sys/bus/pci/drivers/ixgbevf/unbind
>         echo vfio-pci > /sys/bus/pci/devices/"0000:$VF"/driver_override
>         echo "0000:$VF" > /sys/bus/pci/drivers/vfio-pci/bind
>         Copy to clipboard
5. 要启用 Huge pages，请运行以下命令。

> 
> 
> echo 512 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
>         Copy to clipboard

相关信息：

> 
> 
> - [DPDK](https://docs.qualcomm.com/doc/80-70017-26SC/topic/features.html#dpdk)
> - [在 IQ-9 Beta EVK 上启用 DPDK](https://docs.qualcomm.com/doc/80-70017-26SC/topic/enable-dpdk-on-iq9-beta-evk.html#iq-9-beta-evk-dpdk)
> - [DPDK 日志和调试](https://docs.qualcomm.com/doc/80-70017-26SC/topic/dpdk-logging-and-debugging.html#dpdk)

Last Published: Jan 24, 2025

[Previous Topic
调通](https://docs.qualcomm.com/bundle/publicresource/80-70017-26SC/topics/bring_up.md) [Next Topic
调试](https://docs.qualcomm.com/bundle/publicresource/80-70017-26SC/topics/debug.md)