[dpdk-dev] [PATCH v4] net/mlx5: rewrite IP address UDP/TCP port by E-Switch
Shahaf Shuler
shahafs at mellanox.com
Thu Oct 11 15:39:21 CEST 2018
Thursday, October 11, 2018 4:22 PM, Jack Min:
> Subject: [PATCH v4] net/mlx5: rewrite IP address UDP/TCP port by E-Switch
>
> Offload the following rte_flow actions by inserting accordingly E-Switch rules
> via TC Flower driver
>
> - RTE_FLOW_ACTION_TYPE_SET_IPV4_SRC
> - RTE_FLOW_ACTION_TYPE_SET_IPV4_DST
> - RTE_FLOW_ACTION_TYPE_SET_IPV6_SRC
> - RTE_FLOW_ACTION_TYPE_SET_IPV6_DST
> - RTE_FLOW_ACTION_TYPE_SET_TP_SRC
> - RTE_FLOW_ACTION_TYPE_SET_TP_DST
>
> The example testpmd command is:
>
> flow create 0 transfer ingress
> pattern eth / ipv4 / udp dst is 7000 / end
> actions set_ipv4_src ipv4_addr 172.168.0.1 /
> set_ipv4_dst ipv4_addr 172.168.10.1 /
> set_tp_dst port 9000 /
> set_tp_src port 700 /
> port_id id 1 / end
>
> Signed-off-by: Xiaoyu Min <jackmin at mellanox.com>
> Acked-by: Yongseok Koh <yskoh at mellanox.com>
Applied to next-net-mlx, Thanks.
More information about the dev
mailing list