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

P4TC - kfunc definition changes #4604

Merged
merged 3 commits into from
Apr 8, 2024
Merged

Conversation

komaljai
Copy link
Contributor

@komaljai komaljai commented Apr 8, 2024

komaljai added 3 commits April 5, 2024 05:49
p4tc_table_entry_create_bpf_params__local, bpf_p4tc_entry_create,
xdp_p4tc_entry_create, bpf_p4tc_entry_create_on_miss,
xdp_p4tc_entry_create_on_miss,
bpf_p4tc_entry_update, xdp_p4tc_entry_update, bpf_p4tc_entry_delete, bpf_p4tc_entry_delete

Added implementation for beXX annotation
Copy link
Contributor

@usha1830 usha1830 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@usha1830 usha1830 added this pull request to the merge queue Apr 8, 2024
Merged via the queue into p4lang:main with commit 0c03960 Apr 8, 2024
17 checks passed
@@ -108,7 +109,7 @@ if (/* hdr->ipv4.isValid() */
.tblid = 1,
.profile_id = 2
};
bpf_p4tc_entry_create_on_miss(skb, &update_params, &key, sizeof(key), &update_act_bpf);
bpf_p4tc_entry_create_on_miss(skb, &update_params, sizeof(params), &key, sizeof(key));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late review, but didn't have time to test before it was merged

Should be:

bpf_p4tc_entry_create_on_miss(skb, &update_params, sizeof(update_params), &key, sizeof(key));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants