首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何将流定向到特定的vf队列?

如何将流定向到特定的vf队列?
EN

Server Fault用户
提问于 2020-07-31 11:54:55
回答 1查看 311关注 0票数 0

SR-IOV允许我们从PF创建一个VF,现在我想通过Flow Director将一些流定向到VF。

这是ethtool帮助消息

代码语言:javascript
复制
action N
    Specifies the Rx queue to send packets to, or some other action.
    loc N
    Specify the location/ID to insert the rule. This will overwrite any rule present in that location and will not go through any of the rule ordering process.

    delete N
    Deletes the RX classification rule with the given ID.

我真的很困惑如何设置action的值,以便流匹配过滤器可以定向到特定的VF。

EN

回答 1

Server Fault用户

回答已采纳

发布于 2020-08-03 08:03:54

我在DPDK流分岔如何引导中找到了答案(是的,答案不是在SR-IOV文档或Ethtool文档中)

示例:

代码语言:javascript
复制
ethtool -N eth1 flow-type udp4 src-ip 192.0.2.2 dst-ip 198.51.100.2 \
        action $queue_index_in_VF0
ethtool -N eth1 flow-type udp4 src-ip 198.51.100.2 dst-ip 192.0.2.2 \
        action $queue_index_in_VF1

其中:

$queue_index_in_VFn:Bits 39:32定义VF + 1;下32位表示VF的队列索引。因此:

  • $queue_index_in_VF0 = (0x1 & 0xFF) << 32 + [queue index]
  • $queue_index_in_VF1 = (0x2 & 0xFF) << 32 + [queue index]

行动价值结构

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1028430

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档