SR-IOV允许我们从PF创建一个VF,现在我想通过Flow Director将一些流定向到VF。
这是ethtool帮助消息
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。
发布于 2020-08-03 08:03:54
我在DPDK流分岔如何引导中找到了答案(是的,答案不是在SR-IOV文档或Ethtool文档中)
示例:
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]。https://serverfault.com/questions/1028430
复制相似问题