F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.76k stars 879 forks source link

Questions about FLOW_ISOLATE ? #759

Closed beef9999 closed 1 year ago

beef9999 commented 1 year ago

@jfb8856606 你好,我使用的是Mellanox网卡,它的驱动可以跟内核共存,所以不需要绑定到uio或者vfio上。

我打算开启DPDK的FLOW_ISOLATE模式,将某个端口的TCP报文转发到SR-IOV的VF上,然后f-stack在这个VF上启动。因为我没其他的管理IP或者网卡。

想知道这种情况下,该如何设置config.ini?主机IP还需要填吗?能不能给个例子?


Hi, I was using the Mellanox NIC. Its driver can run together with the kernel, so I don't need to bind the NIC to uio/vfio.

Instead, I could enable the FLOW_ISOLATE mode, and direct the flow of unique TCP port to a SR-IOV VF. I don't have extra management IP or NICs.

Just want to know how to set config.ini in this situation. Is the host IP still required?

jfb8856606 commented 1 year ago

Hi Bob,

You need enable some argument in lib/Makefile and rebuild F-Stack, and then set FDIR policy in lib/ff_dpdk_if.c

FF_FLOW_ISOLATE=1
FF_FDIR=1

发件人: Bob Chen @.> 发送时间: 2023年4月11日 15:01 收件人: F-Stack/f-stack @.> 抄送: fengbojiang(姜凤波) @.>; Mention @.> 主题: [Internet][F-Stack/f-stack] Questions about FLOW_ISOLATE ? (Issue #759)

@jfb8856606https://github.com/jfb8856606 你好,我使用的是Mellanox网卡,它的驱动可以跟内核共存,所以不需要绑定到uio或者vfio上。

我打算开启DPDK的FLOW_ISOLATE模式,将某个端口的TCP报文转发到SR-IOV的VF上。因为我没其他的管理IP或者网卡。

想知道这种情况下,该如何设置config.ini?主机IP还需要填吗?能不能给个例子?


Hi, I was using the Mellanox NIC. Its driver can run together with the kernel, so I don't need to bind the NIC to uio/vfio.

Instead, I could enable the FLOW_ISOLATE mode, and direct the flow of unique TCP port to a SR-IOV VF. I don't have extra management IP or NICs.

Just want to know how to set config.ini in this situation. Is the host IP still required?

— Reply to this email directly, view it on GitHubhttps://github.com/F-Stack/f-stack/issues/759, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AANYBRWXFH7GH47EFSW3YCTXAT6TRANCNFSM6AAAAAAWZ3H6XA. You are receiving this because you were mentioned.Message ID: @.**@.>>

beef9999 commented 1 year ago

@jfb8856606 FDIR的本义是Fault detection, isolation, and recovery。我在intel网卡的官方文档没有找到这个词。它把这个称为Flow Director。而Mellanox把它称为Flow Bifurcation。

DPDK上关于FDIR这个词的使用,也只是在中文技术社区的文章里才能搜到,我觉得这个最初的译者可能是把故障恢复和流分类搞混了。

总之,我想问的是f-stack config的IP仍然需要配置成宿主机的IP吗?SR-IOV的VF是否需要配置IP?


The original meaning of FDIR is Fault detection, isolation, and recovery. I did not find this word in the official documentation of the intel network card. It calls this Flow Director. And Mellanox calls it Flow Bifurcation.

The use of the word FDIR on DPDK is only mentioned in the Chinese technical community. I think the original translator may have confused fault recovery with flow classification.

In short, what I want to ask is does the IP of f-stack config still need to be configured as the IP of the host? Does the VF of SR-IOV need to configure IP?

jfb8856606 commented 1 year ago

Hi Bob,

F-Stack config’s addr is needed by FreeBSD network stack, you must config it whether use RSS or Flow Director/Flow Bifurcation.

发件人: Bob Chen @.> 发送时间: 2023年4月11日 16:28 收件人: F-Stack/f-stack @.> 抄送: fengbojiang(姜凤波) @.>; Mention @.> 主题: [Internet]Re: [F-Stack/f-stack] Questions about FLOW_ISOLATE ? (Issue #759)

@jfb8856606https://github.com/jfb8856606 FDIR的本义是Fault detection, isolation, and recovery。我在intel网卡的官方文档没有找到这个词。它把这个称为Flow Director。而Mellanox把它称为Flow Bifurcation。

DPDK上关于FDIR这个词的使用,也只是在中文技术社区的文章里才能搜到,我觉得这个最初的译者可能是把故障恢复和流分类搞混了。

总之,我想问的是f-stack config的IP仍然需要配置成宿主机的IP吗?SR-IOV的VF是否需要配置IP?


The original meaning of FDIR is Fault detection, isolation, and recovery. I did not find this word in the official documentation of the intel network card. It calls this Flow Director. And Mellanox calls it Flow Bifurcation.

The use of the word FDIR on DPDK is only mentioned in the Chinese technical community. I think the original translator may have confused fault recovery with flow classification.

In short, what I want to ask is does the IP of f-stack config still need to be configured as the IP of the host? Does the VF of SR-IOV need to configure IP?

— Reply to this email directly, view it on GitHubhttps://github.com/F-Stack/f-stack/issues/759#issuecomment-1502902650, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AANYBRXHB5D5PQEM4ZUKVATXAUIYBANCNFSM6AAAAAAWZ3H6XA. You are receiving this because you were mentioned.Message ID: @.**@.>>