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

how can fstack uses sr-iov(vf) #734

Closed CHRIS123540 closed 1 year ago

CHRIS123540 commented 1 year ago

Hello, I want to modify config.ini so that f-stack can use vf. Is there any case?

uvletter commented 1 year ago

just set pci_whitelist to the pci address of VF

CHRIS123540 commented 1 year ago

Thank you for your answer, I did not use pci_whitelist, I directly set the port_list parameters and correctly obtained the MAC address of VFs, but I can only ping the address of the PF that created VFs. 20230213203646 20230213204554 ZOLY098}V235AQNE4I}78V8 20230213205511 I would appreciate it if you could give me some advice

uvletter commented 1 year ago

Use the command lspci to find out the pci address of the VF, and then replace pci_whitelist with it, if not I guess fstack would bind to the first available pci device, i.e. the PF.

Message ID: @.***>

jfb8856606 commented 1 year ago

If you use multi port in one subnet, maybe you should use ff_ipfw to set some policy routing.

Or you can try set every port to different subnet and retry it.

jfb8856606 commented 1 year ago

May be you can get some info with google search rp_filter.

发件人: Hu Carl @.> 发送时间: 2023年2月15日 17:43 收件人: F-Stack/f-stack @.> 抄送: fengbojiang(姜凤波) @.>; Comment @.> 主题: [Internet]Re: [F-Stack/f-stack] how can fstack uses sr-iov(vf) (Issue #734)

Setting different subnets works, could you tell me why?

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