This section covers planning, considerations, and general configuration guidelines for enabling PFC on a network. 本节介绍在网络上启用 PFC 的规划、注意事项和一般配置指南。
The steps for enabling PFC on your network include the following: 在网络上启用 PFC 的步骤如下:
(Configuring ETS: Map Priorities to TCs/Allocate Bandwidth) 配置 ETS: 将优先级映射到数据流类别并分配带宽(配置 ETS:将优先级映射到数据流类别/分配带宽)
PFC can be used with or without a switch in the network. PFC 可在网络中有交换机或没有交换机的情况下使用。
Host prerequisites for RDMA are outside the scope of this guide, but in general, you need at a minimum: RDMA 的主机先决条件不在本指南的讨论范围之内,但一般来说,您至少需要具备以下条件:
If using software in DCB mode, you also need OpenLLDP, which includes the lldpad daemon and lldptool configuration utility. 如果在 DCB 模式下使用软件,还需要 OpenLLDP,其中包括 lldpad 守护进程和 lldptool 配置实用程序。
# yum install lldpad
GitHub - intel/openlldp
DCB standards like PFC and ETS must be set to either willing or non-willing mode, which determines whether the port is willing to accept configuration settings from its link partner. PFC 和 ETS 等 DCB 标准必须设置为主动或被动模式,这决定了端口是否愿意接受其链路伙伴的配置设置。
Mode |
When to Use |
|
Willing |
• |
If you want to configure DCB on their switch and let adapters accept settings from the switch ports. This is the preferred, most common setup. |
Non-willing |
• |
For back-to-back configurations. |
• |
For troubleshooting, testing, and manually tweaking the configuration. |
|
• |
If preferred, configure DCB on all hosts and set the neighboring switch ports to willing (somewhat uncommon and might not be supported by all switches). |
The 800 Series has two options for using DCB: firmware and software. 800 系列有两种使用 DCB 的选项:Firmware和软件。
If you plan on using willing mode, software DCB is recommended but not required. 如果计划使用主动模式,建议使用软件 DCB,但不是必需的。
Only one type of DCB might be active at a time. Enabling firmware DCB overrides the software DCB setting. 一次只能激活一种 DCB。启用Firmware DCB 会覆盖软件 DCB 设置。
DCB Type |
When to Use |
Willing Mode Setup |
Non-willing Mode Setup |
Firmware |
Willing Mode |
Not supported in firmware DCB. |
|
# ethtool --set-priv-flags <iface> fw-lldpagent on |
|||
Software |
Willing Mode |
Can be set up in IEEE or CEE modes. Refer to Software DCB Willing Mode for details. |
|
Software |
Non-willing Mode |
||
# ethtool --set-priv-flags <iface> fw-lldpagent off # lldptool -Ti <iface> -V PFC willing=yes # lldptool -Ti <iface> -V ETS willing=yes |
# ethtool --set-priv-flags <iface> fw-lldpagent off # lldptool -Ti <iface> -V PFC willing=no # lldptool -Ti <iface> -V ETS willing=no |
Software DCB can be configured in either IEEE or CEE mode. 软件 DCB 可配置为 IEEE 或 CEE 模式。
#lldptool -Ti $interface -V CEE-DCBX enableTx=no
#lldptool -Ti $interface -V IEEE-DCBX mode=reset
#lldptool -Ti $interface -V ETS-CFG enableTx=yes willing=yes
#lldptool -Ti $interface -V ETS-REC enableTx=yes
Setting willing=yes for ETS-REC is not logical as it is by definition a recommendation for a willing link partner. 为 ETS-REC 设置 willing=yes 不符合逻辑,因为根据定义,它是建议把网络连接对端设置为主动模式。
#lldptool -Ti $interface -V PFC enable=yes willing=yes enableTx=yes
#lldpad -k
#lldpad -s
#systemctl restart lldpad.service
#lldptool -ti $interface -V CEE-DCBX -c