英文:
DPDK how to use rte_flow
问题
I'm new to dpdk, please tell me if it's possible to bind multiple data_sender to a physical port?
目前我可以通过一个物理端口上的 data_sender 处理流量并发送到远程服务器(ip=192.168.2.1; listen_port = 7001;)。但是我需要处理7gb/s的流量,这已经不够了。
是否可以配置网络卡以使其在内部平衡流量并将流量转发到一个物理端口,但是到不同的套接字?(ip=192.168.2.1; listen_port1 = 7001; listen_port2 = 7002;)
- 是否可以使用 rte_flow 实现这些目的?
- 有没有配置设备的小例子?
英文:
I'm new to dpdk, please tell me if it's possible to bind multiple data_sender to a physical port?
At the moment I can process traffic and send it to a remote server via data_sender on one physical port (ip=192.168.2.1; listen_port = 7001;). But so i can handle 7gb/s, and it's not enough.
Is it possible to configure a network card so that it balances traffic internally and forwards traffic to one physical port, but to different sockets? (ip=192.168.2.1; listen_port1 = 7001;listen_port2 = 7002;)
- Is it possible to use rte_flow for these purposes?
- little example how to configure device?
答案1
得分: 0
你可以使用多个tx_queues和cores。尝试阅读rte_eth_dev_configure
、rte_eth_tx_queue_setup
和rte_eal_mp_remote_launch
。还可以查看dpdk-l2fwd。
是的,你可以使用rte_flow。你需要指定一些匹配流量的模式,然后应用RTE_FLOW_ACTION_TYPE_SET_TP_DST
操作。
你可以查看dpdk-flow_filtering应用程序,了解如何使用rte_flow。
英文:
You can use multiple tx_queues and cores. Try reading the rte_eth_dev_configure
, rte_eth_tx_queue_setup
, and rte_eal_mp_remote_launch
. Also go through dpdk-l2fwd
Yes, you can use rte_flow. You need to specify some matching pattern of your traffic and then apply the RTE_FLOW_ACTION_TYPE_SET_TP_DST
action.
You can have a look at the dpdk-flow_filtering application to learn how to use rte_flow.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论