Adding support for multiple local and remote destinations.
Each non-last destination is embedded in a sample action with ratio=1.

for example:
set sample_actions 1 port_id original 0 id 2 / end;
set sample_actions 2 Raw-encap size=50 set raw_encap 0 raw pattern is
 <RAW_HEADER>/ end_set; raw_encap index 0 / port_id original 0 id 0 / end;
set vxlan ip-version ipv4 vni 100 udp-src 0 udp-dst 4789 ip-src 172.168.1.1
ip-dst 172.168.1.2 eth-src 24:8a:07:ad:79:12 eth-dst 24:8a:07:ad:77:4a;
flow create 1 ingress priority 0 group 0 transfer pattern eth /
end actions count / sample ratio 1 index 1 / raw_encap index 0 /
sample ratio 1 index 2 / vxlan_encap / port_id original 0 id 0 / end

This patch is based on:
https://patchwork.ozlabs.org/project/openvswitch/cover/[email protected]/
1. For adding act_index as a parameter to the function dump_flow_action.
2. For adding s_tnl to the structure flow_actions.

Travis:
https://www.travis-ci.com/github/noaezra/ovs-1/builds/226805727
GitHub Actions:
https://github.com/elibritstein/OVS/actions/runs/881193988


Noa Levy (6):
  netdev-offload-dpdk: Introduce a get_netdev_by_port helper function
  netdev-offload-dpdk: Introduce a dump_port_id helper function
  netdev-offload-dpdk: Introduce a dump_raw_encap helper function
  netdev-offload-dpdk: Support multiple local destinations
  netdev-offload-dpdk: Extract raw_encap and output netdev by
    parse_clone_actions
  netdev-offload-dpdk: Support multiple remote destinations

 NEWS                      |   3 +-
 lib/netdev-offload-dpdk.c | 268 ++++++++++++++++++++++++++++++--------
 2 files changed, 215 insertions(+), 56 deletions(-)

-- 
2.28.0.2311.g225365fb51

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to