dpdk 问题分析:dpdk-20.11 ice 100G 网卡 rss_hash 配置无效问题

本文讲述了在使用dpdk-20.11testpmd测试Ice100G网卡时,遇到rss_hash功能失效的问题,通过排查流量配比、多队列配置和rss_hashkey设置,发现原因在于设备未加载官方推荐的DDP包。文章详细介绍了安全模式下rss和多队列功能关闭,并提供了下载并复制DDP包的解决方案以解决问题。
摘要由CSDN通过智能技术生成

问题描述

使用 dpdk-20.11 testpmd 测试 ice 100G 网卡的时候发现设置 rss_hash 一直不生效,打流确认流量一直被 hash 到第一个队列上,其它的队列没有收到一个包。

问题排查过程

  1. 排查流量的配比

    确认流量的五元组在一定范围内变化,排除流量问题。

  2. 检查 testpmd 多队列配置

    确认多队列配置生效。

  3. 检查 rss_hash key 配置
    使用默认 rss_hash key 与对称 rss_hash key 都不能成功 hash。

检索互联网

ice 网卡 DDP 固件包

A general purpose DDP package is automatically installed with all supported 800 Series drivers on Windows, ESX, FreeBSD, and Linux operating systems, including those provided by the Data Plane Development Kit (DPDK). This general purpose DDP package is known as the OS-Default package. Additional DDP packages will be available to address packet processing needs for specific market segments. For example, a telecommunications (Comms) DDP package has been developed to support GTP and PPPoE protocols in addition to the protocols in the OS-Default package. The Comms DDP package is available with DPDK 19.11 and will also be supported by the 800 Seriesice driver on Linux operating systems

Safe mode

In pre-boot or if a DDP package is not loaded by an OS driver, the 800 Series is configured in safe mode via an NVM-default configuration that is automatically loaded by firmware. This configuration supports a minimum set of protocols and allows basic packet handling in the pre-boot environment, such as PXE boot or UEFI. The device can also be configured in safe mode if the DDP package fails to load due to a software incompatibility or other issue. If an OS driver loads and cannot load a DDP package, a message is printed in the system log that the device is now in safe mode.In this safe mode, the driver disables support for the following features:

  1. Multi-queue
  2. Virtualization (SR-IOV/VMQ)
  3. Stateless workload acceleration for tunnel overlays(VxLAN/Geneve)
  4. RDMA (iWARP/RoCE)
  5. RSC
  6. RSS
  7. DCB /DCBx
  8. Intel® Ethernet Flow Director
  9. QinQ
  10. XDP / AF-XDP
  11. ADQ

真正的问题

当 ice 100G 网卡初始化的时候未成功加载 DDP 时,驱动会进入安全模式,在此模式下 rss、多队列都被关闭。

解决方法

下载官方推荐的 ddp 包并复制到 lib/firmware/intel/ice/ddp 目录中,重新启动 testpmd,问题得到解决。

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
DPDK-20.11.1是一个开源的数据平面开发工具包,用于提高网络包处理性能。它是在Intel公司的推动下发起的,旨在提供一个高效灵活的解决方案,帮助开发人员利用现代多核处理器的强大计算能力,处理网络流量。 DPDK-20.11.1具有以下几个主要特点: 1. 高性能:DPDK-20.11.1能够充分利用现代多核处理器的并行计算能力,通过绕过操作系统内核的网络协议栈,直接访问网络包,实现高吞吐量的数据平面处理。 2. 低延迟:DPDK-20.11.1通过优化数据包处理的方式,减少了处理网络包的延迟。它采用零拷贝技术,避免了数据复制带来的额外延迟,并提供了高效的队列管理和调度算法。 3. 硬件加速:DPDK-20.11.1支持基于硬件的加速技术,如Intel的快速数据平面技术(Intel Quick Data Plane)和英特尔架构内置的虚拟化扩展(Intel Virtualization Technology)等,进一步提高了网络包处理性能。 4. 灵活性:DPDK-20.11.1提供了丰富的API和开发工具,使开发人员能够自定义网络包处理规则和算法,以满足不同应用场景的需求。它支持各种网络协议栈,如TCP/IP、UDP等,并提供了可扩展的软件定义网络(SDN)功能。 通过使用DPDK-20.11.1,开发人员可以实现高性能、低延迟的网络包处理,加速网络应用程序的性能,并提高网络服务的质量和可靠性。它被广泛应用于云计算、网络安全、电信和数据中心等领域,成为了加速网络包处理的重要工具。
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值