目录
DPDK Hardware offload
DPDK Hardware offload 功能基于 DPDK 的 rte_flow Lib 来实现。
rte_flow Lib 是 DPDK 提供的通用流编程接口,是 DPDK 对 Flow Representation 的实现,rte_flow API & structure 用于将 pkt forwarding rule 编程到(Program)NIC-hardware。例如将 OvS-DPDK Rule 卸载到 SmartNIC 上。
一条 RTE_FLOW 由以下 3 个部分组成:
- Attributes:是流本身的属性,包括:port、ingress/egress、group、priority、transfer(将流卸载到硬件)。
- Match:流的匹配模式。
- Action:匹配成功以后执行的动作。
This dpdk-way of flow- representation is called rte-flow. An open-flow rule when converted into dpdk-defined flow-format, then this flow-data-structure is called rte-flow. Once a rte-flow is formed it can be passed to any