Skip to content

Commit

Permalink
Change parameter for kfunc 'bpf_p4tc_entry_create_on_miss' (p4lang#4637)
Browse files Browse the repository at this point in the history
  • Loading branch information
komaljai authored May 8, 2024
1 parent f26cd96 commit d7748bd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backends/tc/ebpfCodeGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ void ControlBodyTranslatorPNA::processFunction(const P4::ExternFunction *functio
builder->appendLine("};");
builder->emitIndent();
builder->append(
"bpf_p4tc_entry_create_on_miss(skb, &update_params, sizeof(params), &key, "
"bpf_p4tc_entry_create_on_miss(skb, &update_params, sizeof(update_params), &key, "
"sizeof(key))");
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if (/* hdr->ipv4.isValid() */
.tblid = 1,
.profile_id = 2
};
bpf_p4tc_entry_create_on_miss(skb, &update_params, sizeof(params), &key, sizeof(key));
bpf_p4tc_entry_create_on_miss(skb, &update_params, sizeof(update_params), &key, sizeof(key));
}
break;
case MAINCONTROLIMPL_IPV4_TBL_1_ACT_MAINCONTROLIMPL_SEND_NH:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if (/* hdr->ipv4.isValid() */
.tblid = 1,
.profile_id = 2
};
bpf_p4tc_entry_create_on_miss(skb, &update_params, sizeof(params), &key, sizeof(key));
bpf_p4tc_entry_create_on_miss(skb, &update_params, sizeof(update_params), &key, sizeof(key));
}
break;
case MAINCONTROLIMPL_IPV4_TBL_1_ACT_MAINCONTROLIMPL_SEND_NH:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ if (/* hdr->ipv4.isValid() */
.tblid = 1,
.profile_id = 2
};
bpf_p4tc_entry_create_on_miss(skb, &update_params, sizeof(params), &key, sizeof(key));
bpf_p4tc_entry_create_on_miss(skb, &update_params, sizeof(update_params), &key, sizeof(key));
}
break;
case MAINCONTROLIMPL_IPV4_TBL_1_ACT_MAINCONTROLIMPL_DFLT_ROUTE_DROP:
Expand Down Expand Up @@ -189,7 +189,7 @@ if (/* hdr->ipv4.isValid() */
.tblid = 2,
.profile_id = 2
};
bpf_p4tc_entry_create_on_miss(skb, &update_params, sizeof(params), &key, sizeof(key));
bpf_p4tc_entry_create_on_miss(skb, &update_params, sizeof(update_params), &key, sizeof(key));
}
break;
case MAINCONTROLIMPL_IPV4_TBL_2_ACT_MAINCONTROLIMPL_DFLT_ROUTE_DROP:
Expand Down

0 comments on commit d7748bd

Please sign in to comment.