p4c icon indicating copy to clipboard operation
p4c copied to clipboard

P4TC - Change header fields to network order in C Program

Open komaljai opened this issue 1 year ago • 2 comments

Convert all header fields to network order in EBPF C Program. Handle corresponding arithmetic operations with respect to endianness in parser and control block.

komaljai avatar Feb 23 '24 09:02 komaljai

Byte order is a long-standing problem in the eBPF back end. https://github.com/p4lang/p4c/issues/1122

Does this PR address the issue? We may not even need to make the distinction between "TC" and eBPF then.

fruffy avatar Mar 05 '24 14:03 fruffy

Byte order is a long-standing problem in the eBPF back end. #1122

Does this PR address the issue? We may not even need to make the distinction between "TC" and eBPF then.

Thanks @fruffy for pointing the EBPF back-end open issue. This PR addresses the same issue, however due to several opens, have currently marked it as Draft.

komaljai avatar Mar 07 '24 05:03 komaljai