You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The runtime currently reserves two values to mean "invalid ID": 0 and EBPF_ID_NONE (which is the same as MAX_UINT32). This leads to duplicate checks / inconsistencies in code checking IDs for validity.
For reference, Linux uses 0 as the invalid ID. MAX_UINT32 is a valid ID, afaik.
@dthaler suggested that it might make sense to define EBPF_ID_NONE to be 0.
The text was updated successfully, but these errors were encountered:
lmb
added
cleanup
Affects API usability or code maintainability but not correctness or applicability
question
Further information is requested
labels
Dec 18, 2024
The runtime currently reserves two values to mean "invalid ID": 0 and EBPF_ID_NONE (which is the same as MAX_UINT32). This leads to duplicate checks / inconsistencies in code checking IDs for validity.
For reference, Linux uses 0 as the invalid ID. MAX_UINT32 is a valid ID, afaik.
@dthaler suggested that it might make sense to define EBPF_ID_NONE to be 0.
The text was updated successfully, but these errors were encountered: