p4lang / p4c

P4_16 reference compiler
https://p4.org/
Apache License 2.0
683 stars 446 forks source link

PSA: InternetChecksum Object fieldlist size. #3819

Open lh-amd opened 1 year ago

lh-amd commented 1 year ago

Looking at the PSA Extern InternetChecksum, object: (https://github.com/p4lang/p4c/blob/main/backends/bmv2/psa_switch/psaSwitch.cpp)

How would one get the paramter fieldlist size? Want to add limits on the parameter to add ?

jafingerhut commented 1 year ago

FYI, in case you did not already know, the PSA implementation for BMv2 that you linked to is incomplete. It might be complete in its implementation of the InternetChecksum extern -- I do not know off hand whether that part is complete or not.

The DPDK back end implementation of the PSA architecture is significantly more complete. I do not know whether looking at the back end code for that will help answer your question. I am not an expert on the C++ implementation details here.