如何在DPDK中启用散射模式?

发布于 2025-02-03 06:30:32 字数 247 浏览 4 评论 0 原文

我将MBUF的数据室从2048年设置为64B。要接收带有64B尺寸Datarom MBUF的大包(64B),DPDK提醒我,我需要启用分散的模式。那么如何启用分散模式呢?

I set the dataroom of the mbuf from 2048 to 64B. To receive large packets(>64B) with a 64B size dataroom mbuf, DPDK reminds me that I need to enable scattered mode. So how can I enable scattered mode?
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七月上 2025-02-10 06:30:32

被调用。为此,一个人应传递标志 RTE_ETH_RX_OFFLOAD_SCATTER 通过 ,带有 dev_conf 被指针作为最后一个参数传递给 rte_eth_eth_dev_configure()

要使用 -

Rx scatter can be enabled at the stage when rte_eth_dev_configure() is invoked. To do that, one should pass flag RTE_ETH_RX_OFFLOAD_SCATTER via dev_conf.rx_mode.offloads, with dev_conf being passed by pointer as the last argument to rte_eth_dev_configure().

To check the feature with testpmd, one can pass command-line argument --enable-scatter.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文