Skip to content

Commit

Permalink
Fixed bug in offloading in-network flows
Browse files Browse the repository at this point in the history
  • Loading branch information
PlagueCZ committed Nov 17, 2023
1 parent 2049848 commit bb98604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rte_flow/dp_rte_flow_traffic_forward.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ int dp_offload_handle_in_network_traffic(struct dp_flow *df,

// set proper ethernet addresses
// in network traffic has to be set via the other pf port via hairpin
outgoing_port = incoming_port == dp_get_pf0() ? dp_get_pf1() : incoming_port;
df->nxt_hop = outgoing_port->port_id;
outgoing_port = incoming_port == dp_get_pf0() ? dp_get_pf1() : dp_get_pf0();
// do *not* change df->nxt_hop though, as that carries the "proper" outgoing port
dp_set_src_mac_set_action(&actions[action_cnt++], &set_src_mac, &outgoing_port->vm.info.own_mac);
dp_set_dst_mac_set_action(&actions[action_cnt++], &set_dst_mac, &outgoing_port->vm.info.neigh_mac);

Expand Down

0 comments on commit bb98604

Please sign in to comment.