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.88k stars 899 forks source link

How to deal with bonding NICs? Just offload both? #749

Closed beef9999 closed 1 year ago

beef9999 commented 1 year ago

And after binding to igb_uio, will my NICs still have network access, and keep the old IP?


绑定到igb_uio以后,网卡还能访问外网吗?并且保留原IP?

saffraan commented 1 year ago

绑定到igb_uio以后,网卡还能访问外网吗?

我觉得准确的说是“其他应用能通网卡访问外网”嘛?以我的使用经验来看,绑定 igb_uio 后只有使用了用户态网络栈的应用能通过该网卡访问外网。

并且保留原IP? 我在虚拟机中虚拟网卡绑定 igb_uio 驱动后,之前分配的ip还是可以使用的

beef9999 commented 1 year ago

@saffraan 我是在物理机测试,不打算用KNI。打算用Mellanox网卡和DPDK的Flow Bifurcation功能进行硬件分流,也挺方便。

http://doc.dpdk.org/guides/howto/flow_bifurcation.html