DPDK如何使用rte_flow

huangapple go评论114阅读模式
英文:

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;)

  1. 是否可以使用 rte_flow 实现这些目的?
  2. 有没有配置设备的小例子?
英文:

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;)

  1. Is it possible to use rte_flow for these purposes?
  2. little example how to configure device?

答案1

得分: 0

你可以使用多个tx_queues和cores。尝试阅读rte_eth_dev_configurerte_eth_tx_queue_setuprte_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.

huangapple
  • 本文由 发表于 2023年7月12日 22:54:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76671919.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定