Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug in offloading in-network flows #432

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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